Beispiel #1
0
 public void setMiscText(String text) {
   super.setMiscText(text);
   if (!(affected instanceof MOB)) {
     Vector parms = CMParms.parse(text.toUpperCase());
     unLocatable = parms.contains("UNLOCATABLE");
   }
 }
 @Override
 public void setMiscText(String newMiscText) {
   super.setMiscText(newMiscText);
   final String maskStr = CMParms.getParmStr(newMiscText, "mask", "");
   mask = null;
   if ((maskStr != null) && (maskStr.trim().length() > 0))
     mask = CMLib.masking().getPreCompiledMask(maskStr);
 }
 @Override
 public void setMiscText(String newText) {
   super.setMiscText(newText);
   spellV = null;
   compiledMask = null;
   lastMOB = null;
   chanceToHappen = -1;
   maxTicks = -1;
   final String maskString = getMaskString(newText);
   if (maskString.length() > 0) compiledMask = CMLib.masking().getPreCompiledMask(maskString);
 }
Beispiel #4
0
 @Override
 public void setMiscText(String txt) {
   noFollow = false;
   noSneak = false;
   final Vector<String> parms = CMParms.parse(txt.toUpperCase());
   String s;
   for (final Enumeration<String> p = parms.elements(); p.hasMoreElements(); ) {
     s = p.nextElement();
     if ("NOFOLLOW".startsWith(s)) noFollow = true;
     else if (s.startsWith("NOSNEAK")) noSneak = true;
   }
   super.setMiscText(txt);
 }
 @Override
 public void setMiscText(String newMiscText) {
   super.setMiscText(newMiscText);
   bonusPointsPerStat = CMParms.getParmInt(newMiscText, "BONUSPOINTS", 0);
   rePickClass = CMParms.getParmBool(newMiscText, "PICKCLASS", false);
 }
 @Override
 public void setMiscText(String newMiscText) {
   super.setMiscText(newMiscText);
 }