示例#1
0
 public void superAttack(BaseChar other) {
   removeMana(60);
   attackMod += attack; // doubles attack
   baseAttack(other);
   baseAttack(other);
   attackMod -= attack; // restores attackMod
 }
示例#2
0
 public void doubleAttack(BaseChar other) {
   removeMana(20);
   baseAttack(other);
   baseAttack(other);
 }
示例#3
0
 public void sneak(BaseChar other) {
   removeMana(40);
   other.defenseMod -= other.defense; // makes total defense 0
   baseAttack(other);
   other.defenseMod += other.defense; // restore defenseMod
 }