物品数量修改
parent
d8e16aae9a
commit
78cb70af3a
|
|
@ -75,7 +75,7 @@ public class CBean2Proto {
|
|||
*/
|
||||
public static CommonProto.Item getItem(Item item,long itemNum){
|
||||
if(itemNum == -1){
|
||||
itemNum = (int) item.getItemNum();
|
||||
itemNum = item.getItemNum();
|
||||
}
|
||||
CommonProto.Item itemProto = CommonProto.Item
|
||||
.newBuilder()
|
||||
|
|
|
|||
|
|
@ -649,7 +649,7 @@ public class ItemUtil {
|
|||
}
|
||||
}
|
||||
}else{
|
||||
item.setItemNum((int) (item.getItemNum() + entry.getValue()));
|
||||
item.setItemNum(item.getItemNum() + entry.getValue());
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -846,7 +846,7 @@ public class ItemUtil {
|
|||
if (playerInfoManager.getExp() >= maxExp) {
|
||||
return;
|
||||
}
|
||||
int curExp = MathUtils.setBetweenWithMax(playerInfoManager.getExp() + (int)addExp, 0, maxExp);
|
||||
int curExp = MathUtils.setBetweenWithMax((int)playerInfoManager.getExp() + (int)addExp, 0, maxExp);
|
||||
int oldLevel = playerInfoManager.getLevel();
|
||||
// 当前等级表配置
|
||||
SPlayerLevelConfig sPlayerLevelConfig = SPlayerLevelConfig.getsPlayerLevelConfigMap().get(oldLevel);
|
||||
|
|
|
|||
Loading…
Reference in New Issue