Ejemplo n.º 1
0
 public static void pickAWimpyFight(
     MOB observer, boolean mobKiller, boolean misBehave, String attackMsg, String zapStr) {
   if (!canFreelyBehaveNormal(observer)) return;
   Room R = observer.location();
   if (R != null)
     for (int i = 0; i < R.numInhabitants(); i++) {
       MOB mob = R.fetchInhabitant(i);
       if ((mob != null)
           && (mob != observer)
           && (CMLib.flags().isSleeping(mob))
           && (CMLib.masking().maskCheck(zapStr, observer, false))) {
         startFight(observer, mob, mobKiller, misBehave, attackMsg);
         if (observer.isInCombat()) break;
       }
     }
 }
Ejemplo n.º 2
0
 public boolean grantsAggressivenessTo(MOB M) {
   return ((M != null) && (CMLib.flags().isSleeping(M)))
       && CMLib.masking().maskCheck(getParms(), M, false);
 }
Ejemplo n.º 3
0
 public String accountForYourself() {
   if (getParms().trim().length() > 0)
     return "wimpy aggression against " + CMLib.masking().maskDesc(getParms(), true).toLowerCase();
   else return "wimpy aggressiveness";
 }