[Heretic] Bag of Holding shouldn't give mace ammo

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
StroggVorbis
Posts: 866
Joined: Wed Nov 08, 2017 4:23 pm
Graphics Processor: nVidia with Vulkan support
Location: Germany

[Heretic] Bag of Holding shouldn't give mace ammo

Post by StroggVorbis »

The https://doomwiki.org/wiki/Bag_of_Holding article states that said item gives a small amount of every ammo except mace spheres.

Browsing https://github.com/OpenSourcedGames/Her ... /P_INTER.C, I found this:

Code: Select all

if(!player->backpack)
			{
				for(i = 0; i < NUMAMMO; i++)
				{
					player->maxammo[i] *= 2;
				}
				player->backpack = true;
			}
			P_GiveAmmo(player, am_goldwand, AMMO_GWND_WIMPY);
			P_GiveAmmo(player, am_blaster, AMMO_BLSR_WIMPY);
			P_GiveAmmo(player, am_crossbow, AMMO_CBOW_WIMPY);
			P_GiveAmmo(player, am_skullrod, AMMO_SKRD_WIMPY);
			P_GiveAmmo(player, am_phoenixrod, AMMO_PHRD_WIMPY);
			P_SetMessage(player, TXT_ITEMBAGOFHOLDING, false);
			break;
The firemace really is a weird one. It isn't mentioned in the manual, it has only a 75% chance of appearing in singleplayer in one of multiple SpecialSpots and a bag of holding doesn't contain any ammo for it.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Heretic] Bag of Holding shouldn't give mace ammo

Post by Graf Zahl »

fixed
Post Reply

Return to “Closed Bugs [GZDoom]”