mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 12:05:39 +00:00
Format code [skip actions]
This commit is contained in:
parent
c4402cc287
commit
770a793c69
@ -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(
|
||||||
|
@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user