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.
|
|
|
|
|
fn grab() {
|
|
|
|
|
alter_health(1);
|
|
|
|
|
die();
|
|
|
|
|
}
|