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
@@ -16,12 +16,6 @@
if(!user.can_read(src, READING_CHECK_LITERACY))
return
if(ishuman(user) && !allow_chunky)
var/mob/living/carbon/human/human_user = user
if(human_user.check_chunky_fingers())
balloon_alert(human_user, "fingers are too big!")
return
// Robots don't really need to see the screen, their wireless connection works as long as computer is on.
if(!screen_on && !issilicon(user))
if(ui)
@@ -103,6 +97,12 @@
if(.)
return
if(ishuman(usr) && !allow_chunky) //in /datum/computer_file/program/ui_act() too
var/mob/living/carbon/human/human_user = usr
if(human_user.check_chunky_fingers())
balloon_alert(human_user, "fingers are too big!")
return TRUE
switch(action)
if("PC_exit")
kill_program()