feat: 요술, 빠진 부분 채우기
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace sammo\ActionBuff;
|
||||
|
||||
use sammo\General;
|
||||
use \sammo\iAction;
|
||||
|
||||
class g65_내정성공 implements iAction
|
||||
{
|
||||
use \sammo\DefaultAction;
|
||||
|
||||
function onCalcDomestic(string $turnType, string $varType, float $value, $aux = null): float
|
||||
{
|
||||
if($turnType == '계략'){
|
||||
if($varType == 'success') return $value + 1;
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ class g65_내정성공 implements iAction
|
||||
function onCalcDomestic(string $turnType, string $varType, float $value, $aux = null): float
|
||||
{
|
||||
if ($varType == 'success' && in_array($turnType, static::$target)) {
|
||||
return 1;
|
||||
return $value + 1;
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user