Overhauled the creature and NPC spawners that actually may no longer be used in the game... but.. at least they're better than before

This commit is contained in:
Cekis
2016-04-03 18:21:59 +01:00
parent 6431c394b0
commit 6ed436dd3a
33 changed files with 403 additions and 2257 deletions
+9 -30
View File
@@ -1,15 +1,12 @@
package script.creature_spawner;
import script.*;
import script.base_class.*;
import script.combat_engine.*;
import java.util.Arrays;
import java.util.Hashtable;
import java.util.Vector;
import script.base_script;
import script.obj_id;
public class naboo_medium extends script.creature_spawner.base_newbie_creature_spawner
{
public static final boolean SPAWNER_DISABLED = false;
public int maxPop = 4;
public naboo_medium()
{
}
@@ -18,35 +15,17 @@ public class naboo_medium extends script.creature_spawner.base_newbie_creature_s
spawnCreatures(self);
return SCRIPT_CONTINUE;
}
public int creatureDied(obj_id self, dictionary params) throws InterruptedException
{
doDeathRespawn(self);
return SCRIPT_CONTINUE;
}
public String pickCreature() throws InterruptedException
{
String creature = "fanned_rawl";
int choice = rand(1, 3);
switch (choice)
switch (rand(1, 3))
{
case 1:
creature = "fanned_rawl";
break;
return "fanned_rawl";
case 2:
creature = "nightspider";
break;
return "nightspider";
case 3:
creature = "flewt";
break;
default:
creature = "flewt";
break;
return "flewt";
}
return creature;
}
public int getMaxPop() throws InterruptedException
{
int maxPop = 4;
return maxPop;
return "flewt";
}
}