mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Shuffles de-equipping logic.
This commit is contained in:
@@ -232,7 +232,7 @@ var/list/slot_equipment_priority = list( \
|
|||||||
|
|
||||||
//This differs from remove_from_mob() in that it checks if the item can be unequipped first.
|
//This differs from remove_from_mob() in that it checks if the item can be unequipped first.
|
||||||
/mob/proc/unEquip(obj/item/I, force = 0) //Force overrides NODROP for things like wizarditis and admin undress.
|
/mob/proc/unEquip(obj/item/I, force = 0) //Force overrides NODROP for things like wizarditis and admin undress.
|
||||||
if(!force && canUnEquip(I))
|
if(!(force || canUnEquip(I)))
|
||||||
return
|
return
|
||||||
drop_from_inventory(I)
|
drop_from_inventory(I)
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user