Cozy Time Enabler (#15883)

This commit is contained in:
Ramke
2023-02-25 22:55:21 +00:00
committed by GitHub
parent 6a8f258716
commit 369db3a137
3 changed files with 45 additions and 1 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ var/global/list/total_active_bonfires = list()
anchored = TRUE
density = FALSE
light_color = LIGHT_COLOR_FIRE
build_amt = 20
var/fuel = 2000
var/max_fuel = 2000
var/on_fire = FALSE
@@ -65,7 +66,7 @@ var/global/list/total_active_bonfires = list()
var/mob/living/carbon/human/H = user
if(use_check_and_message(H))
return
if(fuel >= max(max_fuel * 0.1, 50))
if(fuel >= max(max_fuel * 0.1, 50) && on_fire)
to_chat(H, SPAN_NOTICE("You grab a burning stick from the fire."))
fuel -= 40
var/obj/item/device/flashlight/flare/torch/stick/torch = new(get_turf(user))