mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
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:
@@ -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++
|
||||
|
||||
|
||||
Reference in New Issue
Block a user