Skip to content

Use UnitEnum instead of magic numbers#98

Merged
rajko-horvat merged 1 commit intorajko-horvat:masterfrom
VladimirMakeev:unit-enum
Oct 23, 2025
Merged

Use UnitEnum instead of magic numbers#98
rajko-horvat merged 1 commit intorajko-horvat:masterfrom
VladimirMakeev:unit-enum

Conversation

@VladimirMakeev
Copy link
Contributor

Description of Changes

Use UnitEnum instead of 'magic' numbers throughout codebase.

Rationale behind Changes

Easier to understand which types of units are used in game logic.

Suggested Testing Steps

Check military status, military losses (F2) and diplomacy (meet with king) menus in game.

@rajko-horvat
Copy link
Owner

Dear @VladimirMakeev I have seen you commit, but haven't managed to give it a proper check. Please bear with me a few more days ;)

@rajko-horvat rajko-horvat merged commit 044a858 into rajko-horvat:master Oct 23, 2025
3 checks passed
@VladimirMakeev VladimirMakeev deleted the unit-enum branch October 23, 2025 20:00
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