9 lines
253 B
Plaintext
9 lines
253 B
Plaintext
// 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.
|
|
fn bump(me, _dir) {
|
|
alter_health(1);
|
|
die();
|
|
}
|