Release 1.11.4.1 (Winter Update)

This commit is contained in:
Markus Isberg
2025-12-08 14:56:47 +00:00
parent 21e34e5cd8
commit 598966f200
121 changed files with 1614 additions and 819 deletions
@@ -37,7 +37,8 @@ sealed class ConditionallyEditable : Editable
HasIntegratedButtons,
IsToggleableController,
HasConnectionPanel,
DeteriorateUnderStress
DeteriorateUnderStress,
ReceivesSubmarineImpacts
}
public bool IsEditable(ISerializableEntity entity)
@@ -72,6 +73,8 @@ sealed class ConditionallyEditable : Editable
=> GetComponent<ConnectionPanel>(entity) != null,
ConditionType.DeteriorateUnderStress
=> entity is Item repairableItem && repairableItem.Components.Any(c => c is IDeteriorateUnderStress),
ConditionType.ReceivesSubmarineImpacts
=> entity is Item { Prefab.ReceiveSubmarineImpacts: true },
_
=> false
};