public function getCommands(SR_Player $player) { $c = parent::getCommands($player); if ($player->hasConst(self::REWARD_RUNES)) { $c[] = 'reward'; } return $c; }
public function getCommands(SR_Player $player) { $quest = SR_Quest::getQuest($player, 'Redmond_Blacksmith'); return $quest->isDone($player) ? parent::getCommands($player) : array('view', 'buy', 'sell'); }
public function getBreakPercentPrice(SR_Player $player) { return $player->hasSolvedQuest('Chicago_BlackSmith1') ? 0 : parent::getBreakPercentPrice($player); }