示例#1
0
 public Weapon myNaturalWeapon() {
   if (naturalWeapon == null) {
     naturalWeapon = CMClass.getWeapon("StdWeapon");
     naturalWeapon.setName("a Unicorn Horn");
     naturalWeapon.setWeaponType(Weapon.TYPE_PIERCING);
   }
   return naturalWeapon;
 }
示例#2
0
文件: Shaman.java 项目: bbailey/ewok
 public Vector outfit(MOB myChar) {
   if (outfitChoices == null) {
     outfitChoices = new Vector();
     Weapon w = CMClass.getWeapon("SmallMace");
     outfitChoices.addElement(w);
   }
   return outfitChoices;
 }
示例#3
0
 public Weapon myNaturalWeapon() {
   if (naturalWeapon == null) {
     naturalWeapon = CMClass.getWeapon("StdWeapon");
     naturalWeapon.setName("sharp claws");
     naturalWeapon.setWeaponType(Weapon.TYPE_SLASHING);
   }
   return naturalWeapon;
 }
示例#4
0
 @Override
 public List<Item> outfit(MOB myChar) {
   if (outfitChoices == null) {
     outfitChoices = new Vector();
     final Weapon w = CMClass.getWeapon("Quarterstaff");
     outfitChoices.add(w);
   }
   return outfitChoices;
 }
示例#5
0
 public Weapon myNaturalWeapon() {
   if (naturalWeapon == null) {
     naturalWeapon = CMClass.getWeapon("StdWeapon");
     naturalWeapon.setName("an appendange");
     naturalWeapon.setRanges(0, 2);
     naturalWeapon.setWeaponType(Weapon.TYPE_BASHING);
   }
   return naturalWeapon;
 }
示例#6
0
 @Override
 public List<Item> outfit(MOB myChar) {
   if (outfitChoices == null) {
     final Weapon w = CMClass.getWeapon("Shortsword");
     if (w == null) return new Vector<Item>();
     outfitChoices = new Vector<Item>();
     outfitChoices.add(w);
   }
   return outfitChoices;
 }
示例#7
0
 @Override
 public Weapon myNaturalWeapon() {
   if (naturalWeapon == null) {
     naturalWeapon = CMClass.getWeapon("StdWeapon");
     naturalWeapon.setName(L("a nasty stinger"));
     naturalWeapon.setMaterial(RawMaterial.RESOURCE_BONE);
     naturalWeapon.setUsesRemaining(1000);
     naturalWeapon.setWeaponDamageType(Weapon.TYPE_PIERCING);
   }
   return naturalWeapon;
 }
示例#8
0
 @Override
 public Weapon myNaturalWeapon() {
   if (naturalWeapon == null) {
     naturalWeapon = CMClass.getWeapon("StdWeapon");
     naturalWeapon.setName(L("some nasty pincers"));
     naturalWeapon.setMaterial(RawMaterial.RESOURCE_BONE);
     naturalWeapon.setUsesRemaining(1000);
     naturalWeapon.setWeaponType(Weapon.TYPE_NATURAL);
   }
   return naturalWeapon;
 }
示例#9
0
 @Override
 public Weapon myNaturalWeapon() {
   if (naturalWeapon == null) {
     naturalWeapon = CMClass.getWeapon("StdWeapon");
     naturalWeapon.setName(L("a pair of claws"));
     naturalWeapon.setMaterial(RawMaterial.RESOURCE_BONE);
     naturalWeapon.setUsesRemaining(1000);
     naturalWeapon.setWeaponType(Weapon.TYPE_SLASHING);
   }
   return naturalWeapon;
 }
示例#10
0
 @Override
 public Weapon myNaturalWeapon() {
   if (naturalWeapon == null) {
     naturalWeapon = CMClass.getWeapon("StdWeapon");
     naturalWeapon.setName(L("<S-HIS-HER> body"));
     naturalWeapon.setRanges(0, 3);
     naturalWeapon.setMaterial(RawMaterial.RESOURCE_STONE);
     naturalWeapon.setUsesRemaining(1000);
     naturalWeapon.setWeaponType(Weapon.TYPE_BASHING);
   }
   return naturalWeapon;
 }
示例#11
0
 public boolean tick(Tickable ticking, int tickID) {
   if (!super.tick(ticking, tickID)) return false;
   if ((tickID == Tickable.TICKID_MOB) && (affected != null) && (affected instanceof MOB)) {
     MOB mob = (MOB) affected;
     if ((mob.isInCombat())
         && (CMLib.flags().aliveAwakeMobileUnbound(mob, true))
         && (mob.rangeToTarget() == 0)
         && (mob.charStats().getBodyPart(Race.BODY_HAND) > 1)
         && (!anyWeapons(mob))) {
       if (CMLib.dice().rollPercentage() > 95) helpProficiency(mob, 0);
       if ((naturalWeapon == null) || (naturalWeapon.amDestroyed())) {
         naturalWeapon = CMClass.getWeapon("GenWeapon");
         naturalWeapon.setName("a knife hand");
         naturalWeapon.setWeaponType(Weapon.TYPE_PIERCING);
         naturalWeapon.basePhyStats().setDamage(7);
         naturalWeapon.recoverPhyStats();
       }
       CMLib.combat().postAttack(mob, mob.getVictim(), naturalWeapon);
     }
   }
   return true;
 }