wyvern.lib.monsters
Class RustAttack

java.lang.Object
  extended bywyvern.lib.monsters.DefaultCustomAttack
      extended bywyvern.lib.monsters.RustAttack
All Implemented Interfaces:
Attack, CustomAttack

public class RustAttack
extends DefaultCustomAttack

Rusts (i.e. severely damages) one of the defender's pieces of armor.

Version:
1.0, May 20, 2002
Author:
Steve Yegge

Field Summary
 
Fields inherited from class wyvern.lib.monsters.DefaultCustomAttack
DEFAULT_HIT_CHANCE
 
Constructor Summary
RustAttack()
           
 
Method Summary
 void performDamage(Commandable attacker, GameObject defender, CommandEvent event)
          Tells the attack to perform its special damage effect.
 
Methods inherited from class wyvern.lib.monsters.DefaultCustomAttack
didDamage, getToHit, getWC, getWeaponSkill, recomputeWCs, setShowAttackerMessage, setToHit, setWC, showAttackerMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RustAttack

public RustAttack()
Method Detail

performDamage

public void performDamage(Commandable attacker,
                          GameObject defender,
                          CommandEvent event)
Tells the attack to perform its special damage effect. Called if the attack's to-hit was successful and the attack wasn't vetoed. In this case, rusts a random worn armor.

Parameters:
attacker - the rust monster or whatever
defender - the player being attacked
event - the HitCommand event