Impaired Driving (#15728)

This commit is contained in:
Geeves
2023-02-07 12:44:44 +01:00
committed by GitHub
parent fdb8d1f1c5
commit 440d6ee144
2 changed files with 8 additions and 0 deletions
@@ -257,6 +257,8 @@
if(!issilicon(usr)) // AI and robots aren't allowed to pilot
if (href_list["move"])
var/ndir = text2num(href_list["move"])
if(prob(usr.confused * 5))
ndir = turn(ndir, pick(45, -45))
connected.relaymove(usr, ndir, accellimit)
addtimer(CALLBACK(src, PROC_REF(updateUsrDialog)), connected.burn_delay + 1) // remove when turning into vueui