fix: 버프의 만료 기간을 다음턴 직전까지로 변경

- 전투 버프 등에서 장수 턴시간에 따라 효과보는 시간을 동일하게.
This commit is contained in:
2023-12-27 11:19:48 +00:00
parent 5f130139b3
commit bd0b20a737
2 changed files with 18 additions and 0 deletions
+16
View File
@@ -137,6 +137,22 @@ class General extends GeneralBase implements iAction
return;
}
foreach($rawBuffList as $rawBuff){
$buffItem = InstantBuff::fromArray($rawBuff);
$this->instantBuffList[] = buildBuffClass($buffItem->buffName);
}
}
//기한이 지난 버프를 삭제
function clearExpiredBuff()
{
$this->instantBuffList = [];
$rawBuffList = $this->getAuxVar(GeneralAuxKey::instantBuffList);
if($rawBuffList === null){
return;
}
$newRawBuffList = [];
$reqUpdate = false;
+2
View File
@@ -313,6 +313,8 @@ class TurnExecutionHelper
$general->increaseInheritancePoint(InheritanceKey::lived_month, 1);
$general->clearExpiredBuff();
$rng = new RandUtil(new LiteHashDRBG(Util::simpleSerialize(
UniqueConst::$hiddenSeed,
'preprocess',