Release 1.11.4.1 (Winter Update)
This commit is contained in:
+4
-1
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user