I am in the process of nerfing a team based ability that seems a bit OP right now.
Currently, my team based ability is activated by any player on the team. It provides +1 research for every available upgrade to every hero on the team.
I've been thinking and this is a huge nerf but I think its necessary. Rather then every upgrade, change the ability to a type that gives each hero a choice to choose 1 or 3 upgrades.
The problem is I have no idea how to implement this.
Basically it would go something like this.
Player 3 on Team A activates research breakthrough.
Everyone is notified that their next chosen upgrade is free and will upgrade instantly. OR Everyone is notified and immediately given 3 choices out of their available upgrades.
Upgrades are found in their unit's submenu. The problem is how to prevent a player from choosing 1 upgrade 3 times, not to mention I just don't even know how to do it any of this since you would have to somehow overide the resource and time cost to use the research ability on the unit.
And you would have to set it so the override only lasts for 1 research, (or 3 in the case of 3 upgrades)
It might not be possible to remove the cost, however it should be possible to research a technology instantly and refund the research cost. When the ability is used, give each player a free research token. Tokens are tracked by an integer array that maps them to player. When a player starts a research and has 1 or more tokens, then set its progress to 99% (as good as finished). Once the upgrade has finished then refund them the upgrade cost (use catalog functions to look this up) and decrement their free research tokens by 1.
I am in the process of nerfing a team based ability that seems a bit OP right now.
Currently, my team based ability is activated by any player on the team. It provides +1 research for every available upgrade to every hero on the team.
I've been thinking and this is a huge nerf but I think its necessary. Rather then every upgrade, change the ability to a type that gives each hero a choice to choose 1 or 3 upgrades.
The problem is I have no idea how to implement this.
Basically it would go something like this.
Player 3 on Team A activates research breakthrough.
Everyone is notified that their next chosen upgrade is free and will upgrade instantly. OR Everyone is notified and immediately given 3 choices out of their available upgrades.
Upgrades are found in their unit's submenu. The problem is how to prevent a player from choosing 1 upgrade 3 times, not to mention I just don't even know how to do it any of this since you would have to somehow overide the resource and time cost to use the research ability on the unit.
And you would have to set it so the override only lasts for 1 research, (or 3 in the case of 3 upgrades)
It might not be possible to remove the cost, however it should be possible to research a technology instantly and refund the research cost. When the ability is used, give each player a free research token. Tokens are tracked by an integer array that maps them to player. When a player starts a research and has 1 or more tokens, then set its progress to 99% (as good as finished). Once the upgrade has finished then refund them the upgrade cost (use catalog functions to look this up) and decrement their free research tokens by 1.
But what about the initial cost? If the player doesn't have enough resources to begin with.