Skip to content

Use constants for movement fatigue#133

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

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

Conversation

@jollygreenlaser

Copy link
Copy Markdown

Requires: screeps/common#15

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

Hopefully I didn't miss any spots.

@sparr sparr left a comment

Copy link
Copy Markdown
Contributor

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