예제 #1
0
파일: SR_City.php 프로젝트: sinfocol/gwf3
 private function calcETA(SR_Party $party, $eta = 60, $tpq = 1.0, $mintime = 5, $randtime = 10)
 {
     if (!$this->isDungeon()) {
         if (false !== ($mount = $party->getCriticalMount())) {
             $eta = $mount->getMountTime($eta);
             // 				$eta -= ($mount->getMountTuneup() * 2);
         }
     }
     $eta += rand(0, $randtime);
     $eta = Common::clamp(round($eta), $mintime);
     return $eta;
 }