Logs wizard spell names instead of initialisms to the DB (#21136)

* improve wizard feedback data

* review 1

* readability improvement
This commit is contained in:
Edan
2023-06-05 18:30:36 +01:00
committed by GitHub
parent 3c3264dc08
commit a168bf68ac
5 changed files with 121 additions and 91 deletions

View File

@@ -12,17 +12,3 @@
Fail("uplink reference [uplink_ref] is used multiple times")
uplink_refs += uplink_ref
/datum/unit_test/spellbook_refs/Run()
var/list/spell_refs = list()
var/list/blacklist = list(/datum/spellbook_entry/summon,
/datum/spellbook_entry/item,
/datum/spellbook_entry/loadout,)
for(var/datum/spellbook_entry/entry as anything in subtypesof(/datum/spellbook_entry) - blacklist)
var/spell_ref = initial(entry.log_name)
if(isnull(spell_ref))
Fail("spellbook entry [initial(entry.name)] has no reference")
continue
if(spell_ref in spell_refs)
Fail("spellbook reference [spell_ref] is used multiple times")
spell_refs += spell_ref