mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-24 01:02:06 +00:00
* hi * bye * hi again * Sirryan2002 suggestion Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> * adds unit test idk what Im doing really here, so I hope this code works 😔 👍 * correction 1 * correction 2 kill me * correction 3 im dead * correction 4 big pepega moment * correction 5 * correction 6 yep * FINALE :D :D :D * AffectedArc07 suggested change Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
20 lines
856 B
Plaintext
20 lines
856 B
Plaintext
/datum/unit_test/aicard_icons/Run()
|
|
var/mob/living/silicon/ai/ai_box = new /mob/living/silicon/ai/
|
|
var/obj/item/aicard/int_card = new /obj/item/aicard/
|
|
|
|
var/list/ai_icon_list = icon_states(ai_box.icon)
|
|
var/list/aicard_icon_list = icon_states(int_card.icon)
|
|
|
|
var/list/ai_icon_exclusions = list("eye", "ai-holo-old", "holo-angel", "holo-borb", "holo-biggestfan", "holo-cloudkat", "holo-donut", "holo-frostphoenix", "holo1", "holo2", "holo3", "holo4", "0", "1", "2", "3", "3b", "4")
|
|
|
|
for(var/excl in ai_icon_exclusions)
|
|
ai_icon_list -= excl
|
|
|
|
for(var/icn_st in ai_icon_list)
|
|
if(icn_st in aicard_icon_list)
|
|
continue
|
|
|
|
Fail("Every AI Display must have a corresponding icon of the same name in [int_card.icon] for intelicards, [icn_st] is missing!")
|
|
|
|
//The exclusions list will need to be updated anytime any non-display icons are added to ai.dmi
|