From 60cbc47ef078872201bd9ee53cc142f74798d36b Mon Sep 17 00:00:00 2001 From: OrionTheFox <76465278+OrionTheFox@users.noreply.github.com> Date: Mon, 25 Nov 2024 07:15:30 -0700 Subject: [PATCH] Adds a fuel examine to lighters (#88170) ## About The Pull Request Didn't even know they had this until it stopped lighting. While it has fuel, it says it has x fuel out of its maximum. When empty, it says what to refuel it with (welder fuel) ![image](https://github.com/user-attachments/assets/4096e68f-c2e5-4b50-abd4-f904059a23ee)
(For reference, Welders have something similar) ![image](https://github.com/user-attachments/assets/afbf675c-85ee-49c8-8956-0e77352544d6)
I do not know how to set up math to make this number more useful; it tends to burn .25 units ever few seconds but beyond that it's just numbers and I'm not the best with numbers. At the least you can see if it's full or empty. ## Why It's Good For The Game This mechanic is not shown to players in any way besides the lighter not lighting. ## Changelog :cl: qol: added an examine note to lighters showing their fuel /:cl: --------- Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com> --- code/game/objects/items/lighter.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/game/objects/items/lighter.dm b/code/game/objects/items/lighter.dm index a27db91909c..38794ab9079 100644 --- a/code/game/objects/items/lighter.dm +++ b/code/game/objects/items/lighter.dm @@ -52,6 +52,13 @@ ) update_appearance() +/obj/item/lighter/examine(mob/user) + . = ..() + if(get_fuel() <= 0) + . += span_warning("It is out of lighter fluid! Refill it with welder fuel.") + else + . += span_notice("It contains [get_fuel()] units of fuel out of [maximum_fuel].") + /// Destroy the lighter when it's shot by a bullet /obj/item/lighter/proc/on_intercepted_bullet(mob/living/victim, obj/projectile/bullet) victim.visible_message(span_warning("\The [bullet] shatters on [victim]'s lighter!"))