From b078af7204150ab92e2d15092a36026b2281e5ab Mon Sep 17 00:00:00 2001 From: Jordie0608 Date: Sun, 19 Nov 2017 12:36:30 +1100 Subject: [PATCH] fixes blackbox runtime and adds note about nested tally strings --- code/controllers/subsystem/blackbox.dm | 1 + code/modules/mob/living/carbon/human/human_defense.dm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/controllers/subsystem/blackbox.dm b/code/controllers/subsystem/blackbox.dm index f7abc72cbd..a1efcfc167 100644 --- a/code/controllers/subsystem/blackbox.dm +++ b/code/controllers/subsystem/blackbox.dm @@ -154,6 +154,7 @@ feedback data can be recorded in 5 formats: used to track the number of occurances of structured semi-relational values i.e. the results of arcade machines similar to running total, but related values are nested in a multi-dimensional array built the final element in the data list is used as the tracking key, all prior elements are used for nesting + all data list elements must be strings further calls to the same key will: add or subtract from the saved value of the data key if it already exists in the same multi-dimensional position append the key and it's value if it doesn't exist diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index 7d11c8286c..4e81e7eba9 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -162,7 +162,7 @@ affecting = get_bodypart(ran_zone(user.zone_selected)) var/target_area = parse_zone(check_zone(user.zone_selected)) //our intended target - SSblackbox.record_feedback("nested tally", "item_used_for_combat", 1, list(I.force, I.type)) + SSblackbox.record_feedback("nested tally", "item_used_for_combat", 1, list("[I.force]", "[I.type]")) SSblackbox.record_feedback("tally", "zone_targeted", 1, target_area) // the attacked_by code varies among species