Skip to content

Commit 9c4ca1a

Browse files
remove unneeded type qualifiers
1 parent ce2acbc commit 9c4ca1a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

MethodSystem/Methods/Scp079Methods/Set079AccessTierMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public override void Execute()
2525
if(p.RoleBase is Scp079Role scp)
2626
{
2727
var levelIndex = value - 1;
28-
if (scp.SubroutineModule.TryGetSubroutine<Scp079TierManager>(out Scp079TierManager tier))
28+
if (scp.SubroutineModule.TryGetSubroutine(out Scp079TierManager tier))
2929
{
3030
tier.TotalExp = levelIndex != 0 ? tier.AbsoluteThresholds[levelIndex - 1] : 0;
3131
}

MethodSystem/Methods/Scp079Methods/Set079AuxPowerMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public override void Execute()
2424
{
2525
if (p.RoleBase is Scp079Role scp)
2626
{
27-
if (scp.SubroutineModule.TryGetSubroutine<Scp079AuxManager>(out Scp079AuxManager aux))
27+
if (scp.SubroutineModule.TryGetSubroutine(out Scp079AuxManager aux))
2828
{
2929
aux.CurrentAux = value;
3030
}

MethodSystem/Methods/Scp079Methods/Set079ExpMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public override void Execute()
2424
{
2525
if (p.RoleBase is Scp079Role scp)
2626
{
27-
if (scp.SubroutineModule.TryGetSubroutine<Scp079TierManager>(out Scp079TierManager tier))
27+
if (scp.SubroutineModule.TryGetSubroutine(out Scp079TierManager tier))
2828
{
2929
tier.TotalExp = value;
3030
}

TokenSystem/Tokens/ExpressionTokens/PlayerExpressionToken.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class Info<T>(Func<Player, T> handler, string? description) : Info
119119
{
120120
if (plr.RoleBase is Scp079Role scp)
121121
{
122-
if (scp.SubroutineModule.TryGetSubroutine<Scp079AuxManager>(out Scp079AuxManager man))
122+
if (scp.SubroutineModule.TryGetSubroutine(out Scp079AuxManager man))
123123
{
124124
return (decimal)man.CurrentAux;
125125
}
@@ -131,7 +131,7 @@ public class Info<T>(Func<Player, T> handler, string? description) : Info
131131
{
132132
if (plr.RoleBase is Scp079Role scp)
133133
{
134-
if (scp.SubroutineModule.TryGetSubroutine<Scp079TierManager>(out Scp079TierManager tier))
134+
if (scp.SubroutineModule.TryGetSubroutine(out Scp079TierManager tier))
135135
{
136136
return tier.TotalExp;
137137
}
@@ -144,7 +144,7 @@ public class Info<T>(Func<Player, T> handler, string? description) : Info
144144
{
145145
if (plr.RoleBase is Scp079Role scp)
146146
{
147-
if (scp.SubroutineModule.TryGetSubroutine<Scp079AuxManager>(out Scp079AuxManager man))
147+
if (scp.SubroutineModule.TryGetSubroutine(out Scp079AuxManager man))
148148
{
149149
return (decimal)man.MaxAux;
150150
}
@@ -159,7 +159,7 @@ public class Info<T>(Func<Player, T> handler, string? description) : Info
159159
{
160160
if (plr.RoleBase is Scp079Role scp)
161161
{
162-
if (scp.SubroutineModule.TryGetSubroutine<Scp079TierManager>(out Scp079TierManager tier))
162+
if (scp.SubroutineModule.TryGetSubroutine(out Scp079TierManager tier))
163163
{
164164
return tier.AccessTierLevel;
165165
}

0 commit comments

Comments
 (0)