Big API refactor

This commit is contained in:
2026-06-28 00:12:52 -05:00
parent db9a5d37b6
commit 9de31d933b
31 changed files with 1036 additions and 1029 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
// 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.
fn grab() {
fn grab(me, state) {
let colors = [
"red",
"orange",
@@ -16,7 +16,7 @@ fn grab() {
];
for c in colors {
if Me.has_tag(`BUILTIN_key_${c}`) {
if me.has_tag(`BUILTIN_key_${c}`) {
set_key(c, true);
}
}