mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
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)  <details><summary>(For reference, Welders have something similar) </summary>  </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:
@@ -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!"))
|
||||
|
||||
Reference in New Issue
Block a user