- Deleted ruleset entries need to be deleted from the index too.
- Stopped country funding from going negative in exceptional circumstances.
Fixed crash when mind-controlled unit is holding a non-weapon.
Fixed potential bug with deciding a unit's valid hand weapon
make some functions of the inventory static and use them where applicable
autoEnd woes
Auto equip ranged weapons before melee

Currently auto equip is favouring stun rods ahead of guns.
Improved auto equip of spare ammo clips

Only equips spares when unit doesn't already have one.
Auto equip gives pistol wielders stun rod in second hand
Improved auto equipping of stun rods

In left hand for pistol users, or in backpack otherwise.
Add isCarrying function

so we can determine if a unit is carrying a particular item.
Try not to encumber units while autoequipping

Conflicts:
	src/Battlescape/BattlescapeGenerator.cpp
Autoequip spare taller ammo in backpacks
Autoequip 2 point oh ?

Alters auto equip weapon priority

Hopefully we end up with appropriate weapons in the front ranks, support
weapons in the back ranks, and better weapons picked over deprecated
weapons.

Priorities set in ruleset.
Merge branch 'autoequip' of ssh://github.com/cfailde/OpenXcom into autoequip

Conflicts:
	src/Battlescape/BattlescapeGenerator.cpp
	src/Savegame/BattleUnit.cpp