mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 13:54:37 +01:00
Allow stage ids to be overridden in EntityMonster
This commit is contained in:
@@ -17,6 +17,7 @@ public class EntityMonster implements GameEntity {
|
|||||||
@Setter private int groupId;
|
@Setter private int groupId;
|
||||||
@Setter private int instId;
|
@Setter private int instId;
|
||||||
@Setter private int eventId;
|
@Setter private int eventId;
|
||||||
|
@Setter private int overrideStageId;
|
||||||
|
|
||||||
private NpcMonsterExcel excel;
|
private NpcMonsterExcel excel;
|
||||||
private Position pos;
|
private Position pos;
|
||||||
@@ -29,7 +30,11 @@ public class EntityMonster implements GameEntity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getStageId() {
|
public int getStageId() {
|
||||||
return (this.getEventId() * 10) + worldLevel;
|
if (this.overrideStageId == 0) {
|
||||||
|
return (this.getEventId() * 10) + worldLevel;
|
||||||
|
} else {
|
||||||
|
return this.overrideStageId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user