#library "DPammocap"
#include "zcommon.acs"

script "PistolAmmoCap" (void)
{
		if(checkinventory("DispPowerup") && (GetAmmoCapacity("DPCharge") < 90))
			{
			SetAmmoCapacity("DPCharge", GetAmmoCapacity("DPCharge") + 10);
			GiveInventory("DPCharge",90);
			}
		else
			{
			GiveInventory("DPCharge",90);
			}
}