Castaway Isle: Island Survival and Crafting Kit
README.md
gatherKit tests
This suite has 17 tests. It checks that gatherKit has at least 12 resources, each listed once in RESOURCE_ORDER and complete (label, verb, gives with sane ranges and chances, charges, a regrowKit preset or seconds, prop and category), that every item a resource gives and every tool is an inventoryKit item, a gatherKit material or a survivalNeedsKit food, that every prop is a tropicalProps kind, and that items defines the materials inventoryKit lacked. It rolls with fixed random sources to check min, max, chance and tool doubling, defines and removes a test resource and checks bad ones are refused, checks on refuses unknown events and unsubscribes, and checks give outside play or for an unknown resource changes nothing and does not throw. It puts GatherSpot on temporary entities far from the scene to check it adds a Regrowing with the resource's charges and preset (and keeps one already there), its prop child and its prompt, builds a GatherGallery, and checks the version and README resource table against the code, then removes everything it spawned. It leaves gathering into a real bag in play and the owner handshake between two players to play testing. Run it with asset.resolve("gatherKit", "testSuite"):run().