mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 08:36:00 +01:00
Correctly remove components from modular_computers on damage or deletion
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
if(component_probability)
|
||||
for(var/I in all_components)
|
||||
var/obj/item/weapon/computer_hardware/H = I
|
||||
var/obj/item/weapon/computer_hardware/H = all_components[I]
|
||||
if(prob(component_probability))
|
||||
H.take_damage(round(amount / 2))
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
var/turf/newloc = get_turf(src)
|
||||
new /obj/item/stack/sheet/metal(newloc, round(steel_sheet_cost/2))
|
||||
for(var/C in all_components)
|
||||
var/obj/item/weapon/computer_hardware/H = C
|
||||
var/obj/item/weapon/computer_hardware/H = all_components[C]
|
||||
uninstall_component(H)
|
||||
H.forceMove(newloc)
|
||||
if(prob(25))
|
||||
|
||||
Reference in New Issue
Block a user