公会战战斗时长修改

back_recharge
lvxinran 2019-11-19 17:58:06 +08:00
parent 48abd97de8
commit d786c79bf7
2 changed files with 8 additions and 2 deletions

View File

@ -470,12 +470,12 @@ public class GuildFightLogic {
LuaValue getOptionData = FightDataUtil.getOptionData("");
int seed = (int) (System.currentTimeMillis() / 1000);
CommonProto.FightData fightData = CommonProto.FightData.newBuilder()
.setFightMaxTime(SArenaSetting.getSArenaSetting().getMostTime())
.setFightMaxTime(SGuildSetting.sGuildSetting.getWarTime())
.setFightSeed(seed)
.setHeroFightInfos(fightAttackTeamInfo)
.addMonsterList(fightDefendTeamInfo)
.build();
int[] fightResult = CheckFight.getInstance().checkFight(seed, 1000, getFightData, getOptionData, FightType.GuildFight);
int[] fightResult = CheckFight.getInstance().checkFight(seed, SGuildSetting.sGuildSetting.getWarTime(), getFightData, getOptionData, FightType.GuildFight);
for (int i = 0; i < fightResult.length; i++) {
System.out.println(fightResult[i]);
}

View File

@ -64,6 +64,8 @@ public class SGuildSetting implements BaseConfig {
private String participation;
private int warTime;
public static SGuildSetting sGuildSetting;
@ -189,4 +191,8 @@ public class SGuildSetting implements BaseConfig {
public String getParticipation() {
return participation;
}
public int getWarTime() {
return warTime;
}
}