Log inGet started
World

Second Wind: Health, Damage and Respawn Kit

README.md

secondwind tests

Covers every public call in SecondWind's api, catalog, logic, feed, fx and pool, 106 tests in all:

  • every health model, and every damage type's behaviour (burn, poison stacks, chill, chain, falloff and knockback, fall, armour bypass);
  • teams, friendly fire and i-frames;
  • every death style's way back, presets and runtime switching;
  • events and the kill feed;
  • health pools for crowds (damage, death, armour, friendly fire, healing and regeneration);
  • that the catalog version matches package.yaml and the README;
  • the README's install step, first example and Known limits, the package description and both guides;
  • the 1.2.0 rename: the package is SecondWind with the same guid, nothing requires healthKit. any more, and the network channels keep their names;
  • that every file in the package, this suite included, loads the kit with ~. and finds its files from wherever the package sits, never by the package's public name or a fixed path.

It loads the kit the way the package's own code does (require("~.api")), so it runs the same in the kit's own world, in a world that installed SecondWind, and under /source/deps/ when another kit brought it. It drives temporary dummies by hand, far from the scene, and leaves the scene and its Rules as it found them. It does not cover two-peer networking, which was play-tested instead.