Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder buildings based on selected buy-mode #339

Closed
DanielNoord opened this issue Nov 24, 2020 · 0 comments
Closed

Reorder buildings based on selected buy-mode #339

DanielNoord opened this issue Nov 24, 2020 · 0 comments
Assignees

Comments

@DanielNoord
Copy link
Collaborator

Originally posted by @haninouya in #320 (comment)

While I can make a quick fix to do this, the better solution would be a significant re-write of the code.
Currently CM.Cache has Objects, Objects10 and Objects100 children. It would be better to rewrite Objects into Objects1 as there are multiple occasions in which being able to us the amount would be beneficial.
For example, in this issue by reading Game.buyBulk to decide on which PP-value to sort.
However, as CM.Cache.Objects gets referenced quite often we should take time and care for changing this.

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

No branches or pull requests

1 participant