Files
core/hwe/sammo/ActionItem/che_계략_이추.php
T
2018-11-17 01:33:17 +09:00

28 lines
775 B
PHP

<?php
namespace sammo\ActionNationType;
use \sammo\iAction;
use \sammo\General;
class che_계략_이추 extends \sammo\BaseItem{
static $id = 5;
static $name = '이추(계략)';
static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +10%p';
static $cost = 1000;
static $consumable = true;
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
if($turnType == '계략'){
if($varType == 'success') return $value + 0.1;
}
return $value;
}
function isValidTurnItem(string $actionType, string $command):bool{
if($actionType == 'GeneralCommand' && $command == '계략'){
return true;
}
return false;
}
}