コード例 #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 sneak(BaseChar other) {
   removeMana(40);
   other.defenseMod -= other.defense; // makes total defense 0
   baseAttack(other);
   other.defenseMod += other.defense; // restore defenseMod
 }
コード例 #3
0
 public void doubleAttack(BaseChar other) {
   removeMana(20);
   baseAttack(other);
   baseAttack(other);
 }
コード例 #4
0
 public void stun(BaseChar other) {
   removeMana(50);
   other.speedMod -= 20;
   other.accuracyMod -= 20;
 }