fixes computers spamming fingers are too big warning. also fixes exploit when using programs w/ fingers that are too big. (#72698)

Fixes #72153

🆑 ShizCalev
fix: You'll no longer constantly be spammed with messages if your
fingers are too big to interact with a computer's keyboard.
fix: You can no longer interact with programs that were previously
opened on a computer if your fingers are too big to use the keyboard.
fix: You can now look at computer screens even if your fingers are too
big to use the keyboard.
/🆑
This commit is contained in:
ShizCalev
2023-01-15 02:52:01 -05:00
committed by GitHub
parent 7e8c38039f
commit 07e5c402e0
2 changed files with 12 additions and 6 deletions
@@ -218,6 +218,12 @@
if(.)
return
if(ishuman(usr) && !computer.allow_chunky) //in /obj/item/modular_computer/ui_act() too
var/mob/living/carbon/human/human_user = usr
if(human_user.check_chunky_fingers())
computer.balloon_alert(human_user, "fingers are too big!")
return TRUE
if(computer)
switch(action)
if("PC_exit")