Skip to content

Commit

Permalink
renamed to innclude units: DEBUG_WALK_SPEED_MS
Browse files Browse the repository at this point in the history
  • Loading branch information
allmtz committed Feb 28, 2024
1 parent 6a3b8e0 commit d32ff24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ DEBUG_DISABLE_HOTKEYS=false

# If true, creature walking animation will be much shorter
# Useful for minimizing the down time waiting for creatures to get in position
DEBUG_ENABLE_FAST_WALKING=true
DEBUG_WALK_SPEED=100 #ms
DEBUG_ENABLE_FAST_WALKING=false
DEBUG_WALK_SPEED_MS=100

# =============================================================================
# SERVER
Expand Down
4 changes: 2 additions & 2 deletions src/animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Creature } from './creature';
import { Hex } from './utility/hex';
import { Ability } from './ability';
import { QuadraticCurve } from './utility/curve';
import { DEBUG_ENABLE_FAST_WALKING, DEBUG_WALK_SPEED } from './debug';
import { DEBUG_ENABLE_FAST_WALKING, DEBUG_WALK_SPEED_MS } from './debug';

// to fix @ts-expect-error 2554: properly type the arguments for the trigger functions in `game.ts`

Expand Down Expand Up @@ -55,7 +55,7 @@ export class Animations {
speed = Number(speed);

if (DEBUG_ENABLE_FAST_WALKING) {
speed = DEBUG_WALK_SPEED;
speed = DEBUG_WALK_SPEED_MS;
}

const that = this;
Expand Down
2 changes: 1 addition & 1 deletion src/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ export const DEBUG_DISABLE_MUSIC =
export const DEBUG_DISABLE_HOTKEYS = d && toBool(process.env.DEBUG_DISABLE_HOTKEYS);

export const DEBUG_ENABLE_FAST_WALKING = d && toBool(process.env.DEBUG_ENABLE_FAST_WALKING);
export const DEBUG_WALK_SPEED = d && Number(process.env.DEBUG_WALK_SPEED);
export const DEBUG_WALK_SPEED_MS = d && Number(process.env.DEBUG_WALK_SPEED_MS);

0 comments on commit d32ff24

Please sign in to comment.