mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
[MIRROR] Fixes grilles dropping a stack of 0 iron rods [MDB IGNORE] (#17778)
* Fixes grilles dropping a stack of 0 iron rods (#71501) ## About The Pull Request Fixes a bug where grilles drop a stack of 0 iron rods on partial destruction. They now drop one iron rod. Also removes a variable called rods_broken which is useless. ## Why It's Good For The Game The stack of 0 rods acts the same as a normal iron rod except its icon is invisible, meaning it can be snuck past security, this is bad and could be used for cheese. It also meant grilles dropped less iron rods than it takes to build a grille, which makes no sense. Fixes #71203 ## Changelog 🆑 fix: fixes grilles dropping stack of 0 iron rods /🆑 Co-authored-by: tattle <66640614+dragomagol@ users.noreply.github.com> Co-authored-by: Fikou <23585223+Fikou@ users.noreply.github.com> * Fixes grilles dropping a stack of 0 iron rods Co-authored-by: supergrog2 <118997813+supergrog2@users.noreply.github.com> Co-authored-by: tattle <66640614+dragomagol@ users.noreply.github.com> Co-authored-by: Fikou <23585223+Fikou@ users.noreply.github.com>
This commit is contained in:
co-authored by
tattle
Fikou
supergrog2
parent
04102bcdd7
commit
0111d3ca1e
@@ -17,7 +17,6 @@
|
||||
integrity_failure = 0.4
|
||||
var/rods_type = /obj/item/stack/rods
|
||||
var/rods_amount = 2
|
||||
var/rods_broken = TRUE
|
||||
|
||||
/obj/structure/grille/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -284,9 +283,8 @@
|
||||
atom_integrity = 20
|
||||
broken = TRUE
|
||||
rods_amount = 1
|
||||
rods_broken = FALSE
|
||||
var/obj/R = new rods_type(drop_location(), rods_broken)
|
||||
transfer_fingerprints_to(R)
|
||||
var/obj/item/dropped_rods = new rods_type(drop_location(), rods_amount)
|
||||
transfer_fingerprints_to(dropped_rods)
|
||||
|
||||
/obj/structure/grille/proc/repair_grille()
|
||||
if(broken)
|
||||
@@ -295,7 +293,6 @@
|
||||
atom_integrity = max_integrity
|
||||
broken = FALSE
|
||||
rods_amount = 2
|
||||
rods_broken = TRUE
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
@@ -348,7 +345,6 @@
|
||||
density = FALSE
|
||||
broken = TRUE
|
||||
rods_amount = 1
|
||||
rods_broken = FALSE
|
||||
|
||||
/obj/structure/grille/broken/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user