From d509991dab990c7d912fdbe74c8632f9e6a78b1e Mon Sep 17 00:00:00 2001 From: mikomyazaki <47489928+mikomyazaki@users.noreply.github.com> Date: Tue, 7 Jul 2020 11:04:40 +0100 Subject: [PATCH] Petting a pAI toggles the pAIs flashlight program properly. (#9311) --- code/modules/mob/living/silicon/pai/pai.dm | 2 +- html/changelogs/pet_the_pais.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/pet_the_pais.yml diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm index 132503c27c4..eb2745d7b6a 100644 --- a/code/modules/mob/living/silicon/pai/pai.dm +++ b/code/modules/mob/living/silicon/pai/pai.dm @@ -120,7 +120,7 @@ switch(M.a_intent) if(I_HELP) M.visible_message(span("notice","[M] [response_help] \the [src]")) - toggle_flashlight() + computer.toggle_service("flashlight", src) if(I_DISARM) M.visible_message(span("notice","[M] [response_disarm] \the [src]")) diff --git a/html/changelogs/pet_the_pais.yml b/html/changelogs/pet_the_pais.yml new file mode 100644 index 00000000000..81441d18872 --- /dev/null +++ b/html/changelogs/pet_the_pais.yml @@ -0,0 +1,7 @@ +author: mikomyazaki + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +changes: + - bugfix: "Petting a pAI and toggling its flashlight now properly updates the pAIs flashlight program state." \ No newline at end of file