Skip to content

Commit

Permalink
Energy weapons spawned with empty cells now use the cell behavior for…
Browse files Browse the repository at this point in the history
… it (#3638)

<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## 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:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

Signed-off-by: Theos <[email protected]>
  • Loading branch information
SomeguyManperson authored Oct 30, 2024
1 parent eb38cd6 commit 9240ec9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/modules/projectiles/guns/energy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9240ec9

Please sign in to comment.