Castaway Isle: Island Survival and Crafting Kit
README.md
survivalNeedsKit tests
This suite has 28 tests. It checks that every need, rule preset, climate, food, HUD layout, HUD theme and status in survivalNeedsKit is complete and consistent (warn and critical lines on the right side of each need, rule presets and foods that only name known needs, every climate with a day and a night, every entry in its ORDER list), that setup takes each rule, climate, layout and theme by name and refuses an unknown one without changing what it had, food descriptions and consume() effects with their ate and drank events, the status rules (well fed, starving, parched, shivering, freezing, soaked, exhausted, filtering by the needs the rules run, and define), the falloff of HeatSource warmth and light, Shelter and WaterSource reach, the felt temperature with fire, shelter and wet chill, the SurvivalNeeds component's owner-only writes and inactive needs, and that the version and the README agree with the code. It spawns temporary entities far from the scene and removes them, and restores the setup it changes. It leaves the per-frame meter drain and the HUD drawing to play testing, since those need a player body. Run it with asset.resolve("survivalNeedsKit", "testSuite"):run().