public function displayRequirements(SR_Player $player) { return $this->displayRequireAmmo($player) . parent::displayRequirements($player); }
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; }