Upgrades System Structure
Last updated
Last updated
Upgrades system structurally in a way is a simplified version of an abilities system. Whereas the abilities have custom AbilitiyData and AbiulityLevel classes for each abilities, each upgrade shares the UpgradeData and UpgradeLevel classes with other upgrades.
Each Upgrade Level contains only two parameters - cost and value. Unlike the abilities system, it's up for the rest of the game to implement the upgrades. For example, the PlayerBehavior will ask the Upgrades Manager for the value Health Upgrade and will add it to it's health.
DevStartLevel field is a simple way to test upgrades without needing to spend time and in game money. -1 means that it is disabled, each number above corresponds to the level from re levels list.