Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[RDY] Annual report changes from AI Hospitals PR #1471
The ordering of fields is broken when multiple hospitals have the same value and they aren't in index order. So my change insteads passes through the index of the hospital being processed, finds the index of that hospital in the sorted list and returns that directly instead of using the 'dup_' values to try and do this.
The current code will draw names over the top of another and can leave with gaps in the list when multiple hospitals have the same value.
Sort functions changed to always put the local player hospital first assuming its at index 1.
I also aligned the date of the first year with TH as the Date class has this as a 1 indexed value, and its already incremented at this point for the next year.
Some minor changes that I think will help the readability of this code. It took me a little too long to sort out what was going on.