Skip to content

refactor: Remove deprecated legacy code across codebase#1138

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/remove-deprecated-legacy-Lr0iW
Jan 30, 2026
Merged

refactor: Remove deprecated legacy code across codebase#1138
braedonsaunders merged 1 commit into
mainfrom
claude/remove-deprecated-legacy-Lr0iW

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner
  • Remove non-deterministic randomRange/randomInt from utils/math.ts (SeededRandom should be used for gameplay randomness)
  • Remove deprecated useGameInput mouse handlers and JSX event bindings (InputManager handles events directly on the container)
  • Rename legacyDecorations to mapDecorations in EnvironmentManager.ts (clarifies purpose - handles watch towers and destructibles)
  • Replace legacy ElevationLevel type with ELEVATION_LOW/MID/HIGH constants (simplifies API - all terrain functions now accept 0-255 Elevation directly)
  • Update terrain utility functions to use modern Elevation type only
  • Remove unused ElevationLevel import from Terrain.ts

https://claude.ai/code/session_01KJMiVQUvkGvuZrQWn725bq

- Remove non-deterministic randomRange/randomInt from utils/math.ts
  (SeededRandom should be used for gameplay randomness)
- Remove deprecated useGameInput mouse handlers and JSX event bindings
  (InputManager handles events directly on the container)
- Rename legacyDecorations to mapDecorations in EnvironmentManager.ts
  (clarifies purpose - handles watch towers and destructibles)
- Replace legacy ElevationLevel type with ELEVATION_LOW/MID/HIGH constants
  (simplifies API - all terrain functions now accept 0-255 Elevation directly)
- Update terrain utility functions to use modern Elevation type only
- Remove unused ElevationLevel import from Terrain.ts

https://claude.ai/code/session_01KJMiVQUvkGvuZrQWn725bq
@braedonsaunders braedonsaunders merged commit 603ecc3 into main Jan 30, 2026
4 checks passed
@braedonsaunders braedonsaunders deleted the claude/remove-deprecated-legacy-Lr0iW branch January 30, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants