示例#1
0
 public function displayRequirements(SR_Player $player)
 {
     return $this->displayRequireAmmo($player) . parent::displayRequirements($player);
 }
示例#2
0
文件: SR_NPC.php 项目: sinfocol/gwf3
 public function isWeaponBetterThan(SR_Weapon $a, $b)
 {
     if (is_bool($b)) {
         return true;
     }
     $b instanceof SR_Weapon;
     $amod = $a->getItemModifiersA($this);
     $bmod = $b->getItemModifiersA($this);
     $admg = isset($amod['max_dmg']) ? $amod['max_dmg'] : 0;
     $bdmg = isset($bmod['max_dmg']) ? $bmod['max_dmg'] : 0;
     return $admg > $bdmg;
 }