Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
0
 @Override
 public void setMiscText(String newMiscText) {
   super.setMiscText(newMiscText);
   bonusPointsPerStat = CMParms.getParmInt(newMiscText, "BONUSPOINTS", 0);
   rePickClass = CMParms.getParmBool(newMiscText, "PICKCLASS", false);
 }
Ejemplo n.º 5
0
 @Override
 public void setMiscText(String newMiscText) {
   super.setMiscText(newMiscText);
 }