Files
Bubberstation/code/modules/unit_tests/plantgrowth_tests.dm
MrMelbert bb5165100b Deletes unused hydroponics code (#80156)
## About The Pull Request

`/obj/item/seeds/sample` was completely unused, ever since it's
inception in #16082
(d513f52244)
as far as I can tell

(Me when "adds plant samples for future use" never makes use of them in
the future)

All this does is complicate hydro code so it dies. 
Anything it is doing should be handled by genes probably

While I was here I made sure nothing in `can_add` will break and touched
up the code a tiny tiny bit. I kept it as `SHOULD_CALL_PARENT` even
though it doesn't make use of it at the moment because every trait
currently calls parent / respects return value, so sure, why not

## Changelog

Not necessary
2023-12-06 19:58:26 -07:00

22 lines
900 B
Plaintext

// Checks plants for broken tray icons. Use Advanced Proc Call to activate.
// Maybe some day it would be used as unit test.
// -------- IT IS NOW!
/datum/unit_test/plantgrowth/Run()
var/list/paths = subtypesof(/obj/item/seeds) - /obj/item/seeds - /obj/item/seeds/lavaland
for(var/seedpath in paths)
var/obj/item/seeds/seed = new seedpath
for(var/i in 1 to seed.growthstages)
if(icon_exists(seed.growing_icon, "[seed.icon_grow][i]"))
continue
TEST_FAIL("[seed.name] ([seed.type]) lacks the [seed.icon_grow][i] icon!")
if(!(icon_exists(seed.growing_icon, seed.icon_dead)))
TEST_FAIL("[seed.name] ([seed.type]) lacks the [seed.icon_dead] icon!")
if(seed.icon_harvest) // mushrooms have no grown sprites, same for items with no product
if(!(icon_exists(seed.growing_icon, seed.icon_harvest)))
TEST_FAIL("[seed.name] ([seed.type]) lacks the [seed.icon_harvest] icon!")