Give cheat small fix.

This commit is contained in:
Mari the Deer 2022-10-08 02:07:53 +02:00
commit 655e8748d7
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r550 \cu(Sat 8 Oct 02:05:20 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r550 \cu(2022-10-08 02:05:20)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r551 \cu(Sat 8 Oct 02:07:53 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r551 \cu(2022-10-08 02:07:53)\c-";

View file

@ -353,8 +353,11 @@ Class Demolitionist : PlayerPawn
{
// Add it first if not found
ammoitem = Ammo(Spawn(type));
ammoitem.Amount = 0;
ammoitem.AttachToOwner(self);
}
// Don't give spares unless we own a Candy Gun, for consistency
if ( (type is 'CandyGunSpares') && !FindInventory('CandyGun') ) continue;
// Top up
ammoitem.Amount = ammoitem.MaxAmount;
// Does it have mag ammo?
@ -493,10 +496,10 @@ Class Demolitionist : PlayerPawn
{
CheatGive_Health();
CheatGive_Backpack();
CheatGive_Ammo();
CheatGive_Armor();
CheatGive_Keys();
CheatGive_Weapons();
CheatGive_Ammo();
CheatGive_Artifacts();
CheatGive_PuzzlePieces();
if ( giveall == ALL_YESYES )