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

This commit is contained in:
2022-02-20 03:37:15 +09:00
parent bffdf9d190
commit bc568e2083
10 changed files with 200 additions and 5 deletions
@@ -9,7 +9,7 @@ class event_전투특기_징병 extends \sammo\BaseItem{
protected $rawName = '비급';
protected $name = '비급(징병)';
protected $info = '[군사] 징·모병비 -50%, 통솔 순수 능력치 보정 +15%';
protected $info = '[군사] 징·모병비 -50%, 통솔 순수 능력치 보정 +25%';
protected $cost = 100;
protected $buyable = true;
protected $consumable = false;
@@ -25,7 +25,7 @@ class event_전투특기_징병 extends \sammo\BaseItem{
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'leadership'){
return $value *= 1.15;
return $value + $general->getVar('leadership') * 0.25;
}
return $value;
}