[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.
This commit is contained in:
Tim
2022-10-14 05:56:34 -05:00
committed by GitHub
parent 36723727f1
commit 0c1ea43ba2
@@ -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))