Let’s say I am making a game that has hundreds of soldiers. Each soldier has a damage value but they aren’t all the same. How would I:
- Dynamically change the damage value of each of them specifically (i.e. give them a different weapon)?
- How would I send the damage value to the instance of the class directly in front of it so that I can subtract it from its health and deal damage to it without affecting the other soldiers?