示例#1
0
 public boolean tick(Queue q) {
   ticks--;
   boolean continuing = ticks > 0;
   if (!continuing) {
     bearer.getRoom().notice(bearer, bearer.getName() + "s ball of darkness dissappears.");
     bearer.notice("Your ball of darkness dissappears.");
   }
   return continuing;
 }
示例#2
0
  public void use(SkillUsageContext suc) {
    Living who = suc.getActor();
    MObject target = suc.getTarget();
    int success = suc.getSkillSuccess();

    if (success > 0) {

      who.notice("You chant 'Noir Noir' and create a ball of darkness.");
      who.getRoom()
          .notice(who, who.getName() + " chants 'Noir Noir' and creates a ball of darkness.");

      who.addModifier(new DarknessModifier(20, who));

    } else {
      who.notice("You chant 'Noir Noir' but your spell just fizzles.");
      who.getRoom().notice(who, who.getName() + " chants 'Noir Noir'.");
    }
  }