27 lines
740 B
PHP
27 lines
740 B
PHP
<?php
|
|
namespace sammo\ActionSpecialWar;
|
|
use \sammo\iAction;
|
|
use \sammo\General;
|
|
use \sammo\SpecialityConst;
|
|
|
|
class che_무쌍 implements iAction{
|
|
use \sammo\DefaultAction;
|
|
|
|
static $id = 61;
|
|
static $name = '무쌍';
|
|
static $info = '[전투] 대미지 +10%, 공격 시 필살 확률 +10%p';
|
|
|
|
static $selectWeightType = SpecialityConst::WEIGHT_NORM;
|
|
static $selectWeight = 1;
|
|
static $type = [
|
|
SpecialityConst::STAT_LEADERSHIP,
|
|
SpecialityConst::STAT_POWER
|
|
];
|
|
|
|
public function onCalcStat(General $general, string $statName, $value, $aux=null){
|
|
if($statName === 'warCriticalRatio' && $aux['isAttacker']??false){
|
|
return $value += 0.1;
|
|
}
|
|
return $value;
|
|
}
|
|
} |