公会战战斗时长修改
parent
48abd97de8
commit
d786c79bf7
|
@ -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]);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue