Missed a lil' thing.

This commit is contained in:
Mari the Deer 2022-10-08 17:50:05 +02:00
commit c7d741853e
2 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r559 \cu(Sat 8 Oct 17:47:35 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r559 \cu(2022-10-08 17:47:35)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r560 \cu(Sat 8 Oct 17:50:05 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r560 \cu(2022-10-08 17:50:05)\c-";

View file

@ -2027,8 +2027,8 @@ Class SWWMUtility
if ( !(i is 'Weapon') ) continue;
let w = Weapon(i);
if ( (w is 'SWWMWeapon') && SWWMWeapon(w).bNOFIRSTGIVE ) continue;
if ( w.Ammo1 ) w.Ammo1.Amount = min(w.Ammo1.MaxAmount,w.Ammo1.Amount+w.AmmoGive1);
if ( w.Ammo2 && (w.Ammo2 != w.Ammo1) ) w.Ammo2.Amount = min(w.Ammo2.MaxAmount,w.Ammo2.Amount+w.AmmoGive2);
if ( w.Ammo1 ) w.Ammo1.Amount = min(w.Ammo1.MaxAmount,w.Ammo1.Amount+w.default.AmmoGive1);
if ( w.Ammo2 && (w.Ammo2 != w.Ammo1) ) w.Ammo2.Amount = min(w.Ammo2.MaxAmount,w.Ammo2.Amount+w.default.AmmoGive2);
}
}