Bonfire Logs (#13268)

* Bonfire Logs

* Farie Suggestion

* Adds craft logging

* Log changes
This commit is contained in:
AffectedArc07
2020-04-11 15:47:45 -06:00
committed by GitHub
parent 42da9918d7
commit ded391b325
3 changed files with 25 additions and 10 deletions
@@ -110,6 +110,7 @@
anchored = TRUE
buckle_lying = FALSE
var/burning = 0
var/lighter // Who lit the fucking thing
var/fire_stack_strength = 5
/obj/structure/bonfire/dense
@@ -125,6 +126,8 @@
var/image/U = image(icon='icons/obj/hydroponics/equipment.dmi',icon_state="bonfire_rod",pixel_y=16)
underlays += U
if(is_hot(W))
lighter = user.ckey
user.create_log(MISC_LOG, "lit a bonfire", src)
StartBurning()
@@ -163,6 +166,9 @@
/obj/structure/bonfire/Crossed(atom/movable/AM, oldloc)
if(burning)
Burn()
if(ishuman(AM))
var/mob/living/carbon/human/H = AM
add_attack_logs(src, H, "Burned by a bonfire (Lit by [lighter])", ATKLOG_ALMOSTALL)
/obj/structure/bonfire/proc/Burn()
var/turf/current_location = get_turf(src)