fix: 대규모 이민족 소환 중단을 방지한다

This commit is contained in:
2026-08-23 12:01:17 +00:00
parent 392d8e4042
commit c49f6008a6
3 changed files with 34 additions and 5 deletions
+12 -5
View File
@@ -539,11 +539,8 @@ class GeneralBuilder{
return $this->death;
}
public function build($env){
//scenario에 life==1인 경우 수명 제한이 없어지는 모양.
public static function prepareEnvironment(array $env): array
{
if(!key_exists('stored_icons', $env)){
try{
$text = \file_get_contents(\sammo\ServConfig::getSharedIconPath('../hook/list.json?1'));
@@ -556,6 +553,16 @@ class GeneralBuilder{
$env['stored_icons'] = $storedIcons;
}
return $env;
}
public function build($env){
//scenario에 life==1인 경우 수명 제한이 없어지는 모양.
$env = static::prepareEnvironment($env);
$isFictionMode = (Util::array_get($env['fiction'], 0)!=0);
$year = $env['year'];