Big API refactor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user