Skip to content

Add constants for movement fatigue#15

Open
jollygreenlaser wants to merge 1 commit into
screeps:masterfrom
jollygreenlaser:swamp-constants
Open

Add constants for movement fatigue#15
jollygreenlaser wants to merge 1 commit into
screeps:masterfrom
jollygreenlaser:swamp-constants

Conversation

@jollygreenlaser

@jollygreenlaser jollygreenlaser commented Nov 23, 2021

Copy link
Copy Markdown

Giving this constants makes it easier:

  1. For seasons or mods to change them
  2. For players to calculate fatigue without magic numbers or creating their own consts

Used by: screeps/engine#133

@sparr sparr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for eliminating magic numbers

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