game: 회피 유니크 조절

This commit is contained in:
Hide_D committed 2022-02-20 03:09:59 +09:00
1 parent 90b51d5a21
commit b919a09d33
3 files changed
+25 -3

No files matched your search

@@ -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 = '[전투] 필살 확률 +20%p';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'warCriticalRatio'){
return $value + 0.2;
}
return $value;
}
}