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

9 lines
247 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-07-07 23:55:27 -05:00
fn grab(me) {
2026-06-23 22:52:25 -05:00
alter_health(1);
die();
}