mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 14:24:37 +01:00
Increment rogue map counter properly
This commit is contained in:
@@ -29,7 +29,7 @@ public class RogueInstance {
|
|||||||
public RogueInstance(Player player, RogueAreaExcel excel) {
|
public RogueInstance(Player player, RogueAreaExcel excel) {
|
||||||
this.player = player;
|
this.player = player;
|
||||||
this.excel = excel;
|
this.excel = excel;
|
||||||
this.currentRoomProgress = 1;
|
this.currentRoomProgress = 0;
|
||||||
this.baseAvatarIds = new HashSet<>();
|
this.baseAvatarIds = new HashSet<>();
|
||||||
|
|
||||||
this.initRooms();
|
this.initRooms();
|
||||||
@@ -79,6 +79,7 @@ public class RogueInstance {
|
|||||||
if (nextRoom == null) return null;
|
if (nextRoom == null) return null;
|
||||||
|
|
||||||
// Enter room
|
// Enter room
|
||||||
|
this.currentRoomProgress++;
|
||||||
this.currentSiteId = nextRoom.getSiteId();
|
this.currentSiteId = nextRoom.getSiteId();
|
||||||
nextRoom.setStatus(RogueRoomStatus.ROGUE_ROOM_STATUS_PLAY);
|
nextRoom.setStatus(RogueRoomStatus.ROGUE_ROOM_STATUS_PLAY);
|
||||||
|
|
||||||
@@ -100,6 +101,7 @@ public class RogueInstance {
|
|||||||
|
|
||||||
// Send packet if we are not entering the rogue instance for the first time
|
// Send packet if we are not entering the rogue instance for the first time
|
||||||
if (prevRoom != null) {
|
if (prevRoom != null) {
|
||||||
|
getPlayer().sendPacket(new PacketSyncRogueMapRoomScNotify(this, prevRoom));
|
||||||
getPlayer().sendPacket(new PacketSyncRogueMapRoomScNotify(this, nextRoom));
|
getPlayer().sendPacket(new PacketSyncRogueMapRoomScNotify(this, nextRoom));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user