Implemented ContentInterface-based NPC Scripting

Obsoleted AbstractNPC
Implemented desert bandits
Rewrote a handful of existing NPCs into NPCBehaviors (e.g. rock slugs, nechryaels, water fiend and more)
This commit is contained in:
Ceikry
2023-03-01 06:42:25 +00:00
committed by Ryan
parent f0d7b82bf9
commit 9a4b933976
18 changed files with 490 additions and 563 deletions
@@ -229,7 +229,7 @@ public enum Pets {
// BABY_GOLD_CHINCHOMPA(14826, -1, -1, 8658, -1, -1, 0.0, 1),
// HERON(14827, -1, -1, 8647, -1, -1, 0.0, 1),
// TZREK_JAD(14828, -1, -1, 8650, -1, -1, 0.0, 1);
/**
* The baby pets mapping.
@@ -451,12 +451,12 @@ public enum Pets {
*/
public int getNpcId(int stage) {
switch (stage) {
case 0:
return babyNpcId;
case 1:
return grownNpcId;
case 2:
return overgrownNpcId;
case 0:
return babyNpcId;
case 1:
return grownNpcId;
case 2:
return overgrownNpcId;
}
return 0;
}
@@ -468,13 +468,13 @@ public enum Pets {
*/
public int getItemId(int stage) {
switch (stage) {
case 0:
return babyItemId;
case 1:
return grownItemId;
case 2:
return overgrownItemId;
case 0:
return babyItemId;
case 1:
return grownItemId;
case 2:
return overgrownItemId;
}
return 0;
}
}
}