예제 #1
0
 public void setMiscText(String text) {
   super.setMiscText(text);
   if (!(affected instanceof MOB)) {
     Vector parms = CMParms.parse(text.toUpperCase());
     unLocatable = parms.contains("UNLOCATABLE");
   }
 }
예제 #2
0
 @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);
 }
예제 #3
0
 @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);
 }
예제 #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);
 }
예제 #5
0
 @Override
 public void setMiscText(String newMiscText) {
   super.setMiscText(newMiscText);
   bonusPointsPerStat = CMParms.getParmInt(newMiscText, "BONUSPOINTS", 0);
   rePickClass = CMParms.getParmBool(newMiscText, "PICKCLASS", false);
 }
예제 #6
0
 @Override
 public void setMiscText(String newMiscText) {
   super.setMiscText(newMiscText);
 }