コード例 #1
0
  public void unInvoke() {
    // undo the affects of this spell
    if ((affected == null) || (!(affected instanceof MOB))) {
      super.unInvoke();
      return;
    }
    MOB mob = (MOB) affected;
    if (canBeUninvoked()) mob.tell("Your summoning ward dissipates.");

    super.unInvoke();
  }
コード例 #2
0
  public void unInvoke() {
    // undo the affects of this spell
    if ((affected == null) || (!(affected instanceof MOB))) {
      super.unInvoke();
      return;
    }
    MOB mob = (MOB) affected;
    super.unInvoke();

    if (canBeUninvoked())
      if ((mob.location() != null) && (!mob.amDead()))
        mob.location().show(mob, null, CMMsg.MSG_OK_VISUAL, "<S-NAME> fade(s) back into view.");
  }
コード例 #3
0
ファイル: Spell_Friends.java プロジェクト: Cocanuta/Marble
  public void unInvoke() {
    if ((affected == null) || (!(affected instanceof MOB))) return;
    MOB mob = (MOB) affected;

    super.unInvoke();
    if (canBeUninvoked()) mob.tell("You begin to feel more like your regular cranky self.");
  }
コード例 #4
0
 public void affectPhyStats(Physical affected, PhyStats affectableStats) {
   super.affectPhyStats(affected, affectableStats);
   // when this spell is on a MOBs Affected list,
   // it should consistantly put the mob into
   // a sleeping state, so that nothing they do
   // can get them out of it.
   affectableStats.setDisposition(affectableStats.disposition() | PhyStats.IS_INVISIBLE);
 }
コード例 #5
0
ファイル: Spell_Repulsion.java プロジェクト: Cocanuta/Marble
  public void unInvoke() {
    // undo the affects of this spell
    if ((affected == null) || (!(affected instanceof MOB))) return;
    MOB mob = (MOB) affected;

    super.unInvoke();
    if (canBeUninvoked()) {
      mob.location()
          .show(
              mob,
              null,
              CMMsg.MSG_NOISYMOVEMENT,
              "<S-NAME> manage(s) to break <S-HIS-HER> way free of the repulsion field.");
      CMLib.commands().postStand(mob, true);
    }
  }
コード例 #6
0
ファイル: Spell_Friends.java プロジェクト: Cocanuta/Marble
 public void affectCharStats(MOB affected, CharStats affectableStats) {
   super.affectCharStats(affected, affectableStats);
   affectableStats.setStat(
       CharStats.STAT_CHARISMA, affectableStats.getStat(CharStats.STAT_CHARISMA) + 6);
 }