Skip to content

Commit 5d3f296

Browse files
Update PlayerExpressionToken.cs
1 parent 96a1614 commit 5d3f296

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

TokenSystem/Tokens/ExpressionTokens/PlayerExpressionToken.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ public class Info<T>(Func<Player, T> handler, string? description) : Info
126126
{
127127
return (decimal)man.CurrentAux;
128128
}
129-
else return -1;
130129
}
131-
else return -1;
130+
131+
return -1;
132132
}, "Returns player Aux power if he is SCP-079, otherwise returns -1"),
133133
[PlayerProperty.Experience] = new Info<NumberValue>(plr =>
134134
{
@@ -138,9 +138,9 @@ public class Info<T>(Func<Player, T> handler, string? description) : Info
138138
{
139139
return tier.TotalExp;
140140
}
141-
else return -1;
142141
}
143-
else return -1;
142+
143+
return -1;
144144
}, "Returns player EXP if he is SCP-079, otherwise returns -1"),
145145
[PlayerProperty.Emotion] = new Info<TextValue>(plr => plr.Emotion.ToString(), "Current emotion (e.g. Neutral, Chad)"),
146146
[PlayerProperty.MaxAuxiliaryPower] = new Info<NumberValue>(plr =>
@@ -151,9 +151,9 @@ public class Info<T>(Func<Player, T> handler, string? description) : Info
151151
{
152152
return (decimal)man.MaxAux;
153153
}
154-
else return -1;
155154
}
156-
else return -1;
155+
156+
return -1;
157157
}, "Returns the player's Maximum Auxiliary Power if they are SCP-079, otherwise returns -1"),
158158
[PlayerProperty.SizeX] = new Info<NumberValue>(plr => (decimal)plr.Scale.x, null),
159159
[PlayerProperty.SizeY] = new Info<NumberValue>(plr => (decimal)plr.Scale.y, null),
@@ -166,9 +166,9 @@ public class Info<T>(Func<Player, T> handler, string? description) : Info
166166
{
167167
return tier.AccessTierLevel;
168168
}
169-
else return -1;
170169
}
171-
else return -1;
170+
171+
return -1;
172172
}, "Returns the player's Access Tier Level if they are SCP-079, otherwise returns -1"),
173173
[PlayerProperty.RelativeX] = new Info<NumberValue>(plr => (decimal)plr.RelativeRoomPosition().x, "Returns the player's x relative to the current room or 0 if in no room"),
174174
[PlayerProperty.RelativeY] = new Info<NumberValue>(plr => (decimal)plr.RelativeRoomPosition().y, "Returns the player's y relative to the current room or 0 if in no room"),

0 commit comments

Comments
 (0)