Selecting a better weapon
I have been using the weapon descriptor's getPriDamage() function to determine how good my bot's current weapon is, and whether it should switch to a better one. However, I noticed that I kept getting 0 as primary damage value, so included a few calls to retrieve the getPriDamage() results for a number of weapons... as it turns out, only a few of them have a value other than 0.
These are the results I got back:
Assault Rifle damage: 0.0
Minigun damage: 0.0
Bio Rifle damage: 19.0
Flak Cannon damage: 13.0
Link Gun damage: 30.0
Shock Rifle damage: 0.0
Lighting Gun damage: 0.0
Is this correct, and if so, is there another value I could use to get my bot to switch to a better weapon?