mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
[MIRROR] modsuit update: you can now pin modules to your action buttons [MDB IGNORE] (#10398)
* modsuit update: you can now pin modules to your action buttons (#63745) * modsuit update: you can now pin modules to your action buttons Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
This commit is contained in:
@@ -244,17 +244,16 @@
|
||||
return TRUE
|
||||
|
||||
/obj/item/mod/control/allow_attack_hand_drop(mob/user)
|
||||
var/mob/living/carbon/carbon_user = user
|
||||
if(!istype(carbon_user) || src != carbon_user.back)
|
||||
if(user != wearer)
|
||||
return ..()
|
||||
for(var/obj/item/part in mod_parts)
|
||||
if(part.loc != src)
|
||||
balloon_alert(carbon_user, "retract parts first!")
|
||||
balloon_alert(user, "retract parts first!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, FALSE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
|
||||
/obj/item/mod/control/MouseDrop(atom/over_object)
|
||||
if(src != wearer?.back || !istype(over_object, /atom/movable/screen/inventory/hand))
|
||||
if(usr != wearer || !istype(over_object, /atom/movable/screen/inventory/hand))
|
||||
return ..()
|
||||
for(var/obj/item/part in mod_parts)
|
||||
if(part.loc != src)
|
||||
|
||||
Reference in New Issue
Block a user