[MIRROR] JSON Logging Refactor (#11623)

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-14 20:05:26 +02:00
committed by GitHub
co-authored by Selis Kashargul
parent 272afa33c8
commit 5a62077f2c
425 changed files with 4081 additions and 2568 deletions
@@ -20,13 +20,13 @@
vents += temp_vent
if(prob(50)) //50/50 chance on spiders or metroids.
log_debug("Hord event, spiders selected.")
log_game("Hord event, spiders selected.")
spawncount = rand(4 * severity, 10 * severity)
sent_spiders_to_station = 0
spiders = TRUE
else
log_debug("Horde event, metroids selected.")
log_game("Horde event, metroids selected.")
spawncount = rand(2 * severity, 4 * severity)
metroids = TRUE
@@ -33,7 +33,7 @@
for(var/i in 1 to 10)
var/area/A = pick(affected_area)
if(is_area_occupied(A))
log_debug("infectedroom event: Rejected [A] because it is occupied.")
log_game("infectedroom event: Rejected [A] because it is occupied.")
continue
var/list/turfs = list()
@@ -41,17 +41,17 @@
if(!F.check_density())
turfs += F
if(turfs.len == 0)
log_debug("infectedroom event: Rejected [A] because it has no clear turfs.")
log_game("infectedroom event: Rejected [A] because it has no clear turfs.")
continue
target_area = A
target_turfs = turfs
if(!target_area)
log_debug("infectedroom event: Giving up after too many failures to pick target area")
log_game("infectedroom event: Giving up after too many failures to pick target area")
kill()
return
else
log_debug("infectedroom event: [target_area] was chosen. Infecting...")
log_game("infectedroom event: [target_area] was chosen. Infecting...")
log_admin("Infected room event started; Virus: [chosen_disease.name]")
message_admins("Infected room event started; Virus: [chosen_disease.name]")