示例#1
0
 public function announceADV(SR_Player $player, SR_Player $target, $level, $key = '10000', $arg1 = '', $arg2 = '', $arg3 = '', $arg4 = '')
 {
     # Pick right keys. Each spell has own 4 keys for all 4 possibilities.
     $key_friend = $key;
     $key_foe = $key + 2;
     if ($this->isCastMode()) {
         $key_friend++;
         $key_foe++;
     }
     $key_friend = (string) $key_friend;
     $key_foe = (string) $key_foe;
     # 9 args
     $args = array($player->displayName(), $level, $this->getName(), $target->displayName(), $arg1, $arg2, $arg3, Shadowfunc::displayBusy($player->getBusyLeft()));
     # Announce
     $p = $player->getParty();
     $ep = $target->getParty();
     if ($ep->getID() !== $p->getID()) {
         $ep->ntice($key_foe, $args);
     }
     if ($this->isCastMode()) {
         # 10 args
         # TODO: this 12 args
         // 			$args[] = $this->getManaCost($player, $level);
         // 			$args[] = $player->getMP();
         // 			$args[] = $player->getMaxMP();
         # Old spell style 10 args
         $gain = $this->getManaCost($player, $level);
         $oldmp = $player->getMP() + $gain;
         $maxmp = $player->getMaxMP();
         $args[] = Shadowfunc::displayMPGain($oldmp, -$gain, $maxmp);
     }
     $args[] = $arg4;
     $p->ntice($key_friend, $args);
 }
示例#2
0
文件: feel.php 项目: sinfocol/gwf3
 private static function argsForMember(SR_Player $member, &$enum)
 {
     return array($enum++, $member->displayName(), self::getFeel('food', $member, 'H'), self::getFeel('water', $member, 'T'), self::getFeel('sleepy', $member, 'S'), self::getFeel('cold', $member, 'C'));
 }