mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-31 12:01:47 +00:00
* Fixes missing award icons by filling the assets list on runtime. Plus new icons and unit test. * Feexing conflicts Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
12 lines
524 B
Plaintext
12 lines
524 B
Plaintext
///Checks that all achievements have an existing icon state in the achievements icon file.
|
|
/datum/unit_test/achievements
|
|
|
|
/datum/unit_test/achievements/Run()
|
|
var/award_icons = icon_states(ACHIEVEMENTS_SET)
|
|
for(var/datum/award/award as anything in subtypesof(/datum/award))
|
|
if(!initial(award.name)) //Skip abstract achievements types
|
|
continue
|
|
var/init_icon = initial(award.icon)
|
|
if(!init_icon || !(init_icon in award_icons))
|
|
Fail("Award [initial(award.name)] has an unexistent icon: \"[init_icon || "null"]\"")
|