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

10 lines
335 B
Plaintext
Raw Normal View History

2026-06-21 18:27:45 -05:00
// Built-in script for the `gem` archetype (see kiln-core/src/builtin_scripts.rs).
//
// A gem is a grabbable collectible: walking onto it (or pushing it into the
// player) fires this `grab()` hook instead of blocking. We bump the player's gem
// count and remove ourselves from the board.
2026-07-07 23:55:27 -05:00
fn grab(me) {
2026-06-21 18:27:45 -05:00
add_gems(1);
die();
}