Files
kiln/kiln-core/src/scripts/heart.rhai
T

9 lines
254 B
Plaintext
Raw Normal View History

2026-06-23 22:52:25 -05:00
// Built-in script for the `heart` archetype.
//
// A heart is a grabbable collectible: walking onto it fires `grab()` instead
// of blocking. It restores 1 health and removes itself from the board.
2026-06-28 00:12:52 -05:00
fn grab(me, state) {
2026-06-23 22:52:25 -05:00
alter_health(1);
die();
}