Splits taking out the ID card and stored item out of modular computers into Alt clicking and Ctrl clicking respectively (#21901)

Changes:
> - rscadd: "Alt clicking a modular computer to first get the stored
card and then the item has been split to Alt clicking to get the card,
and Ctrl clicking to get the item."

It always bothered me that to get the pen out of a PDA you needed to
first take out the ID card. Well with this PR you can just Ctrl click it
to get the pen. Really cool.
This commit is contained in:
ElorgRHG
2026-02-26 19:37:21 +01:00
committed by GitHub
parent 93168a9955
commit 847cbd1aa5
2 changed files with 32 additions and 8 deletions
@@ -139,20 +139,31 @@
verbs -= /obj/item/modular_computer/proc/eject_personal_ai
update_uis()
/obj/item/modular_computer/AltClick(var/mob/user)
if(use_check_and_message(user, 32))
/obj/item/modular_computer/AltClick(mob/user)
if(use_check_and_message(user, USE_FORCE_SRC_IN_USER))
return
if(!card_slot)
to_chat(user, SPAN_WARNING("\The [src] does not have an ID card slot."))
return
if(card_slot.stored_card)
eject_id()
else if(card_slot.stored_item)
eject_item()
else
to_chat(user, SPAN_WARNING("\The [src] does not have a card or item stored in the card slot."))
if(!card_slot.stored_card)
to_chat(user, SPAN_WARNING("\The [src] does not have a card stored in the card slot."))
return
eject_id()
/obj/item/modular_computer/CtrlClick(mob/user)
if(use_check_and_message(user, USE_FORCE_SRC_IN_USER))
return
if(!card_slot)
to_chat(user, SPAN_WARNING("\The [src] does not have an ID card slot."))
return
if(!card_slot.stored_item)
to_chat(user, SPAN_WARNING("\The [src] does not have an item stored in the card slot."))
return
eject_item()
/obj/item/modular_computer/attack(mob/living/target_mob, mob/living/user, target_zone)
var/sound_scan = FALSE