Skip to content

Commit 71bea14

Browse files
Update ReferencePropertyRegistry.cs
1 parent 2c11bdc commit 71bea14

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Code/ValueSystem/PropertySystem/ReferencePropertyRegistry.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,9 @@ public static void Initialize()
156156

157157
Register<Door, NumberValue>("remainingHealth", d => new NumberValue(d is BreakableDoor bDoor ? (decimal)bDoor.Health : -1), "The remaining health of the door");
158158
Register<Door, NumberValue>("maxHealth", d => new NumberValue(d is BreakableDoor bDoor ? (decimal)bDoor.MaxHealth : -1), "The maximum health of the door");
159-
Register<Door, BoolValue>("isGate", d => d is Gate, "Is door a gate?");
160-
Register<Door, BoolValue>("isBreakable", d => d is BreakableDoor, "Is door breakable?");
161-
Register<Door, BoolValue>("isCheckpoint", d => d is CheckpointDoor, "Is door breakable?");
162-
159+
Register<Door, BoolValue>("isGate", d => d is Gate, "Is the door a gate?");
160+
Register<Door, BoolValue>("isBreakable", d => d is BreakableDoor, "Is the door breakable?");
161+
Register<Door, BoolValue>("isCheckpoint", d => d is CheckpointDoor, "Is the door a part of a checkpoint?");
163162

164163
Register<Pickup, NumberValue>("positionX", p => new NumberValue((decimal)p.Position.x), "The X position of the pickup");
165164
Register<Pickup, NumberValue>("positionY", p => new NumberValue((decimal)p.Position.y), "The Y position of the pickup");
@@ -259,7 +258,7 @@ public override TryGet<Value> GetValue(object obj)
259258
}
260259

261260
public override SingleTypeOfValue ReturnType => new(_guessedValueType);
262-
public override bool IsUnsafe => true;
261+
public override bool IsReflected => true;
263262

264263
[field: AllowNull, MaybeNull]
265264
public override string Description => field ?? "";

0 commit comments

Comments
 (0)