You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the Income Levels are stored on database but the conversion from that to Credits is just put in a hash in GamesController#human_control. Also it exists in api controller.
This is bad for two reasons:
1.) Changes to how much income level affects credits received have to made in a controller method
2.) As part of #49, we can now potentially allow for custom team/countries. They would also need to have their own IncomeLevel to Credit rates provided/stored somewhere. No longer a thing because custom team/countries is waaaaaay too complicated.
I am thinking that the basic Income Levels for the standard countries can just be stored in a JSON or YML file or perhaps in Income.rb. Then on a per game level, we could reset the income levels for default countries.
Please note that right now the Team and Team Role models are just unique categorizations. So a join table may need to be created for a game in which you store the income levels.
Move Income Levels to Credits hash to better location
Ensure existing Income => Credit conversion does not break
Ensure app doesn't break if you're income level is higher that the current max. This might already be taken care of but we should award the max credit amount if you're income level is stupid high.
Explore the possibility of adding custom income levels for a team for a game. Please check in with me first with the schema idea before undertaking this.
The text was updated successfully, but these errors were encountered:
Currently the Income Levels are stored on database but the conversion from that to Credits is just put in a hash in
GamesController#human_control
. Also it exists in api controller.This is bad for two reasons:
1.) Changes to how much income level affects credits received have to made in a controller method
2.)
As part of #49, we can now potentially allow for custom team/countries. They would also need to have their own IncomeLevel to Credit rates provided/stored somewhere.No longer a thing because custom team/countries is waaaaaay too complicated.I am thinking that the basic Income Levels for the standard countries can just be stored in a JSON or YML file or perhaps in
Income.rb
. Then on a per game level, we could reset the income levels for default countries.Please note that right now the Team and Team Role models are just unique categorizations. So a join table may need to be created for a game in which you store the income levels.
The text was updated successfully, but these errors were encountered: