feat: 의원소환, 철야내정 추가

This commit is contained in:
2023-12-25 14:08:46 +00:00
parent 53474ab3d2
commit 2bcdbb0177
5 changed files with 137 additions and 9 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace sammo\ActionBuff;
use sammo\General;
use \sammo\iAction;
class g65_내정성공 implements iAction
{
use \sammo\DefaultAction;
static protected $target = ['상업', '농업', '치안', '기술', '인구', '성벽', '수비', '민심'];
function onCalcDomestic(string $turnType, string $varType, float $value, $aux = null): float
{
if ($varType == 'success' && in_array($turnType, static::$target)) {
return 1;
}
return $value;
}
}