game: 1회저지, 회피저지 유니크 추가

This commit is contained in:
2022-02-20 03:17:35 +09:00
parent e7af4563a2
commit bffdf9d190
2 changed files with 48 additions and 0 deletions
@@ -0,0 +1,20 @@
<?php
namespace sammo\ActionItem;
use \sammo\iAction;
use \sammo\General;
class che_회피저지_노군입산부 extends \sammo\BaseItem{
protected $rawName = '노군입산부';
protected $name = '노군입산부(회피저지)';
protected $info = '[전투] 상대 회피 확률 -15%p';
protected $cost = 200;
protected $consumable = false;
public function onCalcOpposeStat(General $general, string $statName, $value, $aux=null){
if($statName === 'warAvoidRatio'){
return $value - 0.15;
}
return $value;
}
}