示例#1
0
文件: Prison.php 项目: sinfocol/gwf3
 public function onCityEnter(SR_Party $party)
 {
     $party->giveKnowledge('places', 'Prison_Registry');
     if ($party->hasNPCClassed('PrisonB2_Malois')) {
         $this->setAlert($party, 9000000);
     }
     $party->notice('You can see the registry from here.');
     parent::onCityEnter($party);
 }
示例#2
0
文件: SR_City.php 项目: sinfocol/gwf3
 private function onWentTo(SR_Party $party)
 {
     $target = $party->getTarget();
     $location = $this->getLocation($target);
     $party->giveKnowledge('places', $target);
     $party->pushAction(SR_Party::ACTION_OUTSIDE, $target);
     if ($location->isEnterAllowedParty($party)) {
         $location->onEnter($party->getLeader());
     }
 }