From 440d6ee1445581fc5d9c65346f9b242299074d72 Mon Sep 17 00:00:00 2001 From: Geeves Date: Tue, 7 Feb 2023 13:44:44 +0200 Subject: [PATCH] Impaired Driving (#15728) --- code/modules/overmap/ships/computers/helm.dm | 2 ++ html/changelogs/geeves-impaired_driving.yml | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 html/changelogs/geeves-impaired_driving.yml diff --git a/code/modules/overmap/ships/computers/helm.dm b/code/modules/overmap/ships/computers/helm.dm index 13ef8e592d7..9499303528b 100644 --- a/code/modules/overmap/ships/computers/helm.dm +++ b/code/modules/overmap/ships/computers/helm.dm @@ -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 diff --git a/html/changelogs/geeves-impaired_driving.yml b/html/changelogs/geeves-impaired_driving.yml new file mode 100644 index 00000000000..54cbcb01274 --- /dev/null +++ b/html/changelogs/geeves-impaired_driving.yml @@ -0,0 +1,6 @@ +author: Geeves + +delete-after: True + +changes: + - rscadd: "Piloting a ship or shuttle while confused, such as when drunk or under the effects of some chemicals, now has a chance to offset the angle you meant to go in."