公会技能,一次性掉落100亿金币

back_recharge
jiahuiwen 2021-11-25 14:07:43 +08:00
parent 1893a900ff
commit 0074c35de4
4 changed files with 8 additions and 7 deletions

View File

@ -54,7 +54,7 @@ public class CumulationData {
private int arenaScore; private int arenaScore;
private int consumeGem ; private long consumeGem ;
private Map<Integer,Integer> storyFightInfo =new HashMap<>(3); private Map<Integer,Integer> storyFightInfo =new HashMap<>(3);
@ -325,11 +325,11 @@ public class CumulationData {
this.arenaScore = arenaScore; this.arenaScore = arenaScore;
} }
public int getConsumeGem() { public long getConsumeGem() {
return consumeGem; return consumeGem;
} }
public void setConsumeGem(int consumeGem) { public void setConsumeGem(long consumeGem) {
this.consumeGem = consumeGem; this.consumeGem = consumeGem;
} }

View File

@ -1612,11 +1612,11 @@ public class GuildLogic {
reward.put(aDropArray[0], reward.get(aDropArray[0]) + aDropArray[1]); reward.put(aDropArray[0], reward.get(aDropArray[0]) + aDropArray[1]);
} }
int[][] dropArrayReally =new int[reward.size()][]; long[][] dropArrayReally =new long[reward.size()][];
int index = 0; int index = 0;
for(Map.Entry<Integer,Integer> entry:reward.entrySet()){ for(Map.Entry<Integer,Integer> entry:reward.entrySet()){
double doublePercent = (double) percent; double doublePercent = (double) percent;
dropArrayReally[index] = new int[]{entry.getKey(),(int)(entry.getValue()*doublePercent/10000)}; dropArrayReally[index] = new long[]{entry.getKey(),(long)(entry.getValue()*doublePercent/10000)};
index++; index++;
} }
CommonProto.Drop.Builder drop = ItemUtil.drop(user, dropArrayReally, BIReason.RESET_GUILD_SKILL); CommonProto.Drop.Builder drop = ItemUtil.drop(user, dropArrayReally, BIReason.RESET_GUILD_SKILL);

View File

@ -835,7 +835,8 @@ public class MissionLoigc {
count = user.getPlayerInfoManager().getMaxForce(); count = user.getPlayerInfoManager().getMaxForce();
break; break;
case USER_CONSUMER_GEM: case USER_CONSUMER_GEM:
count=cumulationData.getConsumeGem(); Long consumeGem = cumulationData.getConsumeGem();
count = consumeGem.intValue();
break; break;
case USER_WORKSHOP_LEVEL: case USER_WORKSHOP_LEVEL:
count =user.getWorkShopController().getWorkShopLevel(); count =user.getWorkShopController().getWorkShopLevel();

View File

@ -16,7 +16,7 @@ public class ConsumerMaterialDataManager implements BaseDataManager{
if(missionType == MissionType.USER_CONSUMER_GEM){ if(missionType == MissionType.USER_CONSUMER_GEM){
count = consumeMaterialMapTmp.get(Global.GEM); count = consumeMaterialMapTmp.get(Global.GEM);
if(count!=null){ if(count!=null){
data.setConsumeGem(data.getConsumeGem() + count.intValue()); data.setConsumeGem(data.getConsumeGem() + count);
result = new CumulationData.Result(missionType); result = new CumulationData.Result(missionType);
} }
}else if(missionType == MissionType.USER_CONSUMER_STAMINA){ }else if(missionType == MissionType.USER_CONSUMER_STAMINA){