修医生抢喂食工作

This commit is contained in:
2025-07-24 12:02:34 +08:00
parent f4d6f35185
commit 21b9ec45f6
7 changed files with 44 additions and 29 deletions

View File

@@ -52,7 +52,7 @@ namespace WulaFallenEmpire
[StaticConstructorOnStartup]
public class CompApparelInterceptor : ThingComp
{
// 状态变量
// 状态变量
private int lastInterceptTicks = -999999;
private int startedChargingTick = -1;
private bool shutDown;
@@ -62,17 +62,17 @@ namespace WulaFallenEmpire
private int ticksToReset;
private int activatedTick = -999999;
// 视觉效果变量
// 视觉效果变量
private float lastInterceptAngle;
private bool drawInterceptCone;
// 静态资源
// 静态资源
private static readonly Material ForceFieldMat = MaterialPool.MatFrom("Other/ForceField", ShaderDatabase.MoteGlow);
private static readonly Material ForceFieldConeMat = MaterialPool.MatFrom("Other/ForceFieldCone", ShaderDatabase.MoteGlow);
private static readonly MaterialPropertyBlock MatPropertyBlock = new MaterialPropertyBlock();
private static readonly Color InactiveColor = new Color(0.2f, 0.2f, 0.2f);
// 属性
// 属性
public CompProperties_ApparelInterceptor Props => (CompProperties_ApparelInterceptor)props;
private Pawn PawnOwner => (parent as Apparel)?.Wearer;
@@ -320,6 +320,7 @@ namespace WulaFallenEmpire
}
}
[StaticConstructorOnStartup]
public class Gizmo_EnergyShieldStatus : Gizmo
{
public CompApparelInterceptor shield;
@@ -355,4 +356,4 @@ namespace WulaFallenEmpire
return new GizmoResult(GizmoState.Clear);
}
}
}
}