Update inventory.cs

This commit is contained in:
ChocoTaco 2019-11-08 14:10:27 -05:00
parent 38b091e537
commit 1ca1b1b4e2

View file

@ -530,9 +530,7 @@ function ShapeBase::cycleWeapon( %this, %data )
%slot = -1;
if ( %this.getMountedImage($WeaponSlot) != 0 )
{
if( %this.getMountedImage(0).getName() $= "RepairGunImage" ) //Console spam fix
%curWeapon = "RepairGunImage";
else
if( %this.getMountedImage(0).getName() !$= "RepairGunImage" ) //Console spam fix
%curWeapon = %this.getMountedImage($WeaponSlot).item.getName();
for ( %i = 0; %i < %this.weaponSlotCount; %i++ )