Removes/Refactors /mob/unEquip (#22918)

* Part1

* IT COMPILES!!!!

* Fuck wait this was missing from that last

* Update handlabeler.dm

* Update handlabeler.dm

* Fixes n shit

* Fix this

* Fixes #23310

* Fucking @RemieRichards was right

* Fixes devil unEquip

* WTF ARE BITFLAGS?

* THERES THE FUCKING PROBLEM

* Fixes
This commit is contained in:
Cyberboss
2017-01-31 09:28:31 +13:00
committed by oranges
parent b7384ec99e
commit 3f7f5d4000
189 changed files with 643 additions and 810 deletions
+2 -2
View File
@@ -46,9 +46,9 @@
return
affected_mob.notransform = 1
for(var/obj/item/W in affected_mob.get_equipped_items())
affected_mob.unEquip(W)
affected_mob.dropItemToGround(W)
for(var/obj/item/I in affected_mob.held_items)
affected_mob.unEquip(I)
affected_mob.dropItemToGround(I)
var/mob/living/new_mob = new new_form(affected_mob.loc)
if(istype(new_mob))
new_mob.a_intent = INTENT_HARM
+3 -3
View File
@@ -59,19 +59,19 @@ STI KALY - blind
var/mob/living/carbon/human/H = affected_mob
if(prob(chance))
if(!istype(H.head, /obj/item/clothing/head/wizard))
if(!H.unEquip(H.head))
if(!H.dropItemToGround(H.head))
qdel(H.head)
H.equip_to_slot_or_del(new /obj/item/clothing/head/wizard(H), slot_head)
return
if(prob(chance))
if(!istype(H.wear_suit, /obj/item/clothing/suit/wizrobe))
if(!H.unEquip(H.wear_suit))
if(!H.dropItemToGround(H.wear_suit))
qdel(H.wear_suit)
H.equip_to_slot_or_del(new /obj/item/clothing/suit/wizrobe(H), slot_wear_suit)
return
if(prob(chance))
if(!istype(H.shoes, /obj/item/clothing/shoes/sandal/magic))
if(!H.unEquip(H.shoes))
if(!H.dropItemToGround(H.shoes))
qdel(H.shoes)
H.equip_to_slot_or_del(new /obj/item/clothing/shoes/sandal/magic(H), slot_shoes)
return
+1 -1
View File
@@ -1237,7 +1237,7 @@
switch(href_list["common"])
if("undress")
for(var/obj/item/W in current)
current.unEquip(W, 1) //The 1 forces all items to drop, since this is an admin undress.
current.dropItemToGround(W, TRUE) //The 1 forces all items to drop, since this is an admin undress.
if("takeuplink")
take_uplink()
memory = null//Remove any memory they may have had.