Skip to content

Cleanup code: extract constants for color names and mod ids.#86

Open
LazaroOnline wants to merge 1 commit into
TheFlyingFoool:masterfrom
LazaroOnline:cleanup-constants
Open

Cleanup code: extract constants for color names and mod ids.#86
LazaroOnline wants to merge 1 commit into
TheFlyingFoool:masterfrom
LazaroOnline:cleanup-constants

Conversation

@LazaroOnline

Copy link
Copy Markdown
Contributor

Code cleanup:

  • Extracted constants for color names and organize color dictionary in a readable format.
  • Extracted constants for Mod's WorkshopIds with their respective mod name.
  • Grouped disabled mods in their corresponding lists to reuse logic preventing "If-else hell".

Resulting code is meant to be more readable and easier to maintain.
The logic is meant to be the same as before.

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.

1 participant