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
The current loadout/upgrade system works... buuuut it's a bit of a mess, all things considered.
Between a massive nested switch statement and the wonky way I'm storing unit defaults and the completely lack of both Documentation and AI support, there's a lot to be desired still.
There is, however, a potential alternative, though it both needs testing for feasiblity and ideally support from Robosturm in the form of #1863 and potentially #1864; have seperate, "hidden" units that the Upgrade/Loadout function transforms the unit into upon being built, using the 'transformUnit' function.
These hidden units would hold all the stats for the upgraded units, allowing me to handle some things such as unlocking actions and increasing defense/range much more cleanly, and perhaps even make it possible to add fake AI support; it's possible to give the AI a different build-list from buildings, so it's possible to allow the AI to build these upgraded units directly. It would be a buff for them, but frankly, they need it.
And depending on how ACTION_BUILD_UNITS manages to bring up wiki pages, perhaps there's value in keeping these hidden units on the wiki, just so that it's possible to provide info on what the upgrades actually do.
The downside of this is that there'll be plenty extra unit files, and I'll need to touchup the unit.js and the battleanimations to account for things using the sprites of other things, but I think it'd be a net improvement.
The text was updated successfully, but these errors were encountered:
The current loadout/upgrade system works... buuuut it's a bit of a mess, all things considered.
Between a massive nested switch statement and the wonky way I'm storing unit defaults and the completely lack of both Documentation and AI support, there's a lot to be desired still.
There is, however, a potential alternative, though it both needs testing for feasiblity and ideally support from Robosturm in the form of #1863 and potentially #1864; have seperate, "hidden" units that the Upgrade/Loadout function transforms the unit into upon being built, using the 'transformUnit' function.
These hidden units would hold all the stats for the upgraded units, allowing me to handle some things such as unlocking actions and increasing defense/range much more cleanly, and perhaps even make it possible to add fake AI support; it's possible to give the AI a different build-list from buildings, so it's possible to allow the AI to build these upgraded units directly. It would be a buff for them, but frankly, they need it.
And depending on how ACTION_BUILD_UNITS manages to bring up wiki pages, perhaps there's value in keeping these hidden units on the wiki, just so that it's possible to provide info on what the upgrades actually do.
The downside of this is that there'll be plenty extra unit files, and I'll need to touchup the unit.js and the battleanimations to account for things using the sprites of other things, but I think it'd be a net improvement.
The text was updated successfully, but these errors were encountered: