Enhance bitrunner domain creation blackbox logging (#94913)

## About The Pull Request

Improves some blackbox logging for bitrunner domain creation, by also
logging how much information they had when they chose it.

Also some minor code improvements, by making methods for whether the
name/reward of a domain is visible.

## Why It's Good For The Game

Right now, if we just look at blackbox logs, we cannot easily tell if a
domain is being deliberately avoided when possible, as we cannot tell if
it's run unintentionally or intentionally. Now we will record that
information, so we can act on it, and hopefully perform actions to
improve the domains that people attempt to avoid.
This commit is contained in:
Mike Long
2026-01-28 11:40:33 -06:00
committed by GitHub
parent 855ddd8348
commit c7c61ec373
5 changed files with 27 additions and 7 deletions
+15 -3
View File
@@ -28,7 +28,7 @@
/// Links all the loading processes together - does validation for booting a map
/obj/machinery/quantum_server/proc/cold_boot_map(map_key)
/obj/machinery/quantum_server/proc/cold_boot_map(map_key, was_random_selection)
if(!is_ready)
return FALSE
@@ -53,8 +53,20 @@
scrub_vdom()
is_ready = TRUE
return FALSE
SSblackbox.record_feedback("tally", "bitrunning_domain_loaded", 1, map_key)
//We will want to record how the domain was selected. Either entirely randomly, with the name redacted, or with full information.
//Without this, it is difficult to determine what domains are selected more often intentionallly, vs unintentionally.
var/selection_type
if(was_random_selection)
selection_type = "random selection"
else
if(generated_domain.can_view_name(scanner_tier, points))
selection_type = "full information"
else
selection_type = "redacted information"
SSblackbox.record_feedback("nested tally", "bitrunning_domain_loaded", 1, list(selection_type, map_key))
is_ready = TRUE