mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
IPCs keep their ID and pocket items when removing their jumpsuit (#31059)
* ipcs don't drop their pocket items when jumpsuit is removed * ipcs don't drop their pocket items when jumpsuit is removed * linter
This commit is contained in:
@@ -87,12 +87,14 @@
|
||||
else if(target == w_uniform)
|
||||
//Again, makes sense for pockets to drop.
|
||||
if(drop_inventory)
|
||||
if(r_store)
|
||||
drop_item_to_ground(r_store, force = TRUE)
|
||||
if(l_store)
|
||||
drop_item_to_ground(l_store, force = TRUE)
|
||||
if(wear_id)
|
||||
drop_item_to_ground(wear_id, force = TRUE)
|
||||
// IPCs have pockets on their bodies, let's assume they stored their stuff there.
|
||||
if(!ismachineperson(src))
|
||||
if(r_store)
|
||||
drop_item_to_ground(r_store, force = TRUE)
|
||||
if(l_store)
|
||||
drop_item_to_ground(l_store, force = TRUE)
|
||||
if(wear_id)
|
||||
drop_item_to_ground(wear_id, force = TRUE)
|
||||
if(belt && !(belt.flags_2 & ALLOW_BELT_NO_JUMPSUIT_2))
|
||||
drop_item_to_ground(belt, force = TRUE)
|
||||
w_uniform = null
|
||||
|
||||
Reference in New Issue
Block a user