From 770a793c69ca82e383bb21a5baea346b1d2a5978 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 05:36:30 +0000 Subject: [PATCH] Format code [skip actions] --- .../factory/KillMonsterTimeChallengeFactoryHandler.java | 3 ++- .../challenge/trigger/KillMonsterTimeIncTrigger.java | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/dungeons/challenge/factory/KillMonsterTimeChallengeFactoryHandler.java b/src/main/java/emu/grasscutter/game/dungeons/challenge/factory/KillMonsterTimeChallengeFactoryHandler.java index daaab28a1..f2d4c63ae 100644 --- a/src/main/java/emu/grasscutter/game/dungeons/challenge/factory/KillMonsterTimeChallengeFactoryHandler.java +++ b/src/main/java/emu/grasscutter/game/dungeons/challenge/factory/KillMonsterTimeChallengeFactoryHandler.java @@ -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( diff --git a/src/main/java/emu/grasscutter/game/dungeons/challenge/trigger/KillMonsterTimeIncTrigger.java b/src/main/java/emu/grasscutter/game/dungeons/challenge/trigger/KillMonsterTimeIncTrigger.java index 738a27a66..63a659188 100644 --- a/src/main/java/emu/grasscutter/game/dungeons/challenge/trigger/KillMonsterTimeIncTrigger.java +++ b/src/main/java/emu/grasscutter/game/dungeons/challenge/trigger/KillMonsterTimeIncTrigger.java @@ -15,7 +15,7 @@ public class KillMonsterTimeIncTrigger extends ChallengeTrigger { } @Override - public void onBegin(WorldChallenge challenge) { } + public void onBegin(WorldChallenge challenge) {} @Override public void onMonsterDeath(WorldChallenge challenge, EntityMonster monster) { @@ -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())); } }