refactor
This commit is contained in:
@@ -77,16 +77,16 @@ pub(crate) enum Action {
|
||||
/// Zero time cost.
|
||||
Shift(Vec<(i32, i32)>),
|
||||
/// Add `n` to the player's gem count (negative subtracts; the count is
|
||||
/// clamped at 0). Zero time cost. Applied to `GameState::player_gems`.
|
||||
/// clamped at 0). Zero time cost. Applied to `GameState::player.gems`.
|
||||
AddGems(i64),
|
||||
/// Add `dh` to the player's health (clamped to `[0, max_health]`). Zero time
|
||||
/// cost. Applied to `GameState::player_health`.
|
||||
/// cost. Applied to `GameState::player.health`.
|
||||
AlterHealth(i64),
|
||||
/// Give (`true`) or take (`false`) the named key color from the player.
|
||||
///
|
||||
/// Color must be one of `"blue"`, `"green"`, `"cyan"`, `"red"`, `"purple"`,
|
||||
/// `"orange"`, `"yellow"`, `"white"`. An unrecognized name is logged and
|
||||
/// ignored. Zero time cost. Applied to `GameState::player_keys`.
|
||||
/// ignored. Zero time cost. Applied to `GameState::player.keys`.
|
||||
SetKey(String, bool),
|
||||
/// Remove the source object from the board. Zero time cost. Used by grab
|
||||
/// things (e.g. gems) to despawn themselves from their `grab()` hook.
|
||||
|
||||
Reference in New Issue
Block a user