It was a little different for my application but it looks like you're along the right lines.
In fact, in your instance you might want to use 2 instance variables, one to identify the specific turret and the other as a record of the upgrade level for each turret.