[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:
SkyratBot
2022-10-14 20:32:01 +02:00
committed by GitHub
parent 55c3e9f004
commit 85217504dd

View File

@@ -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))