better logging, that also works

This commit is contained in:
Putnam
2020-01-16 19:09:13 -08:00
parent a4cc73f219
commit 5ace1df9af
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -122,7 +122,7 @@
/proc/log_craft(text)
if (CONFIG_GET(flag/log_craft))
WRITE_LOG(GLOB.world_game_log, "CRAFT: [text]")
WRITE_LOG(GLOB.world_crafting_log, "CRAFT: [text]")
/proc/log_topic(text)
WRITE_LOG(GLOB.world_game_log, "TOPIC: [text]")
+1 -1
View File
@@ -202,6 +202,7 @@
if(O)
O.setDir(usr.dir)
use(R.req_amount * multiplier)
log_craft("[O] crafted by [usr] at [loc_name(O.loc)]")
//START: oh fuck i'm so sorry
if(istype(O, /obj/structure/windoor_assembly))
@@ -229,7 +230,6 @@
for (var/obj/item/I in O)
qdel(I)
//BubbleWrap END
log_craft("[O] crafted by [usr] at [get_turf(O)]")
/obj/item/stack/proc/building_checks(datum/stack_recipe/R, multiplier)
if (get_amount() < R.req_amount*multiplier)
+1
View File
@@ -158,6 +158,7 @@
I.CheckParts(parts, R)
if(send_feedback)
SSblackbox.record_feedback("tally", "object_crafted", 1, I.type)
log_craft("[I] crafted by [user] at [loc_name(I.loc)]")
return 0
return "."
return ", missing tool."