Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
fixes blackbox runtime and adds note about nested tally strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordie0608 authored and KorPhaeron committed Nov 19, 2017
1 parent dabd669 commit b078af7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/controllers/subsystem/blackbox.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/human_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b078af7

Please sign in to comment.