From e20a4e58eb509f426976854e32f644ed4da08864 Mon Sep 17 00:00:00 2001 From: Coolrune206 <71326864+Coolrune206@users.noreply.github.com> Date: Thu, 9 Mar 2023 05:57:27 +1100 Subject: [PATCH] Better pizza bomb logging (#20426) * better pizza bomb logging * and on opening too --- code/modules/food_and_drinks/food/foods/pizza.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/food_and_drinks/food/foods/pizza.dm b/code/modules/food_and_drinks/food/foods/pizza.dm index 4664fb43976..044661d7508 100644 --- a/code/modules/food_and_drinks/food/foods/pizza.dm +++ b/code/modules/food_and_drinks/food/foods/pizza.dm @@ -460,6 +460,8 @@ to_chat(user, "You set the timer to [timer / 10] before activating the payload and closing [src].") message_admins("[key_name_admin(usr)] has set a timer on a pizza bomb to [timer/10] seconds at (JMP).") log_game("[key_name(usr)] has set the timer on a pizza bomb to [timer / 10] seconds ([loc.x],[loc.y],[loc.z]).") + investigate_log("[key_name(usr)] has armed a [name] for detonation at ([loc.x],[loc.y],[loc.z])", INVESTIGATE_BOMB) + add_attack_logs(user, src, "has armed for detonation", ATKLOG_FEW) armer = user name = "pizza box" desc = "A box suited for pizzas." @@ -475,6 +477,8 @@ playsound(src, 'sound/voice/pizza_time.ogg', 50, FALSE) ///Sound effect made by BlackDog message_admins("[key_name_admin(usr)] has triggered a pizza bomb armed by [key_name_admin(armer)] at (JMP).") log_game("[key_name(usr)] has triggered a pizza bomb armed by [key_name(armer)] ([loc.x],[loc.y],[loc.z]).") + investigate_log("[key_name(usr)] has opened a [name] for detonation at ([loc.x],[loc.y],[loc.z])", INVESTIGATE_BOMB) + add_attack_logs(user, src, "has opened for detonation", ATKLOG_FEW) opener = user primed = TRUE sleep(timer)