heart containers
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// 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();
|
||||
}
|
||||
Reference in New Issue
Block a user