add_gems -> alter_gems
This commit is contained in:
@@ -70,7 +70,7 @@ pub struct GameState {
|
||||
/// The game-global player state (health, gems, keys) — see [`Player`]. Not
|
||||
/// per-board: it persists across board transitions, unlike the per-board
|
||||
/// position in [`Board::player`](crate::board::Board::player). Scripts mutate
|
||||
/// it via `add_gems`/`alter_health`/`set_key` and read a snapshot of it.
|
||||
/// it via `alter_gems`/`alter_health`/`set_key` and read a snapshot of it.
|
||||
pub player: PlayerRef,
|
||||
}
|
||||
|
||||
@@ -477,7 +477,7 @@ impl GameState {
|
||||
return;
|
||||
}
|
||||
// Fire the grab hook and resolve it immediately so the grabbed thing's
|
||||
// die()/add_gems() apply now — no player+object overlap survives this call.
|
||||
// die()/alter_gems() apply now — no player+object overlap survives this call.
|
||||
if let Some(id) = grabbed {
|
||||
self.scripts.run_grab(id);
|
||||
self.resolve();
|
||||
|
||||
Reference in New Issue
Block a user