This was my first development contribution to the above-stated project. It basically was an assignment from @raycoms to refactor the townhall statistics that instead of displaying the citizens's occupation statically (each of the worker roles are in a
switch statement), the count of workers per job will be dynamically generated.
Here's a screenshot of the implementation prior to the refactor.
And here are the townhall statistics after refactor.
Here's the link to the merged PR.
https://github.com/Minecolonies/minecolonies/pull/1946
And here are some screenshots of the codes modified.
src/main/java/com/minecolonies/coremod/client/gui/WindowTownHall.javasrc/main/resources/assets/minecolonies/gui/windowtownhall.xmlsrc/main/resources/assets/minecolonies/lang/en_ca.langsrc/main/resources/assets/minecolonies/lang/en_uk.langsrc/main/resources/assets/minecolonies/lang/en_us.lang