Unequip refactor fix pack (#24040)

* Fixes drag drop deletion

* Fix it for clothing as well

* Do it properly

* Various other incap checks I noticed from the unequip refactor

* Time to generalize this shitty shit

* PADDLING!!!

* A whole bunch of ree
This commit is contained in:
Cyberboss
2017-02-14 08:52:56 +01:00
committed by AnturK
parent bbd48f6b1b
commit d27899ce64
14 changed files with 45 additions and 70 deletions
@@ -24,6 +24,7 @@
user << "<span class='notice'>You install \the [H] into \the [src].</span>"
H.holder = src
H.forceMove(src)
H.on_install(src, user)
@@ -68,14 +68,18 @@
var/ejected = 0
if(stored_card && (!slot || slot == 1))
stored_card.forceMove(get_turf(src))
stored_card.verb_pickup()
if(user)
user.put_in_hands(stored_card)
else
stored_card.forceMove(get_turf(src))
stored_card = null
ejected++
if(stored_card2 && (!slot || slot == 2))
stored_card2.forceMove(get_turf(src))
stored_card2.verb_pickup()
if(user)
user.put_in_hands(stored_card2)
else
stored_card2.forceMove(get_turf(src))
stored_card2 = null
ejected++