천지비급 시나리오를 설명에 맞게 수정

This commit is contained in:
2020-06-03 22:17:22 +09:00
parent 1500e8e54f
commit a38cb90cbf
20 changed files with 595 additions and 580 deletions
@@ -1,25 +1,26 @@
<?php
namespace sammo\ActionItem;
use \sammo\iAction;
use \sammo\General;
use \sammo\SpecialityHelper;
use \sammo\WarUnit;
class event_전투특기_척사 extends \sammo\BaseItem{
protected $id = 75;
protected $rawName = '비급';
protected $name = '비급(척사)';
protected $info = '[전투] 지역·도시 병종 상대로 대미지 +10%, 아군 피해 -10%';
protected $cost = 100;
protected $buyable = true;
protected $consumable = false;
public function getWarPowerMultiplier(WarUnit $unit):array{
$opposeCrewType = $unit->getOppose()->getCrewType();
if($opposeCrewType->reqCities || $opposeCrewType->reqRegions){
return [1.1, 0.9];
}
return [1, 1];
}
<?php
namespace sammo\ActionItem;
use \sammo\iAction;
use \sammo\General;
use \sammo\SpecialityHelper;
use \sammo\WarUnit;
class event_전투특기_척사 extends \sammo\BaseItem{
protected $id = 75;
protected $rawName = '비급';
protected $name = '비급(척사)';
protected $info = '[전투] 지역·도시 병종 상대로 대미지 +10%, 아군 피해 -10%';
protected $cost = 100;
protected $buyable = true;
protected $consumable = false;
protected $reqSecu = 3000;
public function getWarPowerMultiplier(WarUnit $unit):array{
$opposeCrewType = $unit->getOppose()->getCrewType();
if($opposeCrewType->reqCities || $opposeCrewType->reqRegions){
return [1.1, 0.9];
}
return [1, 1];
}
}