This commit is contained in:
Tourswen
2025-11-30 14:39:22 +08:00
parent 14a2cf542c
commit 6a5c5bd9aa
60 changed files with 3121 additions and 670 deletions

View File

@@ -23,6 +23,9 @@ namespace WulaFallenEmpire
public int StoredCount => storedMechanoidCount;
public int MaxStorage => Props.maxStorageCapacity;
public bool IsCooldownActive => Find.TickManager.TicksGame - spawnTick < 24 * 2500; // 24小时冷却
// 新增:检查是否属于玩家派系
public bool IsPlayerFaction => this.Faction == Faction.OfPlayer;
// 生成初始单位(改为计数)
private void SpawnInitialUnits()
@@ -192,6 +195,10 @@ namespace WulaFallenEmpire
foreach (Gizmo g in base.GetGizmos())
yield return g;
// 新增:只有玩家派系才能看到和使用这些按钮
if (!IsPlayerFaction)
yield break;
// 回收附近机械族按钮
Command_Action recycleCommand = new Command_Action
{