Skip to content

Commit

Permalink
Adjusted Ahserion's Flight raid timer to fit the retail schedule
Browse files Browse the repository at this point in the history
- Portal Controller (Base Stone) will spawn 5min after the doors are opened (Now: XX:05; Before: XX:10)
- Added missing system messages for doors "opening" (buffs timed out)
- Added missing system messages signaling the approaching end
- Removed one timed base assault
- Extended the raid by 5min
  • Loading branch information
Estrayl committed May 27, 2024
1 parent 6f37091 commit c005d07
Showing 1 changed file with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private void startInstanceTimer() {
@Override
public void run() {
switch (++progress) {
case 1:
case 2:
sendMsg(SM_SYSTEM_MESSAGE.STR_MSG_GAB1_SUB_ALARM_01());
break;
case 4:
Expand Down Expand Up @@ -112,18 +112,29 @@ public void run() {
World.getInstance().getWorldMap(400030000).getMainWorldMapInstance().forEachDoor(door -> door.setOpen(true));
sendMsg(SM_SYSTEM_MESSAGE.STR_MSG_GAB1_SUB_ALARM_08());
break;
case 40:
case 30:
sendMsg(SM_SYSTEM_MESSAGE.STR_MSG_GAB1_SUB_ALARM_09());
for (PanesterraFaction faction : PanesterraFaction.values())
spawnStage(3, faction);
break;
case 54:
case 88:
case 40:
sendMsg(SM_SYSTEM_MESSAGE.STR_MSG_GAB1_SUB_ALARM_10());
break;
case 50:
sendMsg(SM_SYSTEM_MESSAGE.STR_MSG_GAB1_SUB_ALARM_11());
break;
case 60:
sendMsg(SM_SYSTEM_MESSAGE.STR_MSG_GAB1_SUB_ALARM_12());
for (PanesterraFaction faction : PanesterraFaction.values())
if (panesterraTeams.containsKey(faction) && !panesterraTeams.get(faction).isEliminated())
spawnStage(4, faction);
break;
case 140:
case 130:
sendMsg(SM_SYSTEM_MESSAGE.STR_MSG_GAB1_SUB_ALARM_13());
case 138:
sendMsg(SM_SYSTEM_MESSAGE.STR_MSG_GAB1_SUB_ALARM_14());
break;
case 150:
stop(); // stop after 70min (-10min preparation time -15+15min barricade invulnerable time = 30min effective time to kill Ahserion)
break;
}
Expand Down Expand Up @@ -271,7 +282,7 @@ private void sendMsg(SM_SYSTEM_MESSAGE msg) {
private void deleteNpcs(PanesterraFaction eliminatedFaction, int flagToDelete) {
World.getInstance().getWorldMap(400030000).getMainWorldMapInstance().forEachNpc(npc -> {
if (npc.getNpcId() == flagToDelete || (!npc.isFlag() && (npc.getSpawn().getStaticId() < 180 || npc.getSpawn().getStaticId() > 183))) {
if (!npc.isDead() && npc.getSpawn()instanceof AhserionsFlightSpawnTemplate template) {
if (!npc.isDead() && npc.getSpawn() instanceof AhserionsFlightSpawnTemplate template) {
if (template.getFaction() == eliminatedFaction)
npc.getController().delete();
}
Expand Down

0 comments on commit c005d07

Please sign in to comment.