Skip to content

Commit

Permalink
blackbox: improve lathe production feedback (#26992)
Browse files Browse the repository at this point in the history
  • Loading branch information
warriorstar-orion authored Oct 22, 2024
1 parent 8554e39 commit d1d9b54
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/game/machinery/autolathe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@
new_item.materials[MAT_GLASS] /= coeff
new_item.pixel_y = rand(-5, 5)
new_item.pixel_x = rand(-5, 5)
if(is_station_level(z))
SSblackbox.record_feedback("tally", "station_autolathe_production", 1, "[D.type]")
SStgui.update_uis(src)
desc = initial(desc)

Expand Down
2 changes: 2 additions & 0 deletions code/game/mecha/mech_fabricator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@
/obj/machinery/mecha_part_fabricator/proc/build_design_timer_finish(datum/design/D, list/final_cost)
// Spawn the item (in a lockbox if restricted) OR mob (e.g. IRC body)
var/atom/A = new D.build_path(get_step(src, output_dir))
if(is_station_level(z))
SSblackbox.record_feedback("tally", "station_mechfab_production", 1, "[D.type]")
if(isitem(A))
var/obj/item/I = A
I.materials = final_cost
Expand Down
3 changes: 2 additions & 1 deletion code/modules/research/rdconsole.dm
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ won't update every console in existence) but it's more of a hassle to do. Also,
/obj/machinery/computer/rdconsole/proc/finish_machine(key, amount, enough_materials, obj/machinery/r_n_d/machine, datum/design/being_built, list/efficient_mats)
if(machine)
if(enough_materials && being_built)
SSblackbox.record_feedback("nested tally", "RND Production List", amount, list("[being_built.category]", "[being_built.name]"))
if(is_station_level(z))
SSblackbox.record_feedback("tally", "station_protolathe_production", amount, "[being_built.type]")
for(var/i in 1 to amount)
var/obj/item/new_item = new being_built.build_path(src)
if(istype(new_item)) // Only want a random pixel offset if it IS actually an item, and not a structure like a bluespace closet
Expand Down

0 comments on commit d1d9b54

Please sign in to comment.