Format code [skip actions]

This commit is contained in:
github-actions 2023-12-14 05:36:30 +00:00
parent c4402cc287
commit 770a793c69
2 changed files with 6 additions and 3 deletions

View File

@ -35,7 +35,8 @@ public class KillMonsterTimeChallengeFactoryHandler implements ChallengeFactoryH
val challengeData = GameData.getDungeonChallengeConfigDataMap().get(challengeId);
val challengeType = challengeData.getChallengeType();
if (challengeType == ChallengeType.CHALLENGE_KILL_COUNT_FAST) {
challengeTriggers.add(new KillMonsterTimeIncTrigger(timeLimit, 0 /* refresh to original limit on kill */));
challengeTriggers.add(
new KillMonsterTimeIncTrigger(timeLimit, 0 /* refresh to original limit on kill */));
}
return new WorldChallenge(

View File

@ -31,6 +31,8 @@ public class KillMonsterTimeIncTrigger extends ChallengeTrigger {
increment -= timeLeft + increment - maxTime;
}
challenge.setTimeLimit(challenge.getTimeLimit() + increment);
scene.broadcastPacket(new PacketChallengeDataNotify(challenge, 2, timeLeft + increment + scene.getSceneTimeSeconds()));
scene.broadcastPacket(
new PacketChallengeDataNotify(
challenge, 2, timeLeft + increment + scene.getSceneTimeSeconds()));
}
}