From 9240ec90b0d038edab17679eda8715751cd9ee95 Mon Sep 17 00:00:00 2001 From: Theos Date: Tue, 29 Oct 2024 22:05:58 -0400 Subject: [PATCH] Energy weapons spawned with empty cells now use the cell behavior for it (#3638) ## About The Pull Request yeah ## Why It's Good For The Game saves 2 lines ## Changelog :cl: code: empty energy weapons now get emptied slightly differently, no player-facing changes /:cl: Signed-off-by: Theos --- code/modules/projectiles/guns/energy.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm index 4eba20701ac7..f4193723e8fd 100644 --- a/code/modules/projectiles/guns/energy.dm +++ b/code/modules/projectiles/guns/energy.dm @@ -67,9 +67,7 @@ default_ammo_type = FALSE if(default_ammo_type) - cell = new default_ammo_type(src) - if(spawn_no_ammo) - cell.use(cell.maxcharge) + cell = new default_ammo_type(src, spawn_no_ammo) update_ammo_types() recharge_newshot(TRUE) if(selfcharge)