Skip to content

Commit b38a5ca

Browse files
rename Grenade to CreateGrenade
1 parent 190ad56 commit b38a5ca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Code/MethodSystem/Methods/PickupMethods/GrenadeMethod.cs renamed to Code/MethodSystem/Methods/PickupMethods/CreateGrenadeMethod.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace SER.Code.MethodSystem.Methods.PickupMethods;
1313

1414
[UsedImplicitly]
15-
public class GrenadeMethod : ReferenceReturningMethod<Projectile>, IAdditionalDescription
15+
public class CreateGrenadeMethod : ReferenceReturningMethod<Projectile>, IAdditionalDescription
1616
{
1717
public override string Description => "Creates a new grenade projectile to later spawn.";
1818

@@ -22,7 +22,8 @@ public class GrenadeMethod : ReferenceReturningMethod<Projectile>, IAdditionalDe
2222
[
2323
new OptionsArgument("grenade type",
2424
"GrenadeHE",
25-
"GrenadeFlash"),
25+
"GrenadeFlash"
26+
),
2627
];
2728

2829
public override void Execute()
@@ -31,7 +32,8 @@ public override void Execute()
3132
!InventoryItemLoader.TryGetItem<ThrowableItem>(itemType, out var throwable))
3233
throw new TosoksFuckedUpException("Either Northwood fucked up or you're a wizard. Congratulations!");
3334

34-
var item = Object.Instantiate(throwable.Projectile) ?? throw new TosoksFuckedUpException("Somehow the prefab failed to copy??? I don't even know who to blame tbh");
35+
var item = Object.Instantiate(throwable.Projectile)
36+
?? throw new TosoksFuckedUpException("Somehow the prefab failed to copy??? I don't even know who to blame tbh");
3537
item.Info = new(itemType, throwable.Weight);
3638
item.PreviousOwner = new(Server.Host?.ReferenceHub);
3739

0 commit comments

Comments
 (0)