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 challengeData = GameData.getDungeonChallengeConfigDataMap().get(challengeId);
val challengeType = challengeData.getChallengeType(); val challengeType = challengeData.getChallengeType();
if (challengeType == ChallengeType.CHALLENGE_KILL_COUNT_FAST) { 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( return new WorldChallenge(

View File

@ -15,7 +15,7 @@ public class KillMonsterTimeIncTrigger extends ChallengeTrigger {
} }
@Override @Override
public void onBegin(WorldChallenge challenge) { } public void onBegin(WorldChallenge challenge) {}
@Override @Override
public void onMonsterDeath(WorldChallenge challenge, EntityMonster monster) { public void onMonsterDeath(WorldChallenge challenge, EntityMonster monster) {
@ -31,6 +31,8 @@ public class KillMonsterTimeIncTrigger extends ChallengeTrigger {
increment -= timeLeft + increment - maxTime; increment -= timeLeft + increment - maxTime;
} }
challenge.setTimeLimit(challenge.getTimeLimit() + increment); 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()));
} }
} }