暂存穿梭机飞走不删地图

This commit is contained in:
2025-09-05 12:42:18 +08:00
parent 60aa3a18fe
commit 2dbbe8e05e
5 changed files with 18 additions and 48 deletions

View File

@@ -15,8 +15,9 @@ namespace WulaFallenEmpire
try
{
// 检查地图上是否存在一个口袋空间已经初始化的武装穿梭机
// 只要地图上存在一个活着的武装穿梭机,就保护地图
return map.listerThings.AllThings.OfType<Building_ArmedShuttleWithPocket>()
.Any(shuttle => shuttle != null && shuttle.Spawned && shuttle.PocketMapGenerated);
.Any(shuttle => shuttle != null && shuttle.Spawned && !shuttle.Destroyed);
}
catch (Exception arg)
{