mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
53 lines
1.2 KiB
Java
53 lines
1.2 KiB
Java
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;
|
|
|
|
public class naboo_hard extends script.creature_spawner.base_newbie_creature_spawner
|
|
{
|
|
public naboo_hard()
|
|
{
|
|
}
|
|
public int OnInitialize(obj_id self) throws InterruptedException
|
|
{
|
|
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 = "nuna";
|
|
int choice = rand(1, 3);
|
|
switch (choice)
|
|
{
|
|
case 1:
|
|
creature = "nuna";
|
|
break;
|
|
case 2:
|
|
creature = "rabid_shaupaut";
|
|
break;
|
|
case 3:
|
|
creature = "narglatch_cub";
|
|
break;
|
|
default:
|
|
creature = "narglatch_cub";
|
|
break;
|
|
}
|
|
return creature;
|
|
}
|
|
public int getMaxPop() throws InterruptedException
|
|
{
|
|
int maxPop = 3;
|
|
return maxPop;
|
|
}
|
|
}
|