Companion ammo (Fallout 4)

Magical companion ammo is for use in companions' weapons in Fallout 4.

Characteristics
The "magical companion ammo" is the ammo that the companions default weapon uses, this ammunition are the ones companions came with, and they allways have/use when don't have any weapon equipped in their inventory, the ammo that is not visible when trading with them because is not on their inventory, this type of "invisible" ammo is called "magical companion ammo" (because that ammo its invisible on inventory, and also infinite).

Active follower companion equipped with any melee weapon (their own or provided by the player) don't consume any ammo at all. A companion can pickup a weapon+ammo by their own from defeated enemies and use it when fighting.

The only way for a companion to spend "real" ammo is when all three of the following conditions are met:
 * 1) ) The companion has a weapon equipped on his inventory (a weapon that can be seen equipped on their inventory when trading with them).
 * 2) ) The companion has at least 1 (one) ammo that can be seen when trading with them of the type of the weapon equipped.
 * 3) ) The companion is the current active follower companion.

If all three conditions are not met, or at least one of those cease to be true, it will stop consuming that "real" ammo,then as the active follower, he will switch to his own default companion weapon that use "magical companion ammo", but if is not currently the active follower companion, then he will carry on with the same game mechanics for weapon+ammo that apply to the settlers.

Settlers can be equipped with a gun by the player and they will not consume any ammo, but in order to use that weapon, they need to have at least 1 (one) ammo at their inventory of the type that the equipped weapon use, that single ammo will never be consumed and act as infinite ammo.

So, if a weapon is given and equiped on the companion inventory to use when he is the active following the player character, he will need to be supplied with ammunition for that type of weapon, if no ammo is supplied (or if runs out when using it) the active follower companion will then switch weapon for other prefered weapon that he has ammo for, if no other better prefered weapon is present on his inventory, then it will switch to the default one (which magically never runs out of ammo despite not showing as having any at the companion trade screen)

If the companion is dismissed to a settlement, by activating other companion as follower, or just by dismissing it to a settlement by chat options. it will turn to use the settler's/provisioner's weapon+ammo mechanics untill he is set as the active follower companion again.

Active follower companions will use their own weapon (the ones on the list bellow) and will never run out of ammo (since they "use" the "magical companion ammo" that, as their own gun, does not show up on their inventory when on the trade screen.

Companion Weapons using this ammunition
Ranged weapons

Companion Weapons that shouldn't use ammunition
Mele weapons
 * Codsworth's buzz blade
 * Hancock's knife
 * Strong's sledgehammer

Locations

 * In companion's weapons. Replenishes automatically.