mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
Fix death by organ failure (#2185)
Fix #2004, implementing skull's solution to the issue related to the megavend.
This commit is contained in:
@@ -211,16 +211,11 @@
|
||||
var/obj/item/weapon/storage/box/gearbox = new(src)
|
||||
gearbox.name = "\improper Personal possessions box"
|
||||
gearbox.desc = "All of the personal effects of [H.real_name], packaged neatly by the Auto-Locker."
|
||||
var/list/items = H.contents
|
||||
for(var/obj/item/W in items)
|
||||
for(var/obj/item/W in H.contents)
|
||||
if(istype(W,/obj/item/organ))
|
||||
items -= W
|
||||
continue
|
||||
H.drop_from_inventory(W,gearbox)
|
||||
items -= W
|
||||
gearbox.contents += W
|
||||
if(items.len == 0)
|
||||
break
|
||||
W.forceMove(gearbox)
|
||||
|
||||
sleep(20)
|
||||
job_master.EquipRank(H, H.job, 1, 1)
|
||||
|
||||
Reference in New Issue
Block a user