暂存
This commit is contained in:
@@ -7,13 +7,27 @@ namespace ArachnaeSwarm
|
||||
{
|
||||
public class CompProperties_RefuelableNutrition : CompProperties_Refuelable
|
||||
{
|
||||
public bool silent = false;
|
||||
|
||||
public CompProperties_RefuelableNutrition()
|
||||
{
|
||||
compClass = typeof(CompRefuelableNutrition);
|
||||
// 默认启用这些Gizmo,除非在XML中明确设置为false
|
||||
this.targetFuelLevelConfigurable = true;
|
||||
this.showAllowAutoRefuelToggle = true;
|
||||
}
|
||||
|
||||
public override IEnumerable<StatDrawEntry> SpecialDisplayStats(StatRequest req)
|
||||
{
|
||||
if (silent)
|
||||
{
|
||||
yield break; // If silent, return nothing.
|
||||
}
|
||||
|
||||
foreach (var stat in base.SpecialDisplayStats(req))
|
||||
{
|
||||
yield return stat;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[StaticConstructorOnStartup]
|
||||
|
||||
Reference in New Issue
Block a user