mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-30 19:11:52 +00:00
* Fixes empty casings being incorrectly replaced by a casing in guns with internal magazines (#76323) ## About The Pull Request <details><summary>What?</summary> ### e.g. double-barrel shotgun spent shell inserted -> no chambered shell, all is fine -> spent shell goes into the shotgun's mag -> spent shell gets added to the mag -> gun chambers a round from the mag - it's the newly added spent shell 2nd spent shell inserted -> chambered shell present, dump it out (but forget to remove it from the mag) -> 2nd spent shell goes into the shotgun's mag -> gun chambers a round from the mag - it's the last shell to be added to the mag - it's the 2nd shell dump the gun's mag -> mag still has the 1st shell -> dumps the 2nd shell and the 1st one gets moved to the dump tile relevant code:b832e2f477/code/modules/projectiles/guns/ballistic.dm (L369-L380)b832e2f477/code/modules/projectiles/boxes_magazines/_box_magazine.dm (L128-L156)b832e2f477/code/modules/projectiles/boxes_magazines/_box_magazine.dm (L101-L110)</details> so we just remove the dumped shell from the mag as well? it works but i think i'm maybe missing something? ## Why It's Good For The Game Fixes #54771 ## Changelog 🆑 fix: fixed shotguns not clearing their "mag" correctly /🆑 * Fixes empty casings being incorrectly replaced by a casing in guns with internal magazines * Updates our modular file to reproduce the fix --------- Co-authored-by: Sealed101 <cool.bullseye@yandex.ru> Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>