Castaway Isle: Island Survival and Crafting Kit
README.md
recipeKit tests
This suite has 14 tests. It checks that recipes define, list, reorder and remove in definition order and that a recipe with no result and no place is refused; that costOf scales and rounds up, and that a scale of 0 makes everything free; that missing with no bag is the whole cost and missingText reads "Needs 1 fiber, 2 stone"; that canMake runs the station check (and every station passes by default); that craft refuses and takes nothing when ingredients are missing; that a place recipe calls the onPlace handler only after its checks pass; that the crafted, refused and defined events fire and unsubscribe; that loadPack defines every recipe of each pack; that every menu theme sets every key, every theme and layout builds a tree, and the menu opens, closes, toggles and wraps its highlight; and that the version agrees with package.yaml and the README. It snapshots the recipe book, settings and listeners first and restores them, and closes the menu if it opened it. It leaves crafting from a real bag in play to play testing. Run it with asset.resolve("recipeKit", "testSuite"):run().