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