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)

<details><summary>(For reference, Welders have something similar)
</summary>


![image](https://github.com/user-attachments/assets/afbf675c-85ee-49c8-8956-0e77352544d6)
</details>

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
🆑
qol: added an examine note to lighters showing their fuel
/🆑

---------

Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
This commit is contained in:
OrionTheFox
2024-11-25 15:15:30 +01:00
committed by GitHub
co-authored by Fikou
parent b965535732
commit 60cbc47ef0
+7
View File
@@ -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!"))