If you use up all of your Wrist Darts as Nightwing, you can just switch to another playable character and then back to Nightwing. Then, you'll have restocked your ammo which is obviously unbalanced.
This is because every gadget is reinstantiated on switch.
The solution would be to track the available ammo independently and redirect the function that restocks the ammo. That way we can stay 1:1 to the game. Then, when the player switches the character, we will have to apply the ammo. This will work perfectly for the Wrist Darts but not for things with cool downs (jammer/smoke bomb). That will need some extra work.
These are the gadgets we'll need to look into specifically:
If you use up all of your Wrist Darts as Nightwing, you can just switch to another playable character and then back to Nightwing. Then, you'll have restocked your ammo which is obviously unbalanced.
This is because every gadget is reinstantiated on switch.
The solution would be to track the available ammo independently and redirect the function that restocks the ammo. That way we can stay 1:1 to the game. Then, when the player switches the character, we will have to apply the ammo. This will work perfectly for the Wrist Darts but not for things with cool downs (jammer/smoke bomb). That will need some extra work.
These are the gadgets we'll need to look into specifically: