27 lines
678 B
PHP
27 lines
678 B
PHP
<?php
|
|
namespace sammo\ActionSpecialWar;
|
|
use \sammo\iAction;
|
|
use \sammo\General;
|
|
use \sammo\SpecialityConst;
|
|
use \sammo\WarUnit;
|
|
|
|
class che_신중 implements iAction{
|
|
use \sammo\DefaultAction;
|
|
|
|
protected $id = 44;
|
|
protected $name = '신중';
|
|
protected $info = '[전투] 계략 성공 확률 100%';
|
|
|
|
static $selectWeightType = SpecialityConst::WEIGHT_NORM;
|
|
static $selectWeight = 1;
|
|
static $type = [
|
|
SpecialityConst::STAT_INTEL,
|
|
];
|
|
|
|
public function onCalcStat(General $general, string $statName, $value, $aux=null){
|
|
if($statName === 'warMagicSuccessProb'){
|
|
return $value + 1;
|
|
}
|
|
return $value;
|
|
}
|
|
} |