mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-25 09:01:40 +00:00
[MIRROR] [NO GBP] Fix traitor PDA uplinks to be accessible by illiterate people [MDB IGNORE] (#16853)
* [NO GBP] Fix traitor PDA uplinks to be accessible by illiterate people (#70368) * Illiterate people can now use a PDA in hand to open their uplink immediately if they are the owner of the uplink. * [NO GBP] Fix traitor PDA uplinks to be accessible by illiterate people Co-authored-by: Tim <timothymtorres@gmail.com>
This commit is contained in:
@@ -36,6 +36,19 @@
|
||||
icon_state = icon_state_powered = icon_state_unpowered = "[base_icon_state]-[finish_color]"
|
||||
return ..()
|
||||
|
||||
/obj/item/modular_computer/tablet/attack_self(mob/user)
|
||||
// bypass literacy checks to access syndicate uplink
|
||||
var/datum/component/uplink/hidden_uplink = GetComponent(/datum/component/uplink)
|
||||
if(hidden_uplink?.owner && HAS_TRAIT(user, TRAIT_ILLITERATE))
|
||||
if(hidden_uplink.owner != user.key)
|
||||
return ..()
|
||||
|
||||
hidden_uplink.locked = FALSE
|
||||
hidden_uplink.interact(null, user)
|
||||
return COMPONENT_CANCEL_ATTACK_CHAIN
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/item/modular_computer/tablet/interact(mob/user)
|
||||
. = ..()
|
||||
if(HAS_TRAIT(src, TRAIT_PDA_MESSAGE_MENU_RIGGED))
|
||||
|
||||
Reference in New Issue
Block a user