示例#1
0
文件: Struggle.php 项目: gregwar/php
 /**
  * Frappe l'adversaire, le lanceur se fait cependant aussi mal
  */
 public function attack(BaseCreature $runner, BaseCreature $target)
 {
     $target->hit(5 + mt_rand(0, 5));
     $runner->hit(1 + mt_rand(0, 3));
 }
示例#2
0
文件: Vampirism.php 项目: gregwar/php
 /**
  * Frappe l'adversaire
  */
 public function attack(BaseCreature $runner, BaseCreature $target)
 {
     $life = 15 + mt_rand(0, 10);
     $target->hit($life);
     $runner->heal($life / 2.0);
 }
示例#3
0
文件: Arrow.php 项目: gregwar/php
 /**
  * Frappe l'adversaire
  */
 public function attack(BaseCreature $runner, BaseCreature $target)
 {
     $target->hit(20 + mt_rand(0, 10));
 }