game: 전투 특기 반영 유니크 도구 추가

This commit is contained in:
Hide_D committed 2022-02-20 03:37:15 +09:00
1 parent 2cdf00af50
commit 613a0c00e8
10 files changed
+200 -5

No files matched your search

@@ -0,0 +1,23 @@
<?php
namespace sammo\ActionItem;
use \sammo\iAction;
use \sammo\General;
use \sammo\SpecialityHelper;
use \sammo\WarUnit;
class che_척사_오약진형도 extends \sammo\BaseItem{
protected $rawName = '오약진형도';
protected $name = '오약진형도(척사)';
protected $info = '[전투] 지역·도시 병종 상대로 대미지 +15%, 아군 피해 -15%';
protected $cost = 200;
protected $consumable = false;
public function getWarPowerMultiplier(WarUnit $unit):array{
$opposeCrewType = $unit->getOppose()->getCrewType();
if($opposeCrewType->reqCities || $opposeCrewType->reqRegions){
return [1.15, 0.85];
}
return [1, 1];
}
}