int long 修改

back_recharge
lvxinran 2021-03-18 11:55:54 +08:00
parent 2b61537ab7
commit 9c684c7c8f
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ public class CombatLogic {
}
public Map<Integer,Long> bufferOneHeroAttrAfterEat(Map<Integer,Long> value,List<Integer> foodIds){
Map<Integer,Integer> effectValueMap = new HashMap<>();
for(long foodId:foodIds){
for(int foodId:foodIds){
SFoodsConfig sFoodsConfig = STableManager.getConfig(SFoodsConfig.class).get(foodId);
if(value.get(HeroAttributeEnum.CurHP.getPropertyId()) == 0 || sFoodsConfig.getContiue()!=0){
return value;
@ -97,7 +97,7 @@ public class CombatLogic {
}
}
for(Map.Entry<Integer,Integer> entry:effectValueMap.entrySet()){
long finalValue = value.getOrDefault(entry.getKey(), Long.valueOf(0)) + entry.getValue();
long finalValue = value.getOrDefault(entry.getKey(), 0L) + entry.getValue();
if(finalValue < 0){
finalValue = 0;
}