Here's the context : I'm making a tower defense. For that, I create 2 families : Turrets and TurretBonus.
Turrets are classical turrets with the behavior turret.
TurretBonus don't have this behavior, their goal is to increase capacities of turrets in their range. Ex : add 50% to the turret range.
I tried this code :
With 1 turretBonus and 1 turret in the range of the bonus, no problem.
But with 2 turretBonus : range increases indefinitely
With 1 turretBonus and 2 turrets in the bonus range : idem..
Any idea ?