mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[MIRROR] Crafting menu tells you which colour of crayon is needed (#3519)
* Crafting menu tells you which colour of crayon is needed (#56950) Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com> * Crafting menu tells you which colour of crayon is needed Co-authored-by: cacogen <25089914+cacogen@users.noreply.github.com> Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
This commit is contained in:
co-authored by
Mothblocks
cacogen
parent
c426fc199a
commit
eb765f958a
@@ -45,6 +45,7 @@
|
||||
#include "combat.dm"
|
||||
#include "component_tests.dm"
|
||||
#include "confusion.dm"
|
||||
#include "crayons.dm"
|
||||
#include "designs.dm"
|
||||
#include "dynamic_ruleset_sanity.dm"
|
||||
#include "emoting.dm"
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/// Makes sure that crayons have their crayon_color in their initial name (to differentiate them in the crafting menu).
|
||||
/datum/unit_test/crayon_naming
|
||||
|
||||
/datum/unit_test/crayon_naming/Run()
|
||||
for(var/obj/item/toy/crayon/crayon_path as anything in typesof(/obj/item/toy/crayon))
|
||||
if(ispath(crayon_path, /obj/item/toy/crayon/spraycan))
|
||||
continue
|
||||
var/obj/item/toy/crayon/real_crayon = new crayon_path
|
||||
if(!findtext(initial(real_crayon.name),real_crayon.crayon_color))
|
||||
Fail("[real_crayon] does not have its crayon_color ([real_crayon.crayon_color]) in its initial name ([initial(real_crayon.name)]).")
|
||||
qdel(real_crayon)
|
||||
Reference in New Issue
Block a user