[Refactoring] Updates for multi proto 0.2 spiral abyss changes

This commit is contained in:
hartie95 2024-08-21 15:10:06 +02:00
parent f1592ac069
commit 60eaad14fa

View File

@ -7,8 +7,8 @@ import emu.grasscutter.game.player.Player;
import lombok.Builder;
import lombok.val;
import org.anime_game_servers.multi_proto.gi.messages.dungeon.progression.DungeonSettleNotify;
import org.anime_game_servers.multi_proto.gi.messages.tower.ContinueStateType;
import org.anime_game_servers.multi_proto.gi.messages.tower.TowerLevelEndNotify;
import org.anime_game_servers.multi_proto.gi.messages.spiral_abyss.run.ContinueStateType;
import org.anime_game_servers.multi_proto.gi.messages.spiral_abyss.run.TowerLevelEndNotify;
import java.util.List;
import java.util.stream.IntStream;
@ -41,7 +41,7 @@ public class TowerResult extends BaseDungeonResult {
towerLevelEndNotify.setContinueState((success && this.hasNextFloor ? this.hasNextLevel ?
ContinueStateType.CONTINUE_STATE_CAN_ENTER_NEXT_LEVEL :
ContinueStateType.CONTINUE_STATE_CAN_ENTER_NEXT_FLOOR :
ContinueStateType.CONTINUE_STATE_CAN_NOT_CONTINUE).ordinal());
ContinueStateType.CONTINUE_STATE_CAN_NOT_CONTINUE));
towerLevelEndNotify.setFinishedStarCondList(IntStream.rangeClosed(1, this.stars).boxed().toList());
towerLevelEndNotify.setNextFloorId(this.hasNextFloor ? this.nextFloorId : 0);
towerLevelEndNotify.setRewardItemList(this.rewardItems.stream()