
//-------------------------------------------------------------------
//		BULK MOD

ACTOR RLBulkModItem : CustomInventory 16500
{
  -COUNTITEM
  +INVENTORY.INVBAR
  +INVENTORY.UNTOSSABLE
  +INVENTORY.BIGPOWERUP
  +DONTGIB
  Tag "Bulk Modpack"
    //$category "DRLA Items"
  Inventory.InterHubAmount 8
  Inventory.MaxAmount 8
  Inventory.Icon "BMODI0"
  Inventory.Pickupsound "misc/modpackpickup"
  Inventory.UseSound "modpack/bulk"
  Inventory.PickupMessage "You picked up a Bulk Mod Pack."
  States
  {
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
  SpecialStartCheck:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_specialstarts") == 2, "Duke2Stuff")
  SpawnLoop:
    BMOD ABCDCB 3 Bright
	TNT1 A 0 A_JumpIf(CallACS("DRLA_lettermodpacks") == 1, "SpawnLetter")
    Loop
  SpawnLetter:
    BMOD E 5 Bright
    GMOD A 1
	TNT1 A 0 A_JumpIf(CallACS("DRLA_lettermodpacks") == 1, "SpawnLetter")
    Goto SpawnLoop
  Pickup:
	TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,3)
	TNT1 A 0 A_JumpIfInventory("RLModLimit",0,"NoPickup")
    TNT1 A 0 A_GiveInventory("RLModLimit", 1)
    Stop
	TNT1 A 0 A_JumpIfInventory("RLScavengerModLimit",0,"NoPickup")
    TNT1 A 0 A_GiveInventory("RLScavengerModLimit", 1)
    Stop
  Use:
	TNT1 A 0 A_JumpIfInventory("RLCyberneticArmorModdingConfirm",1,"CyberneticArmorModding")
	TNT1 A 0 A_JumpIfInventory("RLUseBulkMod",1,"WeaponSelect")
    TNT1 A 0 A_GiveInventory("RLUseBulkMod", 1)
    TNT1 A 0 A_PlaySound("hud/generic", 5)
	TNT1 A 0 A_JumpIfInventory("RLFistSelected",1,"FistSelection")
	TNT1 A 0 A_JumpIfInventory("RLAntiFreakJackalSelected",1,"HellsingSelection")
  UseAgainToMod:
	TNT1 A 0 A_Print("Use Bulk Mod again to apply to current weapon.\n\nPress \caDrop Item (DRLA)\c- to drop it, or switch weapons to cancel.", 5)
    Fail
  FistSelection:
	TNT1 A 0 A_Print("Press \caDrop Item (DRLA)\c- to drop Bulk Mod, or switch weapons to cancel.", 5)
    Fail
  HellsingSelection:
	TNT1 A 0 A_JumpIfInventory("RLAntiFreakJackalDemonArtifacts",1,1)
	Goto UseAgainToMod
	TNT1 A 0 A_Print("Use Bulk Mod again to apply to current weapon.\nPress \crAltFire\c- to switch which gun you wish to mod.\n\nPress \caDrop Item (DRLA)\c- to drop it, or switch weapons to cancel.", 5)
    Fail
  WeaponSelect:
	TNT1 A 0 A_GiveInventory("RLMisfireSpamPreventionCooldown",1)
    TNT1 A 0 A_Print (" ", 0)
	TNT1 A 0 A_JumpIfInventory("RLFistSelected",1,"FistSelection")
	TNT1 A 0 A_TakeInventory("RLDoubleChainsawConfirm",1)
	TNT1 A 0 A_TakeInventory("RLRipperConfirm",1)
	TNT1 A 0 A_TakeInventory("RLSpeedloaderPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLStormPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLEnergyPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLDemolitionAmmoPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLElephantGunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHeavyShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaticShrapnelShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLAutoshotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoShrapnelShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLTacticalShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaticShrapnelCombatShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoShrapnelCombatShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHeavyDoubleShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaticShrapnelDoubleShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLAutoDoubleShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoShrapnelDoubleShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLFocusedDoubleShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLGatlingGunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerChaingunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLBulletstormChaingunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLAssaultRifleChaingunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLBurstCannonChaingunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoChaingunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLDemolitionAmmoChaingunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLMotherInLawConfirm",1)
	TNT1 A 0 A_TakeInventory("RLMicroLauncherConfirm",1)
	TNT1 A 0 A_TakeInventory("RLTacticalRocketLauncherConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoRocketLauncherConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerPlasmaRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHyperBlasterConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaRifleMkIIConfirm",1)
	TNT1 A 0 A_TakeInventory("RLAssaultRiflePlasmaRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLBurstCannonPlasmaRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoPlasmaRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaRefractorConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerBFG9000Confirm",1)
	TNT1 A 0 A_TakeInventory("RLVBFG9000Confirm",1)
	TNT1 A 0 A_TakeInventory("RLBiggestFuckingGunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerBlasterConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoBlasterConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerCombatPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLStormCombatPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLEnergyCombatPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoCombatPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLDemolitionAmmoCombatPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerMarksmanPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLStormMarksmanPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLEnergyMarksmanPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoMarksmanPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLDemolitionAmmoMarksmanPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerHandcannonConfirm",1)
	TNT1 A 0 A_TakeInventory("RLMiniMissilePistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoHandcannonConfirm",1)
	TNT1 A 0 A_TakeInventory("RLDemolitionAmmoHandcannonConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerUziConfirm",1)
	TNT1 A 0 A_TakeInventory("RLAssaultRifleUziConfirm",1)
	TNT1 A 0 A_TakeInventory("RLBurstCannonUziConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoUziConfirm",1)
	TNT1 A 0 A_TakeInventory("RLDemolitionAmmoUziConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerBattleRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLAssaultRifleBattleRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLBurstCannonBattleRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoBattleRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLDemolitionAmmoBattleRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaticShrapnelSuperShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoShrapnelSuperShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaticShrapnelAssaultShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoShrapnelAssaultShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaticShrapnelPlasmaShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoShrapnelPlasmaShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerMinigunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLAssaultRifleMinigunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLBurstCannonMinigunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLAutocannonConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoMinigunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLDemolitionAmmoMinigunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoMissileLauncherConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerLaserRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLAssaultRifleLaserRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLBurstCannonLaserRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNanoManufactureAmmoLaserRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerNuclearPlasmaRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLAssaultRifleNuclearPlasmaRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLBurstCannonNuclearPlasmaRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerNuclearBFG9000Confirm",1)
	TNT1 A 0 A_TakeInventory("RLNuclearVBFG9000Confirm",1)
	TNT1 A 0 A_TakeInventory("RLNuclearBiggestFuckingGunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerNuclearPlasmaPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLSilencedPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLShredderPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLShredderShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLGrenadeLauncherConfirm",1)
	TNT1 A 0 A_TakeInventory("RLStormHandcannonConfirm",1)
	TNT1 A 0 A_TakeInventory("RLStormUziConfirm",1)
	TNT1 A 0 A_TakeInventory("RLStormBlasterConfirm",1)
	TNT1 A 0 A_TakeInventory("RLStormNuclearPlasmaPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaHandcannonConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaUziConfirm",1)
	TNT1 A 0 A_TakeInventory("RLOverchargedBlasterConfirm",1)
	TNT1 A 0 A_TakeInventory("RLSuperchargedNuclearPlasmaPistolConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHeavyCombatShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHeavySuperShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHeavyAssaultShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHeavyPlasmaShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaShotgunMkIIConfirm",1)
	TNT1 A 0 A_TakeInventory("RLFlamethrowerConfirm",1)
	TNT1 A 0 A_TakeInventory("RLShrapnelCannonConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNuclearPlasmaRevolverConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNuclearPlasmaShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLNuclearPlasmaRifleMkIIConfirm",1)
	TNT1 A 0 A_TakeInventory("RLStealthRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLSniperRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLMegatonShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLVoltgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLConquerorShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLClusterBombLauncherConfirm",1)
	TNT1 A 0 A_TakeInventory("RLGaussRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLAntiMaterielRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLZeusCannonConfirm",1)
	TNT1 A 0 A_TakeInventory("RLBulletstormRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLLaserShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLSuperMachinegunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLInfusionLauncherConfirm",1)
	TNT1 A 0 A_TakeInventory("RLLaserMinigunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaCannonConfirm",1)
	TNT1 A 0 A_TakeInventory("RLLaserPulseLauncherConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHeavyPulseBlasterConfirm",1)
	TNT1 A 0 A_TakeInventory("RLEnergysawConfirm",1)
//	TNT1 A 0 A_TakeInventory("RLEnergyBladeConfirm",1)
	TNT1 A 0 A_TakeInventory("RLIncinerationDeviceLauncherConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerMarksmanRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerVanguardRifleConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerHuntingRevolverConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerThompsonConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerPP7Confirm",1)
	TNT1 A 0 A_TakeInventory("RLPlasmaticShrapnelHuntingShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHeavyHuntingShotgunConfirm",1)
	TNT1 A 0 A_TakeInventory("RLHighPowerRCP90Confirm",1)
	TNT1 A 0 A_TakeInventory("RLPiercingChainsawConfirm",1)
/*	TNT1 A 0 A_TakeInventory("RLPiercingCombatKnifeConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPiercingAxeConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPiercingMaceConfirm",1)
	TNT1 A 0 A_TakeInventory("RLPiercingMacheteConfirm",1)*/
	TNT1 A 0 A_Jump(256, "AddonAssemblyConfirmationRemoval")
	Goto AddonAssemblyConfirmationRemoval
	
	
 // When making addon weapons, inherit the modpack and copy this state into it.
 // Then fill it with any assembly confirm tokens you've added so that the mod
 // will clear them on use.
 
  AddonAssemblyConfirmationRemoval:
//	TNT1 A 0 A_TakeInventory("RLAddonAssemblyConfirm",1) // Like dis
	TNT1 A 0 A_Jump(256, "WeaponSelectMain")
	Goto WeaponSelectMain
	
  WeaponSelectMain:
    TNT1 A 0 A_TakeInventory("RLUseBulkMod", 1)
//    TNT1 A 0 A_JumpIfInventory("RLCombatKnifeSelected",1,"RLCombatKnife")
    TNT1 A 0 A_JumpIfInventory("RLChainsawSelected",1,"RLChainsaw")
    TNT1 A 0 A_JumpIfInventory("RLPistolSelected",1,"RLPistol")
    TNT1 A 0 A_JumpIfInventory("RLShotgunSelected",1,"RLShotgun")
    TNT1 A 0 A_JumpIfInventory("RLCombatShotgunSelected",1,"RLCombatShotgun")
    TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunSelected",1,"RLDoubleShotgun")
    TNT1 A 0 A_JumpIfInventory("RLChaingunSelected",1,"RLChaingun")
    TNT1 A 0 A_JumpIfInventory("RLBattleRifleSelected",1,"RLBattleRifle")
    TNT1 A 0 A_JumpIfInventory("RLRocketLauncherSelected",1,"RLRocketLauncher")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleSelected",1,"RLPlasmaRifle")
    TNT1 A 0 A_JumpIfInventory("RLBFG9000Selected",1,"RLBFG9000")
// Exotic Weapons
    TNT1 A 0 A_JumpIfInventory("RLBlasterSelected",1,"RLBlaster")
    TNT1 A 0 A_JumpIfInventory("RLCombatPistolSelected",1,"RLCombatPistol")
    TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolSelected",1,"RLMarksmanPistol")
    TNT1 A 0 A_JumpIfInventory("RLHandcannonSelected",1,"RLHandcannon")
    TNT1 A 0 A_JumpIfInventory("RLSuperShotgunSelected",1,"RLSuperShotgun")
    TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunSelected",1,"RLAssaultShotgun")
    TNT1 A 0 A_JumpIfInventory("RLTristarBlasterSelected",1,"RLTristarBlaster")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunSelected",1,"RLPlasmaShotgun")
    TNT1 A 0 A_JumpIfInventory("RLMissileLauncherSelected",1,"RLMissileLauncher")
    TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherSelected",1,"RLNapalmLauncher")
    TNT1 A 0 A_JumpIfInventory("RLMinigunSelected",1,"RLMinigun")
    TNT1 A 0 A_JumpIfInventory("RLLaserRifleSelected",1,"RLLaserRifle")
    TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolSelected",1,"RLNuclearPlasmaPistol")
    TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleSelected",1,"RLNuclearPlasmaRifle")
    TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000Selected",1,"RLNuclearBFG9000")
    TNT1 A 0 A_JumpIfInventory("RLUziSelected",1,"RLUzi")
/*    TNT1 A 0 A_JumpIfInventory("RLAxeSelected",1,"RLAxe")
    TNT1 A 0 A_JumpIfInventory("RLMaceSelected",1,"RLMace")
    TNT1 A 0 A_JumpIfInventory("RLMacheteSelected",1,"RLMachete")*/
// Superior Weapons
    TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleSelected",1,"RLMarksmanRifle")
    TNT1 A 0 A_JumpIfInventory("RLVanguardRifleSelected",1,"RLVanguardRifle")
    TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverSelected",1,"RLHuntingRevolver")
    TNT1 A 0 A_JumpIfInventory("RLThompsonSelected",1,"RLThompson")
    TNT1 A 0 A_JumpIfInventory("RLPP7Selected",1,"RLPP7")
    TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunSelected",1,"RLHuntingShotgun")
    TNT1 A 0 A_JumpIfInventory("RLRCP90Selected",1,"RLRCP90")
// Unique Weapons
    TNT1 A 0 A_JumpIfInventory("RLJackhammerSelected",1,"RLJackhammer")
    TNT1 A 0 A_JumpIfInventory("RLRailgunSelected",1,"RLRailgun")
    TNT1 A 0 A_JumpIfInventory("RLMysteriousMagnumSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLBFG10KSelected",1,"RLBFG10K")
    TNT1 A 0 A_JumpIfInventory("RLUnknownHeraldSelected",1,"RLUnknownHerald")
    TNT1 A 0 A_JumpIfInventory("RLNullPointerSelected",1,"RLNullPointer")
    TNT1 A 0 A_JumpIfInventory("RLFragShotgunSelected",1,"RLFragShotgun")
    TNT1 A 0 A_JumpIfInventory("RLQuadShotgunSelected",1,"RLQuadShotgun")
    TNT1 A 0 A_JumpIfInventory("RLLightweaverSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLTantrumCannonSelected",1,"RLTantrumCannon")
    TNT1 A 0 A_JumpIfInventory("RLRevenantsLauncherSelected",1,"RLRevenantsLauncher")
    TNT1 A 0 A_JumpIfInventory("RLGrammatonClericBerettaSelected",1,"RLGrammatonClericBeretta")
    TNT1 A 0 A_JumpIfInventory("RLAntiFreakJackalSelected",1,"RLAntiFreakJackal")
    TNT1 A 0 A_JumpIfInventory("RLHellsingARMSCasullSelected",1,"RLHellsingARMSCasull")
    TNT1 A 0 A_JumpIfInventory("RLTrigunSelected",1,"RLTrigun")
    TNT1 A 0 A_JumpIfInventory("RLParticleBeamCannonSelected",1,"RLParticleBeamCannon")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaRedirectionCannonSelected",1,"RLPlasmaRedirectionCannon")
    TNT1 A 0 A_JumpIfInventory("RLSteelBeastSelected",1,"RLSteelBeast")
    TNT1 A 0 A_JumpIfInventory("RLSussGunSelected",1,"RLSussGun")
    TNT1 A 0 A_JumpIfInventory("RLMIRVLauncherSelected",1,"RLMIRVLauncher")
//    TNT1 A 0 A_JumpIfInventory("RLSubtleKnifeSelected",1,"RLSubtleKnife")
    TNT1 A 0 A_JumpIfInventory("RLNuclearOnslaughtSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLLuciferCannonSelected",1,"AdvancedWeapon")
//    TNT1 A 0 A_JumpIfInventory("RLSpectreRevolverSelected",1,"RLSpectreRevolver")
    TNT1 A 0 A_JumpIfInventory("RLMarathonAssaultRifleSelected",1,"RLMarathonAssaultRifle")
    TNT1 A 0 A_JumpIfInventory("RLMarathonShotgunsSelected",1,"RLMarathonShotguns")
    TNT1 A 0 A_JumpIfInventory("RLWidowmakerSMGSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLChameleonRifleSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLNanomachicArmamentGeneratorSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLTriadCannonSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLDirectHitSelected",1,"AdvancedWeapon")
// Demonic Weapons
//    TNT1 A 0 A_JumpIfInventory("RLMonsterFrisbeeSelected",1,"RLMonsterFrisbee")
    TNT1 A 0 A_JumpIfInventory("RLDeathsGazeSelected",1,"RLDeathsGaze")
    TNT1 A 0 A_JumpIfInventory("RLHellsReignSelected",1,"RLHellsReign")
    TNT1 A 0 A_JumpIfInventory("RLSoulstormRifleSelected",1,"RLSoulstormRifle")
//    TNT1 A 0 A_JumpIfInventory("RLMortalyzerSelected",1,"RLMortalyzer")
//    TNT1 A 0 A_JumpIfInventory("RLDreadshotMortarSelected",1,"RLDreadshotMortar")
    TNT1 A 0 A_JumpIfInventory("RLUnmakerSelected",1,"RLUnmaker")
// Legendary Weapons
    TNT1 A 0 A_JumpIfInventory("RLJudgeOfTheDeadSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLHurricaneCannonSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLNeuralStunnerSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLBaronBlasterSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLRealityDistortionArraySelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLBFGInfinitySelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLDuke2RifleSelected",1,"RLDuke2Rifle")
    TNT1 A 0 A_JumpIfInventory("RLLonghornSelected",1,"AdvancedWeapon")
    TNT1 A 0 A_JumpIfInventory("RLDragonslayerSelected",1,"AdvancedWeapon")
// Basic Assemblies
    TNT1 A 0 A_JumpIfInventory("RLSilencedPistolSelected",1,"RLSilencedPistol")
    TNT1 A 0 A_JumpIfInventory("RLShredderPistolSelected",1,"RLShredderPistol")
    TNT1 A 0 A_JumpIfInventory("RLShredderShotgunSelected",1,"RLShredderShotgun")
    TNT1 A 0 A_JumpIfInventory("RLSpeedloaderPistolSelected",1,"RLSpeedloaderPistol")
    TNT1 A 0 A_JumpIfInventory("RLElephantGunSelected",1,"RLElephantGun")
    TNT1 A 0 A_JumpIfInventory("RLGatlingGunSelected",1,"RLGatlingGun")
    TNT1 A 0 A_JumpIfInventory("RLMicroLauncherSelected",1,"RLMicroLauncher")
    TNT1 A 0 A_JumpIfInventory("RLTacticalShotgunSelected",1,"RLTacticalShotgun")
    TNT1 A 0 A_JumpIfInventory("RLHeavyShotgunSelected",1,"RLHeavyShotgun")
    TNT1 A 0 A_JumpIfInventory("RLHeavyCombatShotgunSelected",1,"RLHeavyCombatShotgun")
    TNT1 A 0 A_JumpIfInventory("RLHeavyDoubleShotgunSelected",1,"RLHeavyDoubleShotgun")
    TNT1 A 0 A_JumpIfInventory("RLHeavySuperShotgunSelected",1,"RLHeavySuperShotgun")
    TNT1 A 0 A_JumpIfInventory("RLHeavyAssaultShotgunSelected",1,"RLHeavyAssaultShotgun")
    TNT1 A 0 A_JumpIfInventory("RLHeavyPlasmaShotgunSelected",1,"RLHeavyPlasmaShotgun")
    TNT1 A 0 A_JumpIfInventory("RLFlamethrowerSelected",1,"RLFlamethrower")
    TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRevolverSelected",1,"RLNuclearPlasmaRevolver")
    TNT1 A 0 A_JumpIfInventory("RLStealthRifleSelected",1,"RLStealthRifle")
    TNT1 A 0 A_JumpIfInventory("RLSniperRifleSelected",1,"RLSniperRifle")
    TNT1 A 0 A_JumpIfInventory("RLShrapnelCannonSelected",1,"RLShrapnelCannon")
// Nanoedge/Piercing
    TNT1 A 0 A_JumpIfInventory("RLPiercingChainsawSelected",1,"RLPiercingChainsaw")
/*	TNT1 A 0 A_JumpIfInventory("RLPiercingCombatKnifeSelected",1,"RLPiercingChainsaw")
	TNT1 A 0 A_JumpIfInventory("RLPiercingFireAxeSelected",1,"RLPiercingAxe")
	TNT1 A 0 A_JumpIfInventory("RLPiercingAxeSelected",1,"RLPiercingAxe")
	TNT1 A 0 A_JumpIfInventory("RLPiercingMaceSelected",1,"RLPiercingMace")
	TNT1 A 0 A_JumpIfInventory("RLPiercingMacheteSelected",1,"RLPiercingMachete")*/
// High Power
    TNT1 A 0 A_JumpIfInventory("RLHighPowerPistolSelected",1,"RLHighPowerPistol")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerChaingunSelected",1,"RLHighPowerChaingun")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerBattleRifleSelected",1,"RLHighPowerBattleRifle")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerPlasmaRifleSelected",1,"RLHighPowerPlasmaRifle")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerBFG9000Selected",1,"RLHighPowerBFG9000")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerBlasterSelected",1,"RLHighPowerBlaster")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerCombatPistolSelected",1,"RLHighPowerCombatPistol")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerMarksmanPistolSelected",1,"RLHighPowerMarksmanPistol")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerHandcannonSelected",1,"RLHighPowerHandcannon")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerMinigunSelected",1,"RLHighPowerMinigun")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerLaserRifleSelected",1,"RLHighPowerLaserRifle")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerNuclearPlasmaPistolSelected",1,"RLHighPowerNuclearPlasmaPistol")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerNuclearPlasmaRifleSelected",1,"RLHighPowerNuclearPlasmaRifle")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerTristarBlasterSelected",1,"RLHighPowerTristarBlaster")
    TNT1 A 0 A_JumpIfInventory("RLHighPowerUziSelected",1,"RLHighPowerUzi")
// HAHAHA PLEASE GOD NO
    TNT1 A 0 A_JumpIfInventory("RLHighPowerNuclearBFG9000Selected",1,"RLHighPowerNuclearBFG9000")
// Plasmatic Shrapnel
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelShotgunSelected",1,"RLPlasmaticShrapnelShotgun")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelCombatShotgunSelected",1,"RLPlasmaticShrapnelCombatShotgun")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelDoubleShotgunSelected",1,"RLPlasmaticShrapnelDoubleShotgun")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssaultShotgunSelected",1,"RLPlasmaticShrapnelAssaultShotgun")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelSuperShotgunSelected",1,"RLPlasmaticShrapnelSuperShotgun")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelPlasmaShotgunSelected",1,"RLPlasmaticShrapnelPlasmaShotgun")
// Advanced Assemblies
    TNT1 A 0 A_JumpIfInventory("RLDoubleChainsawSelected",1,"RLDoubleChainsaw")
    TNT1 A 0 A_JumpIfInventory("RLTacticalRocketLauncherSelected",1,"RLTacticalRocketLauncher")
    TNT1 A 0 A_JumpIfInventory("RLStormPistolSelected",1,"RLStormPistol")
    TNT1 A 0 A_JumpIfInventory("RLStormCombatPistolSelected",1,"RLStormCombatPistol")
    TNT1 A 0 A_JumpIfInventory("RLStormMarksmanPistolSelected",1,"RLStormMarksmanPistol")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolSelected",1,"RLPlasmaPistol")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaCombatPistolSelected",1,"RLPlasmaCombatPistol")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaMarksmanPistolSelected",1,"RLPlasmaMarksmanPistol")
    TNT1 A 0 A_JumpIfInventory("RLStormHandcannonSelected",1,"RLStormHandcannon")
    TNT1 A 0 A_JumpIfInventory("RLStormUziSelected",1,"RLStormUzi")
    TNT1 A 0 A_JumpIfInventory("RLStormBlasterSelected",1,"RLStormBlaster")
    TNT1 A 0 A_JumpIfInventory("RLStormNuclearPlasmaPistolSelected",1,"RLStormNuclearPlasmaPistol")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaHandcannonSelected",1,"RLPlasmaHandcannon")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaUziSelected",1,"RLPlasmaUzi")
    TNT1 A 0 A_JumpIfInventory("RLSuperchargedNuclearPlasmaPistolSelected",1,"RLSuperchargedNuclearPlasmaPistol")
    TNT1 A 0 A_JumpIfInventory("RLFocusedDoubleShotgunSelected",1,"RLFocusedDoubleShotgun")
    TNT1 A 0 A_JumpIfInventory("RLHyperblasterSelected",1,"RLHyperblaster")
    TNT1 A 0 A_JumpIfInventory("RLMiniMissilePistolSelected",1,"RLMiniMissilePistol")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleMkIISelected",1,"RLPlasmaRifleMkII")
    TNT1 A 0 A_JumpIfInventory("RLAutoshotgunSelected",1,"RLAutoshotgun")
    TNT1 A 0 A_JumpIfInventory("RLAutoDoubleShotgunSelected",1,"RLAutoDoubleShotgun")
    TNT1 A 0 A_JumpIfInventory("RLVBFG9000Selected",1,"RLVBFG9000")
    TNT1 A 0 A_JumpIfInventory("RLNuclearVBFG9000Selected",1,"RLNuclearVBFG9000")
    TNT1 A 0 A_JumpIfInventory("RLGrenadeLauncherSelected",1,"RLGrenadeLauncher")
    TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunMkIISelected",1,"RLPlasmaShotgunMkII")
    TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaShotgunSelected",1,"RLNuclearPlasmaShotgun")
    TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleMkIISelected",1,"RLNuclearPlasmaRifleMkII")
    TNT1 A 0 A_JumpIfInventory("RLLaserShotgunSelected",1,"RLLaserShotgun")
// Assault Rifle
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleChaingunSelected",1,"RLAssaultRifleChaingun")
    TNT1 A 0 A_JumpIfInventory("RLAssaultRiflePlasmaRifleSelected",1,"RLAssaultRiflePlasmaRifle")
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleLaserRifleSelected",1,"RLAssaultRifleLaserRifle")
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleMinigunSelected",1,"RLAssaultRifleMinigun")
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleNuclearPlasmaRifleSelected",1,"RLAssaultRifleNuclearPlasmaRifle")
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleUziSelected",1,"RLAssaultRifleUzi")
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleBattleRifleSelected",1,"RLAssaultRifleBattleRifle")
// Burst Cannon
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonChaingunSelected",1,"RLBurstCannonChaingun")
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonPlasmaRifleSelected",1,"RLBurstCannonPlasmaRifle")
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonLaserRifleSelected",1,"RLBurstCannonLaserRifle")
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonMinigunSelected",1,"RLBurstCannonMinigun")
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonNuclearPlasmaRifleSelected",1,"RLBurstCannonNuclearPlasmaRifle")
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonUziSelected",1,"RLBurstCannonUzi")
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonBattleRifleSelected",1,"RLBurstCannonBattleRifle")
// Nano Shrapnel
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelShotgunSelected",1,"RLNanoShrapnelShotgun")
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelCombatShotgunSelected",1,"RLNanoShrapnelCombatShotgun")
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelDoubleShotgunSelected",1,"RLNanoShrapnelDoubleShotgun")
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelSuperShotgunSelected",1,"RLNanoShrapnelSuperShotgun")
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssaultShotgunSelected",1,"RLNanoShrapnelAssaultShotgun")
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelPlasmaShotgunSelected",1,"RLNanoShrapnelPlasmaShotgun")
	TNT1 A 0 A_Jump(256, "AddonWeaponSelection")
	Goto AddonWeaponSelection
	
	
 // When making addon weapons, inherit the modpack and copy this state into it.
 // Then fill it with any checks for weapon tokens you've added.
 // Add the state it will jump to and fill it with whatever assembly combinations
 // and modding it needs, in the same style as the ones that exist below.
 //
 // A weapon will go through all combinations of mods for assemblies and check
 // if any match, and at the end, regardless of whether it does or not, it adds
 // one mod of the specified type to the weapon.
 //
 // The Confirm item for an assembly will be given if it matches up to a combination
 // of mods exactly, in addition to the mod being applied.
 
  AddonWeaponSelection:
//	TNT1 A 0 A_JumpIfInventory("RLAddonWeaponSelected",1,"RLAddonWeapon") // Like dis
	TNT1 A 0 A_Jump(256, "UnableToMod")
	Goto UnableToMod
	
  UnableToMod:
	TNT1 A 0 A_Print("This weapon is unable to support this mod pack.", 4)
    Fail
/*  RLCombatKnife:
  RLCombatKnifeModding:
    TNT1 A 0 A_JumpIfInventory("RLCombatKnifeModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLCombatKnifeModLimit",1)
    TNT1 A 0 A_GiveInventory("RLCombatKnifeBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop*/
  RLChainsaw:
  RLDoubleChainsawAssembly:
	TNT1 A 0 A_JumpIfInventory("RLChainsawBulkMod",1,"RLRipperAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawAgilityMod",1,"RLRipperAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawTechnicalMod",1,"RLRipperAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawPowerMod",3,"RLRipperAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawPowerMod",2,1)
    Goto RLRipperAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLDoubleChainsawConfirm", 1) // Double Chainsaw
    TNT1 A 0 A_GiveInventory("RLDoubleChainsawAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvDouble Chainsaw?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLChainsawModding
  RLRipperAssembly:
	TNT1 A 0 A_JumpIfInventory("RLChainsawBulkMod",1,"RLChainsawModding")
	TNT1 A 0 A_JumpIfInventory("RLChainsawAgilityMod",1,"RLChainsawModding")
	TNT1 A 0 A_JumpIfInventory("RLChainsawPowerMod",3,"RLChainsawModding")
	TNT1 A 0 A_JumpIfInventory("RLChainsawPowerMod",2,1)
    Goto RLChainsawModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLChainsawTechnicalMod",1,1)
    Goto RLChainsawModding
    TNT1 A 0 A_GiveInventory("RLRipperConfirm", 1) // Ripper
    TNT1 A 0 A_GiveInventory("RLRipperAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvRipper?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLChainsawModding
  RLChainsawModding:
    TNT1 A 0 A_JumpIfInventory("RLChainsawModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLChainsawModLimit",1)
    TNT1 A 0 A_GiveInventory("RLChainsawBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPistol:
  RLPistolHighPower:
	TNT1 A 0 A_JumpIfInventory("RLPistolFirestormMod",1,"RLPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolNanoMod",1,"RLPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolSniperMod",1,"RLPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolBulkMod",1,"RLPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolAgilityMod",1,"RLPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolTechnicalMod",1,"RLPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolPowerMod",2,"RLPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolPowerMod",1,1)
    Goto RLPistolStormPistol // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerPistolConfirm", 1) // High Power Pistol
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPistolModding
  RLPistolStormPistol:
	TNT1 A 0 A_JumpIfInventory("RLPistolFirestormMod",1,"RLPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolNanoMod",1,"RLPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolSniperMod",1,"RLPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolPowerMod",1,"RLPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolAgilityMod",1,"RLPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolBulkMod",2,"RLPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolTechnicalMod",2,"RLPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolBulkMod",1,1)
    Goto RLPistolNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPistolTechnicalMod",1,1)
    Goto RLPistolNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLStormPistolConfirm", 1) // Storm Pistol
    TNT1 A 0 A_GiveInventory("RLStormPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the Storm Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPistolModding
  RLPistolNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLPistolFirestormMod",1,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolNanoMod",2,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolSniperMod",1,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolPowerMod",1,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolAgilityMod",1,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolTechnicalMod",1,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolBulkMod",3,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolNanoMod",1,1)
    Goto RLPistolModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPistolBulkMod",2,1)
    Goto RLPistolModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoPistolConfirm", 1) // Nano Pistol
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPistolModding
  RLPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLShotgun:
  RLHeavyShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLShotgunFirestormMod",1,"RLAutoshotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunNanoMod",1,"RLAutoshotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunSniperMod",1,"RLAutoshotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunPowerMod",1,"RLAutoshotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunAgilityMod",1,"RLAutoshotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunTechnicalMod",1,"RLAutoshotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunBulkMod",2,"RLAutoshotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunBulkMod",1,1)
    Goto RLAutoshotgunAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunConfirm", 1) // Heavy Shotgun
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHeavy Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLShotgunModding
  RLAutoshotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLShotgunNanoMod",1,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunSniperMod",1,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunPowerMod",1,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunAgilityMod",1,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunTechnicalMod",1,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunFirestormMod",2,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunBulkMod",2,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunBulkMod",1,1)
    Goto RLShotgunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLShotgunFirestormMod",1,1)
    Goto RLShotgunModding
    TNT1 A 0 A_GiveInventory("RLAutoshotgunConfirm", 1) // Autoshotgun
    TNT1 A 0 A_GiveInventory("RLAutoShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvAutoshotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLShotgunModding
  RLShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLCombatShotgun:
  RLHeavyCombatShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunFirestormMod",1,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunNanoMod",1,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunSniperMod",1,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunPowerMod",1,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunAgilityMod",1,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunTechnicalMod",1,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunBulkMod",2,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunBulkMod",1,1)
    Goto RLConquerorShotgunAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHeavyCombatShotgunConfirm", 1) // Heavy Shotgun
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHeavy Combat Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLCombatShotgunModding
  RLConquerorShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunNanoMod",1,"RLCombatShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunSniperMod",1,"RLCombatShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunTechnicalMod",1,"RLCombatShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunFirestormMod",2,"RLCombatShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunPowerMod",2,"RLCombatShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunAgilityMod",2,"RLCombatShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunBulkMod",1,"RLCombatShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunFirestormMod",1,1)
    Goto RLCombatShotgunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunAgilityMod",1,1)
    Goto RLCombatShotgunModding
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunPowerMod",1,1)
    Goto RLCombatShotgunModding
    TNT1 A 0 A_GiveInventory("RLConquerorShotgunConfirm", 1) // Conqueror Shotgun
    TNT1 A 0 A_GiveInventory("RLConquerorShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvConqueror Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLCombatShotgunModding
  RLCombatShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLCombatShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLCombatShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLCombatShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLDoubleShotgun:
  RLHeavyDoubleShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunFirestormMod",1,"RLAutoDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunNanoMod",1,"RLAutoDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunSniperMod",1,"RLAutoDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunPowerMod",1,"RLAutoDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunAgilityMod",1,"RLAutoDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunTechnicalMod",1,"RLAutoDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunBulkMod",2,"RLAutoDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunBulkMod",1,1)
    Goto RLAutoDoubleShotgunAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHeavyDoubleShotgunConfirm", 1) // Heavy Double Shotgun
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHeavy Double Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLDoubleShotgunModding
  RLAutoDoubleShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunNanoMod",1,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunSniperMod",1,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunPowerMod",1,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunAgilityMod",1,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunTechnicalMod",1,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunFirestormMod",2,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunBulkMod",2,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunBulkMod",1,1)
    Goto RLDoubleShotgunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunFirestormMod",1,1)
    Goto RLDoubleShotgunModding
    TNT1 A 0 A_GiveInventory("RLAutoDoubleShotgunConfirm", 1) // Auto Double Shotgun
    TNT1 A 0 A_GiveInventory("RLAutoShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvAuto Double Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLDoubleShotgunModding
  RLDoubleShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLDoubleShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLDoubleShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLChaingun:
  RLGatlingGunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLChaingunFirestormMod",1,"RLChaingunHighPower")
	TNT1 A 0 A_JumpIfInventory("RLChaingunNanoMod",1,"RLChaingunHighPower")
	TNT1 A 0 A_JumpIfInventory("RLChaingunSniperMod",1,"RLChaingunHighPower")
	TNT1 A 0 A_JumpIfInventory("RLChaingunPowerMod",1,"RLChaingunHighPower")
	TNT1 A 0 A_JumpIfInventory("RLChaingunAgilityMod",1,"RLChaingunHighPower")
	TNT1 A 0 A_JumpIfInventory("RLChaingunTechnicalMod",1,"RLChaingunHighPower")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",2,"RLChaingunHighPower")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",1,1)
    Goto RLChaingunHighPower // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLGatlingGunConfirm", 1) // Gatling Gun
    TNT1 A 0 A_GiveInventory("RLGatlingGunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvGatling Gun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLChaingunModding
  RLChaingunHighPower:
	TNT1 A 0 A_JumpIfInventory("RLChaingunFirestormMod",1,"RLBulletstormChaingunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChaingunNanoMod",1,"RLBulletstormChaingunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChaingunSniperMod",1,"RLBulletstormChaingunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",1,"RLBulletstormChaingunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChaingunAgilityMod",1,"RLBulletstormChaingunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChaingunTechnicalMod",1,"RLBulletstormChaingunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChaingunPowerMod",2,"RLBulletstormChaingunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChaingunPowerMod",1,1)
    Goto RLBulletstormChaingunAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerChaingunConfirm", 1) // High Power Chaingun
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Chaingun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLChaingunModding
  RLBulletstormChaingunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLChaingunFirestormMod",1,"RLChaingunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLChaingunNanoMod",1,"RLChaingunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLChaingunSniperMod",1,"RLChaingunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLChaingunPowerMod",1,"RLChaingunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLChaingunAgilityMod",1,"RLChaingunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLChaingunTechnicalMod",1,"RLChaingunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",3,"RLChaingunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",2,1)
    Goto RLChaingunBurstCannon // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLBulletstormChaingunConfirm", 1) // Bulletstorm Chaingun
    TNT1 A 0 A_GiveInventory("RLBulletstormChaingunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvBulletstorm Chaingun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLChaingunModding
  RLChaingunBurstCannon:
	TNT1 A 0 A_JumpIfInventory("RLChaingunFirestormMod",1,"RLChaingunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunNanoMod",1,"RLChaingunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunSniperMod",1,"RLChaingunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunAgilityMod",1,"RLChaingunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunTechnicalMod",1,"RLChaingunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunPowerMod",2,"RLChaingunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",2,"RLChaingunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",1,1)
    Goto RLChaingunNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLChaingunPowerMod",1,1)
    Goto RLChaingunNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLBurstCannonChaingunConfirm", 1) // Burst Cannon Chaingun
    TNT1 A 0 A_GiveInventory("RLBurstCannonAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvBurst Chaingun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLChaingunModding
  RLChaingunNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLChaingunFirestormMod",1,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunNanoMod",2,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunSniperMod",1,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunPowerMod",1,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunAgilityMod",1,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunTechnicalMod",1,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",3,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunNanoMod",1,1)
    Goto RLChaingunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",2,1)
    Goto RLChaingunModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoChaingunConfirm", 1) // Nano Chaingun
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Chaingun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLChaingunModding
  RLChaingunModding:
    TNT1 A 0 A_JumpIfInventory("RLChaingunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLChaingunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLChaingunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLBattleRifle:
  RLBattleRifleHighPower:
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",1,"RLBulletstormRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleNanoMod",1,"RLBulletstormRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleSniperMod",1,"RLBulletstormRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",1,"RLBulletstormRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleAgilityMod",1,"RLBulletstormRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleTechnicalMod",1,"RLBulletstormRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",2,"RLBulletstormRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",1,1)
    Goto RLBulletstormRifleAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerBattleRifleConfirm", 1) // High Power Battle Rifle
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Battle Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLBattleRifleModding
  RLBulletstormRifleAssembly:
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",1,"RLBattleRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleNanoMod",1,"RLBattleRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleSniperMod",1,"RLBattleRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",1,"RLBattleRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleAgilityMod",1,"RLBattleRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleTechnicalMod",1,"RLBattleRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",3,"RLBattleRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",2,1)
    Goto RLBattleRifleBurstCannon // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLBulletstormRifleConfirm", 1) // Bulletstorm Rifle
    TNT1 A 0 A_GiveInventory("RLBulletstormChaingunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvBulletstorm Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLBattleRifleModding
  RLBattleRifleBurstCannon:
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",1,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleNanoMod",1,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleSniperMod",1,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleAgilityMod",1,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleTechnicalMod",1,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",2,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",2,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",1,1)
    Goto RLSuperMachinegunAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",1,1)
    Goto RLSuperMachinegunAssembly
    TNT1 A 0 A_GiveInventory("RLBurstCannonBattleRifleConfirm", 1) // Burst Cannon Battle Rifle
    TNT1 A 0 A_GiveInventory("RLBurstCannonAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvBurst-Fire Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLBattleRifleModding
  RLSuperMachinegunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleNanoMod",1,"RLBattleRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleSniperMod",1,"RLBattleRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleAgilityMod",1,"RLBattleRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleTechnicalMod",1,"RLBattleRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",1,"RLBattleRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",2,"RLBattleRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",3,"RLBattleRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",1,1)
    Goto RLBattleRifleNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",2,1)
    Goto RLBattleRifleNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLSuperMachinegunConfirm", 1) // Super Machinegun
    TNT1 A 0 A_GiveInventory("RLSuperMachinegunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvSuper Machinegun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLBattleRifleModding
  RLBattleRifleNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",1,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleNanoMod",2,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleSniperMod",1,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",1,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleAgilityMod",1,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleTechnicalMod",1,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",3,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleNanoMod",1,1)
    Goto RLBattleRifleModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",2,1)
    Goto RLBattleRifleModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoBattleRifleConfirm", 1) // Nano Battle Rifle
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Battle Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLBattleRifleModding
  RLBattleRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLBattleRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBattleRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBattleRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLRocketLauncher:
  RLRocketLauncherTacticalRocketLauncher:
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherFirestormMod",1,"RLRocketLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherNanoMod",1,"RLRocketLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherSniperMod",1,"RLRocketLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherPowerMod",1,"RLRocketLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherAgilityMod",1,"RLRocketLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherTechnicalMod",1,"RLRocketLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherBulkMod",3,"RLRocketLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherBulkMod",2,1)
    Goto RLRocketLauncherNanoManufactureAmmo // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLTacticalRocketLauncherConfirm", 1) // Tactical Rocket Launcher
    TNT1 A 0 A_GiveInventory("RLTacticalRocketLauncherAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvTactical Rocket Launcher?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLRocketLauncherModding
  RLRocketLauncherNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherFirestormMod",1,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherNanoMod",2,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherSniperMod",1,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherPowerMod",1,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherAgilityMod",1,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherTechnicalMod",1,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherBulkMod",3,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherNanoMod",1,1)
    Goto RLRocketLauncherModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherBulkMod",2,1)
    Goto RLRocketLauncherModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoRocketLauncherConfirm", 1) // Nano Rocket Launcher
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Rocket Launcher?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLRocketLauncherModding
  RLRocketLauncherModding:
    TNT1 A 0 A_JumpIfInventory("RLRocketLauncherModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLRocketLauncherModLimit",1)
    TNT1 A 0 A_GiveInventory("RLRocketLauncherBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaRifle:
  RLPlasmaRifleHighPower:
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleFirestormMod",1,"RLPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleNanoMod",1,"RLPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleSniperMod",1,"RLPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleBulkMod",1,"RLPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleAgilityMod",1,"RLPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleTechnicalMod",1,"RLPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRiflePowerMod",2,"RLPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRiflePowerMod",1,1)
    Goto RLPlasmaRifleMkIIAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerPlasmaRifleConfirm", 1) // High Power Plasma Rifle
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Plasma Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPlasmaRifleModding
  RLPlasmaRifleMkIIAssembly:
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleFirestormMod",1,"RLPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleNanoMod",1,"RLPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleSniperMod",1,"RLPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleAgilityMod",1,"RLPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRiflePowerMod",1,"RLPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleTechnicalMod",2,"RLPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleBulkMod",2,"RLPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleBulkMod",1,1)
    Goto RLPlasmaRifleBurstCannon // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleTechnicalMod",1,1)
    Goto RLPlasmaRifleBurstCannon
    TNT1 A 0 A_GiveInventory("RLPlasmaRifleMkIIConfirm", 1) // Plasma Rifle Mk.II
    TNT1 A 0 A_GiveInventory("RLPlasmaRifleMkIIAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasma Rifle Mk.II?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPlasmaRifleModding
  RLPlasmaRifleBurstCannon:
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleFirestormMod",1,"RLPlasmaRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleNanoMod",1,"RLPlasmaRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleSniperMod",1,"RLPlasmaRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleAgilityMod",1,"RLPlasmaRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleTechnicalMod",1,"RLPlasmaRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRiflePowerMod",2,"RLPlasmaRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleBulkMod",2,"RLPlasmaRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleBulkMod",1,1)
    Goto RLPlasmaRifleNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRiflePowerMod",1,1)
    Goto RLPlasmaRifleNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLBurstCannonPlasmaRifleConfirm", 1) // Burst Cannon Plasma Rifle
    TNT1 A 0 A_GiveInventory("RLBurstCannonAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvBurst Plasma Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPlasmaRifleModding
  RLPlasmaRifleNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleFirestormMod",1,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleNanoMod",2,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleSniperMod",1,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRiflePowerMod",1,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleAgilityMod",1,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleTechnicalMod",1,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleBulkMod",3,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleNanoMod",1,1)
    Goto RLPlasmaRifleModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleBulkMod",2,1)
    Goto RLPlasmaRifleModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoPlasmaRifleConfirm", 1) // Nano Plasma Rifle
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Plasma Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPlasmaRifleModding
  RLPlasmaRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLBFG9000:
  RLBFG9000HighPower:
	TNT1 A 0 A_JumpIfInventory("RLBFG9000FirestormMod",1,"RLBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000NanoMod",1,"RLBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000SniperMod",1,"RLBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000BulkMod",1,"RLBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000AgilityMod",1,"RLBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000TechnicalMod",1,"RLBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000PowerMod",2,"RLBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000PowerMod",1,1)
    Goto RLBFG9000BiggestFuckingGun // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerBFG9000Confirm", 1) // High Power BFG9000
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power BFG9000?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLBFG9000Modding
  RLBFG9000BiggestFuckingGun:
	TNT1 A 0 A_JumpIfInventory("RLBFG9000NanoMod",1,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000SniperMod",1,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000AgilityMod",1,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000TechnicalMod",1,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000PowerMod",1,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000BulkMod",2,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000FirestormMod",2,1)
    Goto RLBFG9000Modding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBFG9000BulkMod",1,1)
    Goto RLBFG9000Modding
    TNT1 A 0 A_GiveInventory("RLBiggestFuckingGunConfirm", 1) // Biggest Fucking Gun
    TNT1 A 0 A_GiveInventory("RLBiggestFuckingGunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvBiggest Fucking Gun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLBFG9000Modding
  RLBFG9000Modding:
    TNT1 A 0 A_JumpIfInventory("RLBFG9000ModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBFG9000ModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBFG9000BulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
// EXOTICS
  RLBlaster:
  RLBlasterHighPower:
	TNT1 A 0 A_JumpIfInventory("RLBlasterFirestormMod",1,"RLBlasterStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLBlasterNanoMod",1,"RLBlasterStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLBlasterSniperMod",1,"RLBlasterStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLBlasterBulkMod",1,"RLBlasterStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLBlasterAgilityMod",1,"RLBlasterStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLBlasterTechnicalMod",1,"RLBlasterStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLBlasterPowerMod",2,"RLBlasterStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLBlasterPowerMod",1,1)
    Goto RLBlasterStormPistol // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerBlasterConfirm", 1) // High Power Blaster
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Blaster?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLBlasterModding
  RLBlasterStormPistol:
	TNT1 A 0 A_JumpIfInventory("RLBlasterFirestormMod",1,"RLBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBlasterNanoMod",1,"RLBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBlasterSniperMod",1,"RLBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBlasterPowerMod",1,"RLBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBlasterAgilityMod",1,"RLBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBlasterBulkMod",2,"RLBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBlasterTechnicalMod",2,"RLBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBlasterBulkMod",1,1)
    Goto RLBlasterNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBlasterTechnicalMod",1,1)
    Goto RLBlasterNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLStormBlasterConfirm", 1) // Storm Blaster
    TNT1 A 0 A_GiveInventory("RLStormPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvStorm Blaster?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLBlasterModding
  RLBlasterNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLBlasterFirestormMod",1,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterNanoMod",2,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterSniperMod",1,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterPowerMod",1,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterAgilityMod",1,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterBulkMod",3,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterNanoMod",1,1)
    Goto RLBlasterModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBlasterBulkMod",2,1)
    Goto RLBlasterModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoBlasterConfirm", 1) // Nano Blaster
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Blaster?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLBlasterModding
  RLBlasterModding:
    TNT1 A 0 A_JumpIfInventory("RLBlasterModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBlasterModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBlasterBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLCombatPistol:
  RLCombatPistolHighPower:
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolFirestormMod",1,"RLCombatPistolStormCombatPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolNanoMod",1,"RLCombatPistolStormCombatPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolSniperMod",1,"RLCombatPistolStormCombatPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolBulkMod",1,"RLCombatPistolStormCombatPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolAgilityMod",1,"RLCombatPistolStormCombatPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolTechnicalMod",1,"RLCombatPistolStormCombatPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolPowerMod",2,"RLCombatPistolStormCombatPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolPowerMod",1,1)
    Goto RLCombatPistolStormCombatPistol // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerCombatPistolConfirm", 1) // High Power Combat Pistol
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Combat Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLCombatPistolModding
  RLCombatPistolStormCombatPistol:
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolFirestormMod",1,"RLCombatPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolNanoMod",1,"RLCombatPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolSniperMod",1,"RLCombatPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolPowerMod",1,"RLCombatPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolAgilityMod",1,"RLCombatPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolBulkMod",2,"RLCombatPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolTechnicalMod",2,"RLCombatPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolBulkMod",1,1)
    Goto RLCombatPistolNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolTechnicalMod",1,1)
    Goto RLCombatPistolNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLStormCombatPistolConfirm", 1) // Storm Combat Pistol
    TNT1 A 0 A_GiveInventory("RLStormPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvStorm Combat Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLCombatPistolModding
  RLCombatPistolNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolFirestormMod",1,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolNanoMod",2,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolSniperMod",1,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolPowerMod",1,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolAgilityMod",1,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolTechnicalMod",1,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolBulkMod",3,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolNanoMod",1,1)
    Goto RLCombatPistolModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolBulkMod",2,1)
    Goto RLCombatPistolModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoCombatPistolConfirm", 1) // Nano Combat Pistol
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Combat Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLCombatPistolModding
  RLCombatPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLCombatPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLCombatPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLCombatPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLMarksmanPistol:
  RLMarksmanPistolHighPower:
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolFirestormMod",1,"RLMarksmanPistolStormMarksmanPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolNanoMod",1,"RLMarksmanPistolStormMarksmanPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolSniperMod",1,"RLMarksmanPistolStormMarksmanPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolBulkMod",1,"RLMarksmanPistolStormMarksmanPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolAgilityMod",1,"RLMarksmanPistolStormMarksmanPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolTechnicalMod",1,"RLMarksmanPistolStormMarksmanPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolPowerMod",2,"RLMarksmanPistolStormMarksmanPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolPowerMod",1,1)
    Goto RLMarksmanPistolStormMarksmanPistol // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerMarksmanPistolConfirm", 1) // High Power Marksman Pistol
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Marksman Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMarksmanPistolModding
  RLMarksmanPistolStormMarksmanPistol:
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolFirestormMod",1,"RLMarksmanPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolNanoMod",1,"RLMarksmanPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolSniperMod",1,"RLMarksmanPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolPowerMod",1,"RLMarksmanPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolAgilityMod",1,"RLMarksmanPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolBulkMod",2,"RLMarksmanPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolTechnicalMod",2,"RLMarksmanPistolNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolBulkMod",1,1)
    Goto RLMarksmanPistolNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolTechnicalMod",1,1)
    Goto RLMarksmanPistolNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLStormMarksmanPistolConfirm", 1) // Storm Marksman Pistol
    TNT1 A 0 A_GiveInventory("RLStormPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvStorm Marksman Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMarksmanPistolModding
  RLMarksmanPistolNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolFirestormMod",1,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolNanoMod",2,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolSniperMod",1,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolPowerMod",1,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolAgilityMod",1,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolTechnicalMod",1,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolBulkMod",3,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolNanoMod",1,1)
    Goto RLMarksmanPistolModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolBulkMod",2,1)
    Goto RLMarksmanPistolModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoMarksmanPistolConfirm", 1) // Nano Marksman Pistol
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Marksman Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMarksmanPistolModding
  RLMarksmanPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMarksmanPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMarksmanPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHandcannon:
  RLHandcannonHighPower:
	TNT1 A 0 A_JumpIfInventory("RLHandcannonFirestormMod",1,"RLHandcannonStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonNanoMod",1,"RLHandcannonStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonSniperMod",1,"RLHandcannonStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonBulkMod",1,"RLHandcannonStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonAgilityMod",1,"RLHandcannonStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonTechnicalMod",1,"RLHandcannonStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonPowerMod",2,"RLHandcannonStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonPowerMod",1,1)
    Goto RLHandcannonStormPistol // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerHandcannonConfirm", 1) // High Power Desert Eagle
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Handcannon?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLHandcannonModding
  RLHandcannonStormPistol:
	TNT1 A 0 A_JumpIfInventory("RLHandcannonFirestormMod",1,"RLHandcannonNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonNanoMod",1,"RLHandcannonNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonSniperMod",1,"RLHandcannonNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonPowerMod",1,"RLHandcannonNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonAgilityMod",1,"RLHandcannonNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonBulkMod",2,"RLHandcannonNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonTechnicalMod",2,"RLHandcannonNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonBulkMod",1,1)
    Goto RLHandcannonNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLHandcannonTechnicalMod",1,1)
    Goto RLHandcannonNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLStormHandcannonConfirm", 1) // Storm Handcannon
    TNT1 A 0 A_GiveInventory("RLStormPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvStorm Handcannon?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLHandcannonModding
  RLHandcannonNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLHandcannonFirestormMod",1,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonNanoMod",2,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonSniperMod",1,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonPowerMod",1,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonAgilityMod",1,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonTechnicalMod",1,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonBulkMod",3,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonNanoMod",1,1)
    Goto RLHandcannonModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLHandcannonBulkMod",2,1)
    Goto RLHandcannonModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoHandcannonConfirm", 1) // Nano Desert Eagle
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Handcannon?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLHandcannonModding
  RLHandcannonModding:
    TNT1 A 0 A_JumpIfInventory("RLHandcannonModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHandcannonModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHandcannonBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLUzi:
  RLUziHighPower:
	TNT1 A 0 A_JumpIfInventory("RLUziFirestormMod",1,"RLUziStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziNanoMod",1,"RLUziStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziSniperMod",1,"RLUziStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",1,"RLUziStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziAgilityMod",1,"RLUziStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziTechnicalMod",1,"RLUziStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziPowerMod",2,"RLUziStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziPowerMod",1,1)
    Goto RLUziStormPistol // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerUziConfirm", 1) // High Power Uzi
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Uzi?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLUziModding
  RLUziStormPistol:
	TNT1 A 0 A_JumpIfInventory("RLUziFirestormMod",1,"RLUziBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLUziNanoMod",1,"RLUziBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLUziSniperMod",1,"RLUziBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLUziPowerMod",1,"RLUziBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLUziAgilityMod",1,"RLUziBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",2,"RLUziBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLUziTechnicalMod",2,"RLUziBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",1,1)
    Goto RLUziBurstCannon // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLUziTechnicalMod",1,1)
    Goto RLUziBurstCannon
    TNT1 A 0 A_GiveInventory("RLStormUziConfirm", 1) // Dual Uzis
    TNT1 A 0 A_GiveInventory("RLStormPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvDual Uzis?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLUziModding
  RLUziBurstCannon:
	TNT1 A 0 A_JumpIfInventory("RLUziFirestormMod",1,"RLUziNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziNanoMod",1,"RLUziNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziSniperMod",1,"RLUziNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziAgilityMod",1,"RLUziNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziTechnicalMod",1,"RLUziNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziPowerMod",2,"RLUziNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",2,"RLUziNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",1,1)
    Goto RLUziNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLUziPowerMod",1,1)
    Goto RLUziNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLBurstCannonUziConfirm", 1) // Burst Cannon Uzi
    TNT1 A 0 A_GiveInventory("RLBurstCannonAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvBurst Uzi?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLUziModding
  RLUziNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLUziFirestormMod",1,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziNanoMod",2,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziSniperMod",1,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziPowerMod",1,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziAgilityMod",1,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziTechnicalMod",1,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",3,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziNanoMod",1,1)
    Goto RLUziModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",2,1)
    Goto RLUziModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoUziConfirm", 1) // Nano Uzi
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Uzi?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLUziModding
  RLUziModding:
    TNT1 A 0 A_JumpIfInventory("RLUziModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLUziModLimit",1)
    TNT1 A 0 A_GiveInventory("RLUziBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLSuperShotgun:
  RLHeavySuperShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunFirestormMod",1,"RLMegatonShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunNanoMod",1,"RLMegatonShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunSniperMod",1,"RLMegatonShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunPowerMod",1,"RLMegatonShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunAgilityMod",1,"RLMegatonShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunTechnicalMod",1,"RLMegatonShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunBulkMod",2,"RLMegatonShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunBulkMod",1,1)
    Goto RLMegatonShotgunAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHeavySuperShotgunConfirm", 1) // Heavy Super Shotgun
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHeavy Super Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLSuperShotgunModding
  RLMegatonShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunNanoMod",1,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunSniperMod",1,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunPowerMod",1,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunAgilityMod",1,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunTechnicalMod",1,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunFirestormMod",2,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunBulkMod",3,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunBulkMod",2,1)
    Goto RLSuperShotgunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunFirestormMod",1,1)
    Goto RLSuperShotgunModding
    TNT1 A 0 A_GiveInventory("RLMegatonShotgunConfirm", 1) // Megaton Shotgun
    TNT1 A 0 A_GiveInventory("RLMegatonShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvMegaton Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLSuperShotgunModding
  RLSuperShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLSuperShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLSuperShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLSuperShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLAssaultShotgun:
  RLHeavyAssaultShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunFirestormMod",1,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunNanoMod",1,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunSniperMod",1,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunPowerMod",1,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunAgilityMod",1,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunTechnicalMod",1,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunBulkMod",2,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunBulkMod",1,1)
    Goto RLAssaultShotgunModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHeavyAssaultShotgunConfirm", 1) // Heavy Assault Shotgun
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHeavy Assault Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLAssaultShotgunModding
  RLAssaultShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAssaultShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAssaultShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLTristarBlaster:
  RLTristarBlasterHighPower:
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterFirestormMod",1,"RLTristarBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterNanoMod",1,"RLTristarBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterSniperMod",1,"RLTristarBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterBulkMod",1,"RLTristarBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterAgilityMod",1,"RLTristarBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterTechnicalMod",1,"RLTristarBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterPowerMod",2,"RLTristarBlasterNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterPowerMod",1,1)
    Goto RLTristarBlasterNanoManufactureAmmo // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerTristarBlasterConfirm", 1) // High Power Tristar Blaster
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Tristar Blaster?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLTristarBlasterModding
  RLTristarBlasterNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterFirestormMod",1,"RLTristarBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterNanoMod",2,"RLTristarBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterSniperMod",1,"RLTristarBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterPowerMod",1,"RLTristarBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterAgilityMod",1,"RLTristarBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterTechnicalMod",1,"RLTristarBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterBulkMod",3,"RLTristarBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterNanoMod",1,1)
    Goto RLTristarBlasterModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterBulkMod",2,1)
    Goto RLTristarBlasterModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoTristarBlasterConfirm", 1) // Nano Tristar Blaster
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Tristar Blaster?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLTristarBlasterModding
  RLTristarBlasterModding:
    TNT1 A 0 A_JumpIfInventory("RLTristarBlasterModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLTristarBlasterModLimit",1)
    TNT1 A 0 A_GiveInventory("RLTristarBlasterBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaShotgun:
  RLHeavyPlasmaShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunFirestormMod",1,"RLPlasmaShotgunMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunNanoMod",1,"RLPlasmaShotgunMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunSniperMod",1,"RLPlasmaShotgunMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunPowerMod",1,"RLPlasmaShotgunMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunAgilityMod",1,"RLPlasmaShotgunMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunTechnicalMod",1,"RLPlasmaShotgunMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunBulkMod",2,"RLPlasmaShotgunMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunBulkMod",1,1)
    Goto RLPlasmaShotgunMkIIAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHeavyPlasmaShotgunConfirm", 1) // Heavy Plasma Shotgun
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHeavy Plasma Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPlasmaShotgunModding
  RLPlasmaShotgunMkIIAssembly:
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunFirestormMod",1,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunNanoMod",1,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunSniperMod",1,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunPowerMod",1,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunAgilityMod",1,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunTechnicalMod",2,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunBulkMod",2,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunBulkMod",1,1)
    Goto RLPlasmaShotgunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunTechnicalMod",1,1)
    Goto RLPlasmaShotgunModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPlasmaShotgunMkIIConfirm", 1) // Plasma Shotgun Mk.II
    TNT1 A 0 A_GiveInventory("RLPlasmaRifleMkIIAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasma Shotgun Mk. II?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPlasmaShotgunModding
  RLPlasmaShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLMissileLauncher:
  RLClusterBombLauncherAssembly:
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherNanoMod",1,"RLMissileLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherSniperMod",1,"RLMissileLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherPowerMod",1,"RLMissileLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherTechnicalMod",1,"RLMissileLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherBulkMod",1,"RLMissileLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherAgilityMod",2,"RLMissileLauncherNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherAgilityMod",1,1)
    Goto RLMissileLauncherNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherFirestormMod",2,1)
    Goto RLMissileLauncherNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLClusterBombLauncherConfirm", 1) // Cluster Bomb Launcher
    TNT1 A 0 A_GiveInventory("RLClusterBombLauncherAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvCluster Bomb Launcher?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMissileLauncherModding
  RLMissileLauncherNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherFirestormMod",1,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherNanoMod",2,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherSniperMod",1,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherPowerMod",1,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherAgilityMod",1,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherTechnicalMod",1,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherBulkMod",3,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherNanoMod",1,1)
    Goto RLMissileLauncherModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherBulkMod",2,1)
    Goto RLMissileLauncherModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoMissileLauncherConfirm", 1) // Nano Missile Launcher
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Missile Launcher?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMissileLauncherModding
  RLMissileLauncherModding:
    TNT1 A 0 A_JumpIfInventory("RLMissileLauncherModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMissileLauncherModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMissileLauncherBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNapalmLauncher:
  RLNapalmLauncherNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherFirestormMod",1,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherNanoMod",2,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherSniperMod",1,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherPowerMod",1,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherAgilityMod",1,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherTechnicalMod",1,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherBulkMod",3,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherNanoMod",1,1)
    Goto RLNapalmLauncherModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherBulkMod",2,1)
    Goto RLNapalmLauncherModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoNapalmLauncherConfirm", 1) // Nano Napalm Launcher
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Napalm Launcher?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLNapalmLauncherModding
  RLNapalmLauncherModding:
    TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNapalmLauncherModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNapalmLauncherBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLMinigun:
  RLMinigunHighPower:
	TNT1 A 0 A_JumpIfInventory("RLMinigunFirestormMod",1,"RLMinigunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLMinigunNanoMod",1,"RLMinigunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLMinigunSniperMod",1,"RLMinigunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",1,"RLMinigunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLMinigunAgilityMod",1,"RLMinigunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLMinigunTechnicalMod",1,"RLMinigunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLMinigunPowerMod",2,"RLMinigunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLMinigunPowerMod",1,1)
    Goto RLMinigunBurstCannon // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerMinigunConfirm", 1) // High Power Minigun
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Minigun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMinigunModding
  RLMinigunBurstCannon:
	TNT1 A 0 A_JumpIfInventory("RLMinigunFirestormMod",1,"RLMinigunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunNanoMod",1,"RLMinigunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunSniperMod",1,"RLMinigunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunAgilityMod",1,"RLMinigunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunTechnicalMod",1,"RLMinigunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunPowerMod",2,"RLMinigunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",2,"RLMinigunNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",1,1)
    Goto RLMinigunNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMinigunPowerMod",1,1)
    Goto RLMinigunNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLBurstCannonMinigunConfirm", 1) // Burst Cannon Minigun
    TNT1 A 0 A_GiveInventory("RLBurstCannonAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvBurst Minigun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMinigunModding
  RLMinigunNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLMinigunFirestormMod",1,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunNanoMod",2,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunSniperMod",1,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunPowerMod",1,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunAgilityMod",1,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunTechnicalMod",1,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",3,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunNanoMod",1,1)
    Goto RLMinigunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",2,1)
    Goto RLMinigunModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoMinigunConfirm", 1) // Nano Minigun
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Minigun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMinigunModding
  RLMinigunModding:
    TNT1 A 0 A_JumpIfInventory("RLMinigunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMinigunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMinigunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLLaserRifle:
  RLLaserRifleHighPower:
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleFirestormMod",1,"RLLaserShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleNanoMod",1,"RLLaserShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleSniperMod",1,"RLLaserShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleBulkMod",1,"RLLaserShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleAgilityMod",1,"RLLaserShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleTechnicalMod",1,"RLLaserShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRiflePowerMod",2,"RLLaserShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRiflePowerMod",1,1)
    Goto RLLaserShotgunAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerLaserRifleConfirm", 1) // High Power Laser Rifle
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Laser Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLLaserRifleModding
  RLLaserShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleFirestormMod",1,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleNanoMod",1,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleTechnicalMod",1,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRiflePowerMod",1,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleAgilityMod",1,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleSniperMod",2,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleBulkMod",2,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleBulkMod",1,1)
    Goto RLLaserRifleBurstCannon // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleSniperMod",1,1)
    Goto RLLaserRifleBurstCannon // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLLaserShotgunConfirm", 1) // Laser Shotgun
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvLaser Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLLaserRifleModding
  RLLaserRifleBurstCannon:
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleFirestormMod",1,"RLLaserRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleNanoMod",1,"RLLaserRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleSniperMod",1,"RLLaserRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleAgilityMod",1,"RLLaserRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleTechnicalMod",1,"RLLaserRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLLaserRiflePowerMod",2,"RLLaserRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleBulkMod",2,"RLLaserRifleNanoManufactureAmmo")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleBulkMod",1,1)
    Goto RLLaserRifleNanoManufactureAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLLaserRiflePowerMod",1,1)
    Goto RLLaserRifleNanoManufactureAmmo
    TNT1 A 0 A_GiveInventory("RLBurstCannonLaserRifleConfirm", 1) // Burst Cannon Laser Rifle
    TNT1 A 0 A_GiveInventory("RLBurstCannonAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvBurst Laser Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLLaserRifleModding
  RLLaserRifleNanoManufactureAmmo:
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleFirestormMod",1,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleNanoMod",2,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleSniperMod",1,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRiflePowerMod",1,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleAgilityMod",1,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleTechnicalMod",1,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleBulkMod",3,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleNanoMod",1,1)
    Goto RLLaserRifleModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleBulkMod",2,1)
    Goto RLLaserRifleModding
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoLaserRifleConfirm", 1) // Nano Laser Rifle
    TNT1 A 0 A_GiveInventory("RLNanoManufactureAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanomachic Laser Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLLaserRifleModding
  RLLaserRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLLaserRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLLaserRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLLaserRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNuclearPlasmaPistol:
  RLNuclearPlasmaPistolHighPower:
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolFirestormMod",1,"RLNuclearPlasmaPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolSniperMod",1,"RLNuclearPlasmaPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolBulkMod",1,"RLNuclearPlasmaPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolAgilityMod",1,"RLNuclearPlasmaPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolTechnicalMod",1,"RLNuclearPlasmaPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolPowerMod",2,"RLNuclearPlasmaPistolStormPistol")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolPowerMod",1,1)
    Goto RLNuclearPlasmaPistolStormPistol // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearPlasmaPistolConfirm", 1) // High Power Nuclear Plasma Pistol
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Nuclear Plasma Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLNuclearPlasmaPistolModding
  RLNuclearPlasmaPistolStormPistol:
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolFirestormMod",1,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolSniperMod",1,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolPowerMod",1,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolAgilityMod",1,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolBulkMod",2,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolTechnicalMod",2,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolBulkMod",1,1)
    Goto RLNuclearPlasmaPistolModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolTechnicalMod",1,1)
    Goto RLNuclearPlasmaPistolModding
    TNT1 A 0 A_GiveInventory("RLStormNuclearPlasmaPistolConfirm", 1) // Storm Nuclear Plasma Pistol
    TNT1 A 0 A_GiveInventory("RLStormPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvStorm Nuclear Plasma Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLNuclearPlasmaPistolModding
  RLNuclearPlasmaPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNuclearPlasmaRifle:
  RLNuclearPlasmaRifleHighPower:
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleFirestormMod",1,"RLNuclearPlasmaShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleSniperMod",1,"RLNuclearPlasmaShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleBulkMod",1,"RLNuclearPlasmaShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleAgilityMod",1,"RLNuclearPlasmaShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRiflePowerMod",2,"RLNuclearPlasmaShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRiflePowerMod",1,1)
    Goto RLNuclearPlasmaShotgunAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearPlasmaRifleConfirm", 1) // High Power Nuclear Plasma Rifle
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Nuclear Plasma Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLNuclearPlasmaRifleModding
  RLNuclearPlasmaShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleFirestormMod",1,"RLNuclearPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleTechnicalMod",1,"RLNuclearPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRiflePowerMod",1,"RLNuclearPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleAgilityMod",1,"RLNuclearPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleSniperMod",2,"RLNuclearPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleBulkMod",2,"RLNuclearPlasmaRifleMkIIAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleBulkMod",1,1)
    Goto RLNuclearPlasmaRifleMkIIAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleSniperMod",1,1)
    Goto RLNuclearPlasmaRifleMkIIAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaShotgunConfirm", 1) // Heavy Shotgun
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNuclear Plasma Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLNuclearPlasmaRifleModding
  RLNuclearPlasmaRifleMkIIAssembly:
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleFirestormMod",1,"RLNuclearPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleSniperMod",1,"RLNuclearPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRiflePowerMod",1,"RLNuclearPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleAgilityMod",1,"RLNuclearPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleTechnicalMod",2,"RLNuclearPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleBulkMod",2,"RLNuclearPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleBulkMod",1,1)
    Goto RLNuclearPlasmaRifleBurstCannon // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleTechnicalMod",1,1)
    Goto RLNuclearPlasmaRifleBurstCannon // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaRifleMkIIConfirm", 1) // Heavy Shotgun
    TNT1 A 0 A_GiveInventory("RLPlasmaRifleMkIIAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNuclear Plasma Rifle Mk. II?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLNuclearPlasmaRifleModding
  RLNuclearPlasmaRifleBurstCannon:
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleFirestormMod",1,"RLNuclearPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleSniperMod",1,"RLNuclearPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleAgilityMod",1,"RLNuclearPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRiflePowerMod",2,"RLNuclearPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleBulkMod",2,"RLNuclearPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleBulkMod",1,1)
    Goto RLNuclearPlasmaRifleModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRiflePowerMod",1,1)
    Goto RLNuclearPlasmaRifleModding
    TNT1 A 0 A_GiveInventory("RLBurstCannonNuclearPlasmaRifleConfirm", 1) // Burst Cannon Plasma Rifle
    TNT1 A 0 A_GiveInventory("RLBurstCannonAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvBurst Nuclear Plasma Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLNuclearPlasmaRifleModding
  RLNuclearPlasmaRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNuclearBFG9000:
  RLNuclearBFG9000HighPower:
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000FirestormMod",1,"RLNuclearBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000SniperMod",1,"RLNuclearBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000BulkMod",1,"RLNuclearBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000AgilityMod",1,"RLNuclearBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000PowerMod",2,"RLNuclearBFG9000BiggestFuckingGun")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000PowerMod",1,1)
    Goto RLNuclearBFG9000BiggestFuckingGun // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearBFG9000Confirm", 1) // High Power Nuclear BFG9000
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you really, really want to assemble the \cvHigh Power Nuclear BFG9000?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLNuclearBFG9000Modding
  RLNuclearBFG9000BiggestFuckingGun:
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000SniperMod",1,"RLNuclearBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000AgilityMod",1,"RLNuclearBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000PowerMod",1,"RLNuclearBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000BulkMod",2,"RLNuclearBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000FirestormMod",2,1)
    Goto RLNuclearBFG9000Modding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000BulkMod",1,1)
    Goto RLNuclearBFG9000Modding
    TNT1 A 0 A_GiveInventory("RLNuclearBiggestFuckingGunConfirm", 1) // Biggest Fucking Nuclear Gun
    TNT1 A 0 A_GiveInventory("RLBiggestFuckingGunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvBiggest Fucking Nuclear Gun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLNuclearBFG9000Modding
  RLNuclearBFG9000Modding:
    TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000ModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNuclearBFG9000ModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNuclearBFG9000BulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
/*  RLAxe:
  RLAxeModding:
    TNT1 A 0 A_JumpIfInventory("RLAxeModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAxeModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAxeBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLMace:
  RLMaceModding:
    TNT1 A 0 A_JumpIfInventory("RLMaceModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMaceModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMaceBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLMachete:
  RLMacheteModding:
    TNT1 A 0 A_JumpIfInventory("RLMacheteModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMacheteModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMacheteBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop*/
// SUPERIORS
  RLMarksmanRifle:
  RLMarksmanRifleHighPower:
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleFirestormMod",1,"RLMarksmanRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleNanoMod",1,"RLMarksmanRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleSniperMod",1,"RLMarksmanRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleBulkMod",1,"RLMarksmanRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleAgilityMod",1,"RLMarksmanRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleTechnicalMod",1,"RLMarksmanRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRiflePowerMod",2,"RLMarksmanRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRiflePowerMod",1,1)
    Goto RLMarksmanRifleModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerMarksmanRifleConfirm", 1) // High Power Marksman Rifle
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Marksman Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMarksmanRifleModding
  RLMarksmanRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMarksmanRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMarksmanRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLVanguardRifle:
  RLVanguardRifleHighPower:
	TNT1 A 0 A_JumpIfInventory("RLVanguardRifleFirestormMod",1,"RLVanguardRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLVanguardRifleNanoMod",1,"RLVanguardRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLVanguardRifleSniperMod",1,"RLVanguardRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLVanguardRifleBulkMod",1,"RLVanguardRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLVanguardRifleAgilityMod",1,"RLVanguardRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLVanguardRifleTechnicalMod",1,"RLVanguardRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLVanguardRiflePowerMod",2,"RLVanguardRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLVanguardRiflePowerMod",1,1)
    Goto RLVanguardRifleModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerVanguardRifleConfirm", 1) // High Power Vanguard Rifle
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Vanguard Rifle?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLVanguardRifleModding
  RLVanguardRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLVanguardRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLVanguardRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLVanguardRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHuntingRevolver:
  RLHuntingRevolverHighPower:
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverFirestormMod",1,"RLHuntingRevolverModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverNanoMod",1,"RLHuntingRevolverModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverSniperMod",1,"RLHuntingRevolverModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverBulkMod",1,"RLHuntingRevolverModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverAgilityMod",1,"RLHuntingRevolverModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverTechnicalMod",1,"RLHuntingRevolverModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverPowerMod",2,"RLHuntingRevolverModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverPowerMod",1,1)
    Goto RLHuntingRevolverModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerHuntingRevolverConfirm", 1) // High Power Hunting Revolver
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Hunting Revolver?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLHuntingRevolverModding
  RLHuntingRevolverModding:
    TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHuntingRevolverModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHuntingRevolverBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLThompson:
  RLThompsonHighPower:
	TNT1 A 0 A_JumpIfInventory("RLThompsonFirestormMod",1,"RLThompsonModding")
	TNT1 A 0 A_JumpIfInventory("RLThompsonNanoMod",1,"RLThompsonModding")
	TNT1 A 0 A_JumpIfInventory("RLThompsonSniperMod",1,"RLThompsonModding")
	TNT1 A 0 A_JumpIfInventory("RLThompsonBulkMod",1,"RLThompsonModding")
	TNT1 A 0 A_JumpIfInventory("RLThompsonAgilityMod",1,"RLThompsonModding")
	TNT1 A 0 A_JumpIfInventory("RLThompsonTechnicalMod",1,"RLThompsonModding")
	TNT1 A 0 A_JumpIfInventory("RLThompsonPowerMod",2,"RLThompsonModding")
	TNT1 A 0 A_JumpIfInventory("RLThompsonPowerMod",1,1)
    Goto RLThompsonModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerThompsonConfirm", 1) // High Power Thompson
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power Thompson?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLThompsonModding
  RLThompsonModding:
    TNT1 A 0 A_JumpIfInventory("RLThompsonModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLThompsonModLimit",1)
    TNT1 A 0 A_GiveInventory("RLThompsonBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPP7:
  RLPP7HighPower:
	TNT1 A 0 A_JumpIfInventory("RLPP7FirestormMod",1,"RLPP7Modding")
	TNT1 A 0 A_JumpIfInventory("RLPP7NanoMod",1,"RLPP7Modding")
	TNT1 A 0 A_JumpIfInventory("RLPP7SniperMod",1,"RLPP7Modding")
	TNT1 A 0 A_JumpIfInventory("RLPP7BulkMod",1,"RLPP7Modding")
	TNT1 A 0 A_JumpIfInventory("RLPP7AgilityMod",1,"RLPP7Modding")
	TNT1 A 0 A_JumpIfInventory("RLPP7TechnicalMod",1,"RLPP7Modding")
	TNT1 A 0 A_JumpIfInventory("RLPP7PowerMod",2,"RLPP7Modding")
	TNT1 A 0 A_JumpIfInventory("RLPP7PowerMod",1,1)
    Goto RLPP7Modding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerPP7Confirm", 1) // High Power PP7
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHigh Power PP7?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPP7Modding
  RLPP7Modding:
    TNT1 A 0 A_JumpIfInventory("RLPP7ModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPP7ModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPP7BulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHuntingShotgun:
  RLHeavyHuntingShotgunAssembly:
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunFirestormMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunNanoMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunSniperMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunPowerMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunAgilityMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunTechnicalMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunBulkMod",2,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunBulkMod",1,1)
    Goto RLHuntingShotgunModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHeavyHuntingShotgunConfirm", 1) // Heavy Hunting Shotgun
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHeavy Hunting Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLHuntingShotgunModding
  RLHuntingShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHuntingShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHuntingShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLRCP90:
  RLRCP90HighPower:
	TNT1 A 0 A_JumpIfInventory("RLRCP90FirestormMod",1,"RLRCP90Modding")
	TNT1 A 0 A_JumpIfInventory("RLRCP90NanoMod",1,"RLRCP90Modding")
	TNT1 A 0 A_JumpIfInventory("RLRCP90SniperMod",1,"RLRCP90Modding")
	TNT1 A 0 A_JumpIfInventory("RLRCP90BulkMod",1,"RLRCP90Modding")
	TNT1 A 0 A_JumpIfInventory("RLRCP90AgilityMod",1,"RLRCP90Modding")
	TNT1 A 0 A_JumpIfInventory("RLRCP90TechnicalMod",1,"RLRCP90Modding")
	TNT1 A 0 A_JumpIfInventory("RLRCP90PowerMod",2,"RLRCP90Modding")
	TNT1 A 0 A_JumpIfInventory("RLRCP90PowerMod",1,1)
    Goto RLRCP90Modding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerRCP90Confirm", 1) // RC-P120
    TNT1 A 0 A_GiveInventory("RLHighPowerWeaponAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvRC-P120?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLRCP90Modding
  RLRCP90Modding:
    TNT1 A 0 A_JumpIfInventory("RLRCP90ModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLRCP90ModLimit",1)
    TNT1 A 0 A_GiveInventory("RLRCP90BulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
// UNIQUES
  RLJackhammer:
  RLJackhammerModding:
    TNT1 A 0 A_JumpIfInventory("RLJackhammerModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLJackhammerModLimit",1)
    TNT1 A 0 A_GiveInventory("RLJackhammerBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLRailgun:
  RLRailgunModding:
    TNT1 A 0 A_JumpIfInventory("RLRailgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLRailgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLRailgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLBFG10K:
  RLBFG10KModding:
    TNT1 A 0 A_JumpIfInventory("RLBFG10KModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBFG10KModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBFG10KBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLUnknownHerald:
  RLUnknownHeraldModding:
    TNT1 A 0 A_JumpIfInventory("RLUnknownHeraldModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLUnknownHeraldModLimit",1)
    TNT1 A 0 A_GiveInventory("RLUnknownHeraldBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNullPointer:
  RLNullPointerModding:
    TNT1 A 0 A_JumpIfInventory("RLNullPointerModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNullPointerModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNullPointerBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLFragShotgun:
  RLFragShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLFragShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLFragShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLFragShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLQuadShotgun:
  RLQuadShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLQuadShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLQuadShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLQuadShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLTantrumCannon:
  RLTantrumCannonModding:
    TNT1 A 0 A_JumpIfInventory("RLTantrumCannonModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLTantrumCannonModLimit",1)
    TNT1 A 0 A_GiveInventory("RLTantrumCannonBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLRevenantsLauncher:
  RLRevenantsLauncherModding:
    TNT1 A 0 A_JumpIfInventory("RLRevenantsLauncherModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLRevenantsLauncherModLimit",1)
    TNT1 A 0 A_GiveInventory("RLRevenantsLauncherBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLGrammatonClericBeretta:
  RLGrammatonClericBerettaModding:
    TNT1 A 0 A_JumpIfInventory("RLGrammatonClericBerettaModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLGrammatonClericBerettaModLimit",1)
    TNT1 A 0 A_GiveInventory("RLGrammatonClericBerettaBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLAntiFreakJackal:
    TNT1 A 0 A_JumpIfInventory("RLAlucardFuMod",1,"RLHellsingARMSCasull")
  RLAntiFreakJackalModding:
    TNT1 A 0 A_JumpIfInventory("RLAntiFreakJackalModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAntiFreakJackalModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAntiFreakJackalBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHellsingARMSCasull:
  RLHellsingARMSCasullModding:
    TNT1 A 0 A_JumpIfInventory("RLHellsingARMSCasullModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHellsingARMSCasullModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHellsingARMSCasullBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLTrigun:
  RLTrigunModding:
    TNT1 A 0 A_JumpIfInventory("RLTrigunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLTrigunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLTrigunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLParticleBeamCannon:
  RLParticleBeamCannonModding:
    TNT1 A 0 A_JumpIfInventory("RLParticleBeamCannonModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLParticleBeamCannonModLimit",1)
    TNT1 A 0 A_GiveInventory("RLParticleBeamCannonBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaRedirectionCannon:
  RLPlasmaRedirectionCannonModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaRedirectionCannonModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaRedirectionCannonModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaRedirectionCannonBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLSteelBeast:
  RLSteelBeastModding:
    TNT1 A 0 A_JumpIfInventory("RLSteelBeastModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLSteelBeastModLimit",1)
    TNT1 A 0 A_GiveInventory("RLSteelBeastBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLSussGun:
  RLSussGunModding:
    TNT1 A 0 A_JumpIfInventory("RLSussGunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLSussGunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLSussGunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLMIRVLauncher:
  RLMIRVLauncherModding:
    TNT1 A 0 A_JumpIfInventory("RLMIRVLauncherModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMIRVLauncherModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMIRVLauncherBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
/*  RLSubtleKnife:
  RLSubtleKnifeModding:
    TNT1 A 0 A_JumpIfInventory("RLSubtleKnifeModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLSubtleKnifeModLimit",1)
    TNT1 A 0 A_GiveInventory("RLSubtleKnifeBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop*/
/*  RLSpectreRevolver:
  RLSpectreRevolverModding:
    TNT1 A 0 A_JumpIfInventory("RLSpectreRevolverModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLSpectreRevolverModLimit",1)
    TNT1 A 0 A_GiveInventory("RLSpectreRevolverBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop*/
  RLMarathonAssaultRifle:
  RLMarathonAssaultRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLMarathonAssaultRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMarathonAssaultRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMarathonAssaultRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLMarathonShotguns:
  RLMarathonShotgunsModding:
    TNT1 A 0 A_JumpIfInventory("RLMarathonShotgunsModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMarathonShotgunsModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMarathonShotgunsBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
// DEMONICS
/*  RLMonsterFrisbee:
  RLMonsterFrisbeeModding:
    TNT1 A 0 A_JumpIfInventory("RLMonsterFrisbeeModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMonsterFrisbeeModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMonsterFrisbeeBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop*/
  RLHellsReign:
  RLHellsReignModding:
    TNT1 A 0 A_JumpIfInventory("RLHellsReignModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHellsReignModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHellsReignBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLDeathsGaze:
  RLDeathsGazeModding:
    TNT1 A 0 A_JumpIfInventory("RLDeathsGazeModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLDeathsGazeModLimit",1)
    TNT1 A 0 A_GiveInventory("RLDeathsGazeBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLSoulstormRifle:
  RLSoulstormRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLSoulstormRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLSoulstormRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLSoulstormRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
/*  RLMortalyzer:
  RLMortalyzerModding:
    TNT1 A 0 A_JumpIfInventory("RLMortalyzerModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMortalyzerModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMortalyzerBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLDreadshotMortar:
  RLDreadshotMortarModding:
    TNT1 A 0 A_JumpIfInventory("RLDreadshotMortarModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLDreadshotMortarModLimit",1)
    TNT1 A 0 A_GiveInventory("RLDreadshotMortarBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop*/
  RLUnmaker:
	TNT1 A 0 A_Print("\crThis weapon can only be upgraded with demon artifacts.", 5)
    Fail
// LEGENDARIES
  RLDuke2Rifle:
  RLDuke2RifleModding:
    TNT1 A 0 A_JumpIfInventory("RLDuke2RifleSniperMod",0,"DN2PermanentAlready")
    TNT1 A 0 A_PlaySound("weapons/dn2gunpickup",7)
    TNT1 A 0 A_TakeInventory("RLDuke2RifleRocketAmmo", 32)
    TNT1 A 0 A_TakeInventory("RLDuke2RifleFlamethrowerAmmo", 64)
    TNT1 A 0 A_GiveInventory("RLDuke2RifleLaserAmmo",32)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  DN2PermanentAlready:
	TNT1 A 0 A_Print("This rifle already has lasers permanently upgraded on it.", 5)
	Fail
// ASSEMBLIES
// BASIC
  RLSilencedPistol:
  RLSilencedPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLSilencedPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLSilencedPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLSilencedPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLShredderPistol:
  RLShredderPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLShredderPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLShredderPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLShredderPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLShredderShotgun:
  RLShredderShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLShredderShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLShredderShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLShredderShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLSpeedloaderPistol:
  RLSpeedloaderPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLSpeedloaderPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLSpeedloaderPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLSpeedloaderPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLElephantGun:
  RLElephantGunModding:
    TNT1 A 0 A_JumpIfInventory("RLElephantGunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLElephantGunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLElephantGunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLGatlingGun:
  RLGatlingGunModding:
    TNT1 A 0 A_JumpIfInventory("RLGatlingGunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLGatlingGunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLGatlingGunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLMicroLauncher:
  RLMicroLauncherModding:
    TNT1 A 0 A_JumpIfInventory("RLMicroLauncherModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMicroLauncherModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMicroLauncherBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLTacticalShotgun:
  RLTacticalShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLTacticalShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLTacticalShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLTacticalShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHeavyShotgun:
  RLHeavyShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLHeavyShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHeavyShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHeavyCombatShotgun:
  RLHeavyCombatShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLHeavyCombatShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHeavyCombatShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHeavyCombatShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHeavyDoubleShotgun:
  RLHeavyDoubleShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLHeavyDoubleShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHeavyDoubleShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHeavyDoubleShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHeavySuperShotgun:
  RLHeavySuperShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLHeavySuperShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHeavySuperShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHeavySuperShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHeavyAssaultShotgun:
  RLHeavyAssaultShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLHeavyAssaultShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHeavyAssaultShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHeavyAssaultShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHeavyPlasmaShotgun:
  RLHeavyPlasmaShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLHeavyPlasmaShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHeavyPlasmaShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHeavyPlasmaShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLFlamethrower:
  RLFlamethrowerModding:
    TNT1 A 0 A_JumpIfInventory("RLFlamethrowerModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLFlamethrowerModLimit",1)
    TNT1 A 0 A_GiveInventory("RLFlamethrowerBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLShrapnelCannon:
  RLShrapnelCannonModding:
    TNT1 A 0 A_JumpIfInventory("RLShrapnelCannonModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLShrapnelCannonModLimit",1)
    TNT1 A 0 A_GiveInventory("RLShrapnelCannonBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNuclearPlasmaRevolver:
  RLNuclearPlasmaRevolverModding:
    TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRevolverModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaRevolverModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaRevolverBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLStealthRifle:
  RLStealthRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLStealthRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLStealthRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLStealthRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLSniperRifle:
  RLSniperRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLSniperRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLSniperRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLSniperRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
// NANOEDGE / PIERCING
  RLPiercingChainsaw:
  RLPiercingChainsawModding:
    TNT1 A 0 A_JumpIfInventory("RLPiercingChainsawModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPiercingChainsawModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPiercingChainsawBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
// HIGH POWER
  RLHighPowerPistol:
  RLHighPowerPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerChaingun:
  RLHighPowerChaingunModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerChaingunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerChaingunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerChaingunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerPlasmaRifle:
  RLHighPowerPlasmaRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerPlasmaRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerPlasmaRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerPlasmaRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerBFG9000:
  RLHighPowerBFG9000Modding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerBFG9000ModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerBFG9000ModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerBFG9000BulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerBlaster:
  RLHighPowerBlasterModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerBlasterModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerBlasterModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerBlasterBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerCombatPistol:
  RLHighPowerCombatPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerCombatPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerCombatPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerCombatPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerMarksmanPistol:
  RLHighPowerMarksmanPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerMarksmanPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerMarksmanPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerMarksmanPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerHandcannon:
  RLHighPowerHandcannonModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerHandcannonModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerHandcannonModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerHandcannonBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerMinigun:
  RLHighPowerMinigunModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerMinigunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerMinigunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerMinigunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerLaserRifle:
  RLHighPowerLaserRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerLaserRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerLaserRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerLaserRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerNuclearPlasmaPistol:
  RLHighPowerNuclearPlasmaPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerNuclearPlasmaPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearPlasmaPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearPlasmaPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerNuclearPlasmaRifle:
  RLHighPowerNuclearPlasmaRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerNuclearPlasmaRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearPlasmaRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearPlasmaRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerNuclearBFG9000:
  RLHighPowerNuclearBFG9000Modding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerNuclearBFG9000ModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearBFG9000ModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearBFG9000BulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerTristarBlaster:
  RLHighPowerTristarBlasterModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerTristarBlasterModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerTristarBlasterModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerTristarBlasterBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerUzi:
  RLHighPowerUziModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerUziModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerUziModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerUziBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHighPowerBattleRifle:
  RLHighPowerBattleRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLHighPowerBattleRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHighPowerBattleRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHighPowerBattleRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
// PLASMATIC SHRAPNEL
  RLPlasmaticShrapnelShotgun:
  RLPlasmaticShrapnelShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaticShrapnelCombatShotgun:
  RLPlasmaticShrapnelCombatShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelCombatShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelCombatShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelCombatShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaticShrapnelDoubleShotgun:
  RLPlasmaticShrapnelDoubleShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelDoubleShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelDoubleShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelDoubleShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaticShrapnelSuperShotgun:
  RLPlasmaticShrapnelSuperShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelSuperShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelSuperShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelSuperShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaticShrapnelAssaultShotgun:
  RLPlasmaticShrapnelAssaultShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssaultShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelAssaultShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelAssaultShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaticShrapnelPlasmaShotgun:
  RLPlasmaticShrapnelPlasmaShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelPlasmaShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelPlasmaShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelPlasmaShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
// ADVANCED
  RLDoubleChainsaw:
  RLDoubleChainsawModding:
    TNT1 A 0 A_JumpIfInventory("RLDoubleChainsawModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLDoubleChainsawModLimit",1)
    TNT1 A 0 A_GiveInventory("RLDoubleChainsawBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLTacticalRocketLauncher:
  RLTacticalRocketLauncherModding:
    TNT1 A 0 A_JumpIfInventory("RLTacticalRocketLauncherModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLTacticalRocketLauncherModLimit",1)
    TNT1 A 0 A_GiveInventory("RLTacticalRocketLauncherBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLStormPistol:
  RLStormPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLStormPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLStormPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLStormPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLStormCombatPistol:
  RLStormCombatPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLStormCombatPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLStormCombatPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLStormCombatPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLStormMarksmanPistol:
  RLStormMarksmanPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLStormMarksmanPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLStormMarksmanPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLStormMarksmanPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaPistol:
  RLPlasmaPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaCombatPistol:
  RLPlasmaCombatPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaCombatPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaCombatPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaCombatPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaMarksmanPistol:
  RLPlasmaMarksmanPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaMarksmanPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaMarksmanPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaMarksmanPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLStormHandcannon:
  RLStormHandcannonModding:
    TNT1 A 0 A_JumpIfInventory("RLStormHandcannonModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLStormHandcannonModLimit",1)
    TNT1 A 0 A_GiveInventory("RLStormHandcannonBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLStormUzi:
  RLStormUziModding:
    TNT1 A 0 A_JumpIfInventory("RLStormUziModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLStormUziModLimit",1)
    TNT1 A 0 A_GiveInventory("RLStormUziBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLStormBlaster:
  RLStormBlasterModding:
    TNT1 A 0 A_JumpIfInventory("RLStormBlasterModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLStormBlasterModLimit",1)
    TNT1 A 0 A_GiveInventory("RLStormBlasterBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLStormNuclearPlasmaPistol:
  RLStormNuclearPlasmaPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLStormNuclearPlasmaPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLStormNuclearPlasmaPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLStormNuclearPlasmaPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaHandcannon:
  RLPlasmaHandcannonModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaHandcannonModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaHandcannonModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaHandcannonBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaUzi:
  RLPlasmaUziModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaUziModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaUziModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaUziBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLSuperchargedNuclearPlasmaPistol:
  RLSuperchargedNuclearPlasmaPistolModding:
    TNT1 A 0 A_JumpIfInventory("RLSuperchargedNuclearPlasmaPistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLSuperchargedNuclearPlasmaPistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLSuperchargedNuclearPlasmaPistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLFocusedDoubleShotgun:
  RLFocusedDoubleShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLFocusedDoubleShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLFocusedDoubleShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLFocusedDoubleShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLHyperblaster:
  RLHyperblasterModding:
    TNT1 A 0 A_JumpIfInventory("RLHyperblasterModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLHyperblasterModLimit",1)
    TNT1 A 0 A_GiveInventory("RLHyperblasterBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLVBFG9000:
  RLVBFG9000Modding:
    TNT1 A 0 A_JumpIfInventory("RLVBFG9000ModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLVBFG9000ModLimit",1)
    TNT1 A 0 A_GiveInventory("RLVBFG9000BulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNuclearVBFG9000:
  RLNuclearVBFG9000Modding:
    TNT1 A 0 A_JumpIfInventory("RLNuclearVBFG9000ModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNuclearVBFG9000ModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNuclearVBFG9000BulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLAutoshotgun:
  RLAutoshotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLAutoshotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAutoshotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAutoshotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLAutoDoubleShotgun:
  RLAutoDoubleShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLAutoDoubleShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAutoDoubleShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAutoDoubleShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLMiniMissilePistol:
  RLMiniMissilePistolModding:
    TNT1 A 0 A_JumpIfInventory("RLMiniMissilePistolModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMiniMissilePistolModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMiniMissilePistolBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaRifleMkII:
  RLPlasmaRifleMkIIModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleMkIIModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaRifleMkIIModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaRifleMkIIBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLGrenadeLauncher:
  RLGrenadeLauncherModding:
    TNT1 A 0 A_JumpIfInventory("RLGrenadeLauncherModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLGrenadeLauncherModLimit",1)
    TNT1 A 0 A_GiveInventory("RLGrenadeLauncherBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLPlasmaShotgunMkII:
  RLPlasmaShotgunMkIIModding:
    TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunMkIIModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLPlasmaShotgunMkIIModLimit",1)
    TNT1 A 0 A_GiveInventory("RLPlasmaShotgunMkIIBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNuclearPlasmaShotgun:
  RLNuclearPlasmaShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNuclearPlasmaRifleMkII:
  RLNuclearPlasmaRifleMkIIModding:
    TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleMkIIModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaRifleMkIIModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNuclearPlasmaRifleMkIIBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLLaserShotgun:
  RLLaserShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLLaserShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLLaserShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLLaserShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
// ASSAULT RIFLE
  RLAssaultRifleChaingun:
  RLAssaultRifleChaingunModding:
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleChaingunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAssaultRifleChaingunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAssaultRifleChaingunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLAssaultRiflePlasmaRifle:
  RLAssaultRiflePlasmaRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLAssaultRiflePlasmaRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAssaultRiflePlasmaRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAssaultRiflePlasmaRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLAssaultRifleMinigun:
  RLAssaultRifleMinigunModding:
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleMinigunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAssaultRifleMinigunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAssaultRifleMinigunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLAssaultRifleLaserRifle:
  RLAssaultRifleLaserRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleLaserRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAssaultRifleLaserRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAssaultRifleLaserRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLAssaultRifleNuclearPlasmaRifle:
  RLAssaultRifleNuclearPlasmaRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleNuclearPlasmaRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAssaultRifleNuclearPlasmaRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAssaultRifleNuclearPlasmaRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLAssaultRifleUzi:
  RLAssaultRifleUziModding:
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleUziModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAssaultRifleUziModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAssaultRifleUziBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLAssaultRifleBattleRifle:
  RLAssaultRifleBattleRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLAssaultRifleBattleRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAssaultRifleBattleRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAssaultRifleBattleRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
// BURST CANNON
  RLBurstCannonChaingun:
  RLBurstCannonChaingunModding:
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonChaingunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBurstCannonChaingunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBurstCannonChaingunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLBurstCannonPlasmaRifle:
  RLBurstCannonPlasmaRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonPlasmaRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBurstCannonPlasmaRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBurstCannonPlasmaRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLBurstCannonMinigun:
  RLBurstCannonMinigunModding:
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonMinigunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBurstCannonMinigunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBurstCannonMinigunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLBurstCannonLaserRifle:
  RLBurstCannonLaserRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonLaserRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBurstCannonLaserRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBurstCannonLaserRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLBurstCannonNuclearPlasmaRifle:
  RLBurstCannonNuclearPlasmaRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonNuclearPlasmaRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBurstCannonNuclearPlasmaRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBurstCannonNuclearPlasmaRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLBurstCannonUzi:
  RLBurstCannonUziModding:
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonUziModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBurstCannonUziModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBurstCannonUziBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLBurstCannonBattleRifle:
  RLBurstCannonBattleRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLBurstCannonBattleRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBurstCannonBattleRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBurstCannonBattleRifleBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
// NANO SHRAPNEL
  RLNanoShrapnelShotgun:
  RLNanoShrapnelShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNanoShrapnelCombatShotgun:
  RLNanoShrapnelCombatShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelCombatShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelCombatShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelCombatShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNanoShrapnelDoubleShotgun:
  RLNanoShrapnelDoubleShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelDoubleShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelDoubleShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelDoubleShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNanoShrapnelSuperShotgun:
  RLNanoShrapnelSuperShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelSuperShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelSuperShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelSuperShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNanoShrapnelAssaultShotgun:
  RLNanoShrapnelAssaultShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssaultShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelAssaultShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelAssaultShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  RLNanoShrapnelPlasmaShotgun:
  RLNanoShrapnelPlasmaShotgunModding:
    TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelPlasmaShotgunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelPlasmaShotgunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelPlasmaShotgunBulkMod", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
	
  CyberneticArmorModding:
    TNT1 A 0 A_TakeInventory("RLCyberneticArmorModdingConfirm",1)
    TNT1 A 0 A_JumpIfInventory("RLShellshockPerk",1,"CyberneticArmorModdingRenegade")
    TNT1 A 0 A_TakeInventory("RLCyberneticArmor",1)
    TNT1 A 0 A_TakeInventory("BasicArmor",99999)
    TNT1 A 0 A_GiveInventory("RLCyberneticArmorBulk", 1)
	Goto CyberneticArmorModdingContinue
  CyberneticArmorModdingContinue:
    TNT1 A 0 A_GiveInventory("RLCyberneticArmorBulkToken", 1)
    TNT1 A 0 A_GiveInventory("RLCyberneticArmorModdedToken", 1)
    TNT1 A 0 A_JumpIfInventory("RLScavengerPerk",1,2)
    TNT1 A 0 A_TakeInventory("RLModLimit", 1)
    Stop
    TNT1 A 0 A_TakeInventory("RLScavengerModLimit", 1)
    Stop
  CyberneticArmorModdingRenegade:
    TNT1 A 0 A_TakeInventory("RLCyberneticArmorRenegade",1)
    TNT1 A 0 A_TakeInventory("BasicArmor",99999)
    TNT1 A 0 A_GiveInventory("RLCyberneticArmorRenegadeBulk", 1)
	Goto CyberneticArmorModdingContinue
  NoMod:
    TNT1 A 0 A_Print("This weapon cannot support further modification.", 2)
    Fail
  OnlyExoticMods:
    TNT1 A 0 A_Print("This weapon cannot support basic mods at this time.", 2)
    Fail
  AdvancedWeapon:
    TNT1 A 0 A_Print("This weapon is too advanced for basic modification.", 2)
    Fail
  NoPickup:
	TNT1 A 0 A_JumpIfInventory("DRLA_ModsAntiLogFloodCheck",1,"NoPickup_NoPrint")
	TNT1 A 0 A_GiveInventory("DRLA_ModsAntiLogFloodCheck")
	TNT1 A 0 A_Print("\ch= Bulk Mod =", 2, "CONFONT")
   NoPickup_NoPrint:
    TNT1 A 0
	Fail
//==============================================================================
	Duke2Stuff:
		"####" "#" 0 A_SpawnItemEx("RLDuke2WeaponCrate",0,0,0, 0,0,0, 0,SXF_NOCHECKPOSITION)
		Stop
//==============================================================================
//					--	DRPG Compatibility Stuff  --
//==============================================================================
	DRPGInit:
		"####" "#" 0 ACS_NamedExecuteAlways("ItemInit", 0)
		"####" "#" 0 A_Jump (256, "SpecialStartCheck")
		Goto SpecialStartCheck
  }
}
