Example #1
0
 public Lion() {
   setRace(
       (Race)
           QuadrupleFactory.getInstance()
               .create(
                   new Object[] {
                     QuadrupleFactory.QuadrupleOption.PAWS, QuadrupleFactory.QuadrupleOption.JAWS
                   }));
   setExperienceWorth(20000);
   setPhysicalStrength(50);
   setPhysicalConstitution(50);
   setPhysicalDexterity(50);
   setAggressive(Dice.random() < 15);
   setAggressive(false);
   setName("lion");
   setDescription("A lion");
   setLongDescription("It's a lion.");
   setBattleStyle(new BestialBattleStyle(this));
   setSkill("fighting", 50);
   getMoney().add(Money.Coin.BRONZE, Dice.random());
   start();
 }
Example #2
0
 public Gnu() {
   setRace(
       (Race)
           QuadrupleFactory.getInstance()
               .create(
                   new Object[] {
                     QuadrupleFactory.QuadrupleOption.HOOVES,
                     QuadrupleFactory.QuadrupleOption.HORNS
                   }));
   setExperienceWorth(8000);
   addModifier(new DefaultModifierImpl(ModifierTypes.SIZE, new Object[0], -25));
   setPhysicalStrength(30);
   setPhysicalConstitution(30);
   setPhysicalDexterity(25);
   setAggressive(false);
   setAggressive(false);
   setName("gnu");
   setDescription("A gnu");
   setLongDescription("It was created by a man called Richard Stallman.");
   setBattleStyle(new BestialBattleStyle(this));
   setSkill("fighting", 20);
   getMoney().add(Money.Coin.BRONZE, Dice.random());
   start();
 }