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

This commit is contained in:
2022-02-20 03:37:15 +09:00
parent 2cdf00af50
commit 613a0c00e8
10 changed files with 200 additions and 5 deletions
@@ -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];
}
}