
//-------------------------------------------------------------------
//		POWER MOD

ACTOR RLPowerModItem : CustomInventory 16501
{
  -COUNTITEM
  +INVENTORY.INVBAR
  +INVENTORY.UNDROPPABLE
  +INVENTORY.UNTOSSABLE
  +INVENTORY.BIGPOWERUP
  +DONTGIB
  Tag "Power Modpack"
    //$category "DRLA Items"
  Inventory.InterHubAmount 8
  Inventory.MaxAmount 8
  Inventory.Icon "PMODI0"
  Inventory.Pickupsound "misc/modpackpickup"
  Inventory.UseSound "modpack/power"
  Inventory.PickupMessage "You picked up a Power 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:
    PMOD ABCDCB 3 Bright
	TNT1 A 0 A_JumpIf(CallACS("DRLA_lettermodpacks") == 1, "SpawnLetter")
    Loop
  SpawnLetter:
    PMOD 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("RLUsePowerMod",1,"WeaponSelect")
    TNT1 A 0 A_GiveInventory("RLUsePowerMod", 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 Power 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 Power 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 Power 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("RLUsePowerMod", 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("RLOverchargedBlasterSelected",1,"RLOverchargedBlaster")
    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("RLBulletstormChaingunSelected",1,"RLBulletstormChaingun")
    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("RLBulletstormRifleSelected",1,"RLBulletstormRifle")
    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
	
//==============================================================================
// STANDARD
//==============================================================================

/*  RLCombatKnife:
  RLPiercingCombatKnife:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPiercingBladeAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPiercingBladeAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLEnergyBladeAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLCombatKnifeTechnicalMod",1,"RLEnergyBladeAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatKnifeBulkMod",1,"RLEnergyBladeAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatKnifePowerMod",1,"RLEnergyBladeAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatKnifeAgilityMod",2,"RLEnergyBladeAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatKnifeAgilityMod",1,1)
    Goto RLEnergyBladeAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPiercingCombatKnifeConfirm", 1) // Piercing Combat Knife
    TNT1 A 0 A_GiveInventory("RLPiercingBladeAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanoedge Combat Knife?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLCombatKnifeModding
  RLEnergyBladeAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLEnergyBladeAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLEnergyBladeAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLCombatKnifeModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLCombatKnifeAgilityMod",2,"RLCombatKnifeModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatKnifeTechnicalMod",3,"RLCombatKnifeModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatKnifeBulkMod",1,"RLCombatKnifeModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatKnifePowerMod",1,"RLCombatKnifeModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatKnifeAgilityMod",1,1)
    Goto RLCombatKnifeModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLCombatKnifeTechnicalMod",2,1)
    Goto RLCombatKnifeModding
    TNT1 A 0 A_GiveInventory("RLEnergyBladeConfirm", 1) // Energy Blade
    TNT1 A 0 A_GiveInventory("RLEnergyBladeAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvEnergy Blade?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLCombatKnifeModding
  RLCombatKnifeModding:
    TNT1 A 0 A_JumpIfInventory("RLCombatKnifeModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLCombatKnifeModLimit",1)
    TNT1 A 0 A_GiveInventory("RLCombatKnifePowerMod", 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:
  RLPiercingChainsawAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPiercingBladeAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPiercingBladeAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLDoubleChainsawAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLChainsawTechnicalMod",1,"RLDoubleChainsawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawBulkMod",1,"RLDoubleChainsawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawPowerMod",1,"RLDoubleChainsawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawAgilityMod",2,"RLDoubleChainsawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawAgilityMod",1,1)
    Goto RLDoubleChainsawAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPiercingChainsawConfirm", 1) // Piercing Chainsaw
    TNT1 A 0 A_GiveInventory("RLPiercingBladeAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanoedge Chainsaw?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLChainsawModding
  RLDoubleChainsawAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLDoubleChainsawAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLDoubleChainsawAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLEnergysawAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLChainsawAgilityMod",1,"RLEnergysawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawTechnicalMod",1,"RLEnergysawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawBulkMod",2,"RLEnergysawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawPowerMod",2,"RLEnergysawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawPowerMod",1,1)
    Goto RLEnergysawAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLChainsawBulkMod",1,1)
    Goto RLEnergysawAssembly
    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
  RLEnergysawAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLEnergyBladeAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLEnergyBladeAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLRipperAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLChainsawTechnicalMod",1,"RLRipperAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawBulkMod",1,"RLRipperAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawAgilityMod",2,"RLRipperAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawPowerMod",3,"RLRipperAssembly")
	TNT1 A 0 A_JumpIfInventory("RLChainsawAgilityMod",1,1)
    Goto RLRipperAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLChainsawPowerMod",2,1)
    Goto RLRipperAssembly
    TNT1 A 0 A_GiveInventory("RLEnergysawConfirm", 1) // Energysaw
    TNT1 A 0 A_GiveInventory("RLEnergyBladeAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvEnergysaw?\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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLRipperAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLRipperAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLChainsawModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLChainsawAgilityMod",1,"RLChainsawModding")
	TNT1 A 0 A_JumpIfInventory("RLChainsawTechnicalMod",2,"RLChainsawModding")
	TNT1 A 0 A_JumpIfInventory("RLChainsawBulkMod",2,"RLChainsawModding")
	TNT1 A 0 A_JumpIfInventory("RLChainsawPowerMod",2,"RLChainsawModding")
	TNT1 A 0 A_JumpIfInventory("RLChainsawPowerMod",1,1)
    Goto RLChainsawModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLChainsawBulkMod",1,1)
    Goto RLChainsawModding
	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("RLChainsawPowerMod", 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:
  RLPistolShredderPistol:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLShredderPistolAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLShredderPistolAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLPistolHighPower // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLPistolFirestormMod",1,"RLPistolHighPower")
	TNT1 A 0 A_JumpIfInventory("RLPistolNanoMod",1,"RLPistolHighPower")
	TNT1 A 0 A_JumpIfInventory("RLPistolSniperMod",1,"RLPistolHighPower")
	TNT1 A 0 A_JumpIfInventory("RLPistolAgilityMod",1,"RLPistolHighPower")
	TNT1 A 0 A_JumpIfInventory("RLPistolBulkMod",1,"RLPistolHighPower")
	TNT1 A 0 A_JumpIfInventory("RLPistolPowerMod",1,"RLPistolHighPower")
	TNT1 A 0 A_JumpIfInventory("RLPistolTechnicalMod",2,"RLPistolHighPower")
	TNT1 A 0 A_JumpIfInventory("RLPistolTechnicalMod",1,1)
    Goto RLPistolHighPower // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLShredderPistolConfirm", 1) // Shredder Pistol
    TNT1 A 0 A_GiveInventory("RLShredderPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvShredder Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPistolModding
  RLPistolHighPower:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLPistolPlasmaPistol // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLPistolFirestormMod",1,"RLPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolNanoMod",1,"RLPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolSniperMod",1,"RLPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolPowerMod",1,"RLPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolAgilityMod",1,"RLPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolTechnicalMod",1,"RLPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolBulkMod",2,"RLPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLPistolBulkMod",1,1)
    Goto RLPistolPlasmaPistol // 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
  RLPistolPlasmaPistol:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLPistolDemolitionAmmo // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLPistolFirestormMod",1,"RLPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolNanoMod",1,"RLPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolSniperMod",1,"RLPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolBulkMod",1,"RLPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolAgilityMod",1,"RLPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolTechnicalMod",2,"RLPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolPowerMod",2,"RLPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLPistolPowerMod",1,1)
    Goto RLPistolDemolitionAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPistolTechnicalMod",1,1)
    Goto RLPistolDemolitionAmmo
    TNT1 A 0 A_GiveInventory("RLEnergyPistolConfirm", 1) // Plasma Pistol
    TNT1 A 0 A_GiveInventory("RLPlasmaPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasma Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPistolModding
  RLPistolDemolitionAmmo:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLPistolModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLPistolNanoMod",1,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolSniperMod",1,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolBulkMod",1,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolAgilityMod",1,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolPowerMod",1,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolFirestormMod",2,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolTechnicalMod",3,"RLPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLPistolTechnicalMod",2,1)
    Goto RLPistolModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPistolFirestormMod",1,1)
    Goto RLPistolModding
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoPistolConfirm", 1) // Demolition Ammo Pistol
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvDemolition Ammo 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("RLPistolPowerMod", 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:
  RLElephantGunAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLElephantGunAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLElephantGunAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLShotgunPlasmaticShrapnel // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLShotgunFirestormMod",1,"RLShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunNanoMod",1,"RLShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunSniperMod",1,"RLShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunAgilityMod",1,"RLShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunTechnicalMod",1,"RLShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunBulkMod",1,"RLShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunPowerMod",2,"RLShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunPowerMod",1,1)
    Goto RLShotgunPlasmaticShrapnel // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLElephantGunConfirm", 1) // Elephant Gun
    TNT1 A 0 A_GiveInventory("RLElephantGunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvElephant Gun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLShotgunModding
  RLShotgunPlasmaticShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLShrapnelCannonAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLShotgunFirestormMod",1,"RLShrapnelCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunNanoMod",1,"RLShrapnelCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunAgilityMod",1,"RLShrapnelCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunTechnicalMod",1,"RLShrapnelCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunBulkMod",1,"RLShrapnelCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunPowerMod",1,"RLShrapnelCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunSniperMod",2,"RLShrapnelCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLShotgunSniperMod",1,1)
    Goto RLShrapnelCannonAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelShotgunConfirm", 1) // Plasmatic Shrapnel Shotgun
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasmatic Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLShotgunModding
  RLShrapnelCannonAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLShrapnelCannonAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLShrapnelCannonAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLShotgunNanoShrapnel // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLShotgunFirestormMod",1,"RLShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunNanoMod",1,"RLShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunSniperMod",1,"RLShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunTechnicalMod",1,"RLShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunBulkMod",1,"RLShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunPowerMod",1,"RLShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunAgilityMod",2,"RLShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLShotgunAgilityMod",1,1)
    Goto RLShotgunNanoShrapnel // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLShrapnelCannonConfirm", 1) // Shrapnel Cannon
    TNT1 A 0 A_GiveInventory("RLShrapnelCannonAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvShrapnel Cannon?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLShotgunModding
  RLShotgunNanoShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLShotgunModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLShotgunFirestormMod",1,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunAgilityMod",1,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunTechnicalMod",1,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunBulkMod",1,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunSniperMod",1,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunPowerMod",2,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunNanoMod",2,"RLShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLShotgunNanoMod",1,1)
    Goto RLShotgunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLShotgunPowerMod",1,1)
    Goto RLShotgunModding
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelShotgunConfirm", 1) // Nano Shrapnel Shotgun
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNano Shotgun?\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("RLShotgunPowerMod", 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:
  RLTacticalShotgunAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLTacticalShotgunAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLTacticalShotgunAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLCombatShotgunPlasmaticShrapnel // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunFirestormMod",1,"RLCombatShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunNanoMod",1,"RLCombatShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunSniperMod",1,"RLCombatShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunAgilityMod",1,"RLCombatShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunBulkMod",1,"RLCombatShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunPowerMod",1,"RLCombatShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunTechnicalMod",2,"RLCombatShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunTechnicalMod",1,1)
    Goto RLCombatShotgunPlasmaticShrapnel // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLTacticalShotgunConfirm", 1) // Tactical Shotgun
    TNT1 A 0 A_GiveInventory("RLTacticalShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvTactical Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLCombatShotgunModding
  RLCombatShotgunPlasmaticShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLCombatShotgunNanoShrapnel // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunFirestormMod",1,"RLCombatShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunNanoMod",1,"RLCombatShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunAgilityMod",1,"RLCombatShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunTechnicalMod",1,"RLCombatShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunBulkMod",1,"RLCombatShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunPowerMod",1,"RLCombatShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunSniperMod",2,"RLCombatShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunSniperMod",1,1)
    Goto RLCombatShotgunNanoShrapnel // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelCombatShotgunConfirm", 1) // Plasmatic Shrapnel Combat Shotgun
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasmatic Combat Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLCombatShotgunModding
  RLCombatShotgunNanoShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLConquerorShotgunAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunFirestormMod",1,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunAgilityMod",1,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunTechnicalMod",1,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunBulkMod",1,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunSniperMod",1,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunPowerMod",2,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunNanoMod",2,"RLConquerorShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunNanoMod",1,1)
    Goto RLConquerorShotgunAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunPowerMod",1,1)
    Goto RLConquerorShotgunAssembly
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelCombatShotgunConfirm", 1) // Nano Shrapnel Combat Shotgun
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNano 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLConquerorShotgunAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLConquerorShotgunAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLCombatShotgunModding // Change to the next assembly if you don't know how to make it.
	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",1,"RLCombatShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunAgilityMod",2,"RLCombatShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunBulkMod",2,"RLCombatShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatShotgunBulkMod",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("RLCombatShotgunFirestormMod",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("RLCombatShotgunPowerMod", 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:
  RLShredderShotgunAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLShredderPistolAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLShredderPistolAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLFocusedDoubleShotgunAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunFirestormMod",1,"RLFocusedDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunNanoMod",1,"RLFocusedDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunSniperMod",1,"RLFocusedDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunPowerMod",1,"RLFocusedDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunAgilityMod",1,"RLFocusedDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunBulkMod",1,"RLFocusedDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunTechnicalMod",2,"RLFocusedDoubleShotgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunTechnicalMod",1,1)
    Goto RLFocusedDoubleShotgunAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLShredderShotgunConfirm", 1) // Shredder Shotgun
    TNT1 A 0 A_GiveInventory("RLShredderPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvShredder Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLDoubleShotgunModding
  RLFocusedDoubleShotgunAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLFocusedDoubleShotgunAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLFocusedDoubleShotgunAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLDoubleShotgunPlasmaticShrapnel // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunFirestormMod",1,"RLDoubleShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunNanoMod",1,"RLDoubleShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunSniperMod",1,"RLDoubleShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunBulkMod",1,"RLDoubleShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunPowerMod",1,"RLDoubleShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunAgilityMod",2,"RLDoubleShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunTechnicalMod",2,"RLDoubleShotgunPlasmaticShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunTechnicalMod",1,1)
    Goto RLDoubleShotgunPlasmaticShrapnel // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunAgilityMod",1,1)
    Goto RLDoubleShotgunPlasmaticShrapnel
    TNT1 A 0 A_GiveInventory("RLFocusedDoubleShotgunConfirm", 1) // Focused Double Shotgun
    TNT1 A 0 A_GiveInventory("RLFocusedDoubleShotgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvFocused Double Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLDoubleShotgunModding
  RLDoubleShotgunPlasmaticShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLDoubleShotgunNanoShrapnel // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunFirestormMod",1,"RLDoubleShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunNanoMod",1,"RLDoubleShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunAgilityMod",1,"RLDoubleShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunTechnicalMod",1,"RLDoubleShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunBulkMod",1,"RLDoubleShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunPowerMod",1,"RLDoubleShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunSniperMod",2,"RLDoubleShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunSniperMod",1,1)
    Goto RLDoubleShotgunNanoShrapnel // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelDoubleShotgunConfirm", 1) // Plasmatic Shrapnel Double Shotgun
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasmatic Double Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLDoubleShotgunModding
  RLDoubleShotgunNanoShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLDoubleShotgunModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunFirestormMod",1,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunAgilityMod",1,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunTechnicalMod",1,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunBulkMod",1,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunSniperMod",1,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunPowerMod",2,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunNanoMod",2,"RLDoubleShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunNanoMod",1,1)
    Goto RLDoubleShotgunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLDoubleShotgunPowerMod",1,1)
    Goto RLDoubleShotgunModding
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelDoubleShotgunConfirm", 1) // Nano Shrapnel Double Shotgun
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNano 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("RLDoubleShotgunPowerMod", 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:
  RLChaingunHighPower:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLChaingunBurstCannon // Change to the next assembly if you don't know how to make it.
	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",2,"RLChaingunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",1,1)
    Goto RLChaingunBurstCannon // 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
  RLChaingunBurstCannon:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLChaingunDemolitionAmmo // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLChaingunFirestormMod",1,"RLChaingunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunNanoMod",1,"RLChaingunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunSniperMod",1,"RLChaingunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunAgilityMod",1,"RLChaingunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunTechnicalMod",1,"RLChaingunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunPowerMod",1,"RLChaingunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",3,"RLChaingunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",2,1)
    Goto RLChaingunDemolitionAmmo // Change to the next assembly to check.
    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
  RLChaingunDemolitionAmmo:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLChaingunModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLChaingunNanoMod",1,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunSniperMod",1,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunBulkMod",1,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunAgilityMod",1,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunPowerMod",1,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunFirestormMod",2,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunTechnicalMod",3,"RLChaingunModding")
	TNT1 A 0 A_JumpIfInventory("RLChaingunTechnicalMod",2,1)
    Goto RLChaingunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLChaingunFirestormMod",1,1)
    Goto RLChaingunModding
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoChaingunConfirm", 1) // Demolition Ammo Chaingun
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvDemolition Ammo 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("RLChaingunPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLBattleRifleBurstCannon // Change to the next assembly if you don't know how to make it.
	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",2,"RLBattleRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",1,1)
    Goto RLBattleRifleBurstCannon // 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
  RLBattleRifleBurstCannon:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLBattleRifleDemolitionAmmo // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",1,"RLBattleRifleDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleNanoMod",1,"RLBattleRifleDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleSniperMod",1,"RLBattleRifleDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleAgilityMod",1,"RLBattleRifleDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleTechnicalMod",1,"RLBattleRifleDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",1,"RLBattleRifleDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",3,"RLBattleRifleDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",2,1)
    Goto RLBattleRifleDemolitionAmmo // Change to the next assembly to check.
    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
  RLBattleRifleDemolitionAmmo:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLSuperMachinegunAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleNanoMod",1,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleSniperMod",1,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",1,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleAgilityMod",1,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",1,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",2,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleTechnicalMod",3,"RLSuperMachinegunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleTechnicalMod",2,1)
    Goto RLSuperMachinegunAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",1,1)
    Goto RLSuperMachinegunAssembly
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoBattleRifleConfirm", 1) // Demolition Ammo Battle Rifle
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvDemolition Ammo Battle 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLSuperMachinegunAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLSuperMachinegunAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLAntiMaterielRifleAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleNanoMod",1,"RLAntiMaterielRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleSniperMod",1,"RLAntiMaterielRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleAgilityMod",1,"RLAntiMaterielRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleTechnicalMod",1,"RLAntiMaterielRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",2,"RLAntiMaterielRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",2,"RLAntiMaterielRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",2,"RLAntiMaterielRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",1,1)
    Goto RLAntiMaterielRifleAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",1,1)
    Goto RLAntiMaterielRifleAssembly
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",1,1)
    Goto RLAntiMaterielRifleAssembly
    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
  RLAntiMaterielRifleAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLAntiMaterielRifleAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLAntiMaterielRifleAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLBattleRifleModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleNanoMod",1,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleBulkMod",1,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleTechnicalMod",1,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleFirestormMod",1,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleSniperMod",3,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRiflePowerMod",1,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleAgilityMod",2,"RLBattleRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleAgilityMod",1,1)
    Goto RLBattleRifleModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBattleRifleSniperMod",2,1)
    Goto RLBattleRifleModding
    TNT1 A 0 A_GiveInventory("RLAntiMaterielRifleConfirm", 1) // Anti-materiel Rifle
    TNT1 A 0 A_GiveInventory("RLAntiMaterielRifleAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvAnti-materiel 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("RLBattleRiflePowerMod", 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:
  RLInfusionLauncherAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLMotherInLawAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherFirestormMod",1,"RLMotherInLawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherNanoMod",1,"RLMotherInLawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherBulkMod",1,"RLMotherInLawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherPowerMod",1,"RLMotherInLawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherSniperMod",2,"RLMotherInLawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherTechnicalMod",2,"RLMotherInLawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherAgilityMod",2,"RLMotherInLawAssembly")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherAgilityMod",1,1)
    Goto RLMotherInLawAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherTechnicalMod",1,1)
    Goto RLMotherInLawAssembly
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherSniperMod",1,1)
    Goto RLMotherInLawAssembly
    TNT1 A 0 A_GiveInventory("RLInfusionLauncherConfirm", 1) // Plascharge Launcher
    TNT1 A 0 A_GiveInventory("RLPlasmaInfusionAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlascharge Launcher?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLRocketLauncherModding
  RLMotherInLawAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLMotherInLawAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLMotherInLawAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLRocketLauncherModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherBulkMod",1,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherSniperMod",1,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherAgilityMod",1,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherTechnicalMod",1,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherNanoMod",2,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherFirestormMod",2,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherPowerMod",2,"RLRocketLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherPowerMod",1,1)
    Goto RLRocketLauncherModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherNanoMod",1,1)
    Goto RLRocketLauncherModding
	TNT1 A 0 A_JumpIfInventory("RLRocketLauncherFirestormMod",1,1)
    Goto RLRocketLauncherModding
    TNT1 A 0 A_GiveInventory("RLMotherInLawConfirm", 1) // Mother-In-Law
    TNT1 A 0 A_GiveInventory("RLMotherInLawAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvMother-In-Law?\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("RLRocketLauncherPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLPlasmaRifleBurstCannon // Change to the next assembly if you don't know how to make it.
	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("RLPlasmaRifleTechnicalMod",1,"RLPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRiflePowerMod",1,"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_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
  RLPlasmaRifleBurstCannon:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLPlasmaCannonAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleFirestormMod",1,"RLPlasmaCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleNanoMod",1,"RLPlasmaCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleSniperMod",1,"RLPlasmaCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleAgilityMod",1,"RLPlasmaCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleTechnicalMod",1,"RLPlasmaCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRiflePowerMod",1,"RLPlasmaCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleBulkMod",3,"RLPlasmaCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleBulkMod",2,1)
    Goto RLPlasmaCannonAssembly // Change to the next assembly to check.
    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
  RLPlasmaCannonAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLPlasmaRefractorAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleFirestormMod",1,"RLPlasmaRefractorAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleNanoMod",1,"RLPlasmaRefractorAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleBulkMod",1,"RLPlasmaRefractorAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRiflePowerMod",1,"RLPlasmaRefractorAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleSniperMod",2,"RLPlasmaRefractorAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleTechnicalMod",2,"RLPlasmaRefractorAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleAgilityMod",2,"RLPlasmaRefractorAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleAgilityMod",1,1)
    Goto RLPlasmaRefractorAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleTechnicalMod",1,1)
    Goto RLPlasmaRefractorAssembly
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleSniperMod",1,1)
    Goto RLPlasmaRefractorAssembly
    TNT1 A 0 A_GiveInventory("RLPlasmaCannonConfirm", 1) // Plasma Cannon
    TNT1 A 0 A_GiveInventory("RLPlasmaInfusionAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasma Cannon?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPlasmaRifleModding
  RLPlasmaRefractorAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRefractorAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRefractorAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLPlasmaRifleModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleFirestormMod",1,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleNanoMod",1,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleSniperMod",2,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleBulkMod",1,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleAgilityMod",1,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleTechnicalMod",1,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRiflePowerMod",3,"RLPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRifleSniperMod",1,1)
    Goto RLPlasmaRifleModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaRiflePowerMod",2,1)
    Goto RLPlasmaRifleModding
    TNT1 A 0 A_GiveInventory("RLPlasmaRefractorConfirm", 1) // Plasma Refractor
    TNT1 A 0 A_GiveInventory("RLPlasmaRefractorAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasma Refractor?\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("RLPlasmaRiflePowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLVBFG9000Assembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLBFG9000FirestormMod",1,"RLVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000NanoMod",1,"RLVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000SniperMod",1,"RLVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000PowerMod",1,"RLVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000AgilityMod",1,"RLVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000TechnicalMod",1,"RLVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000BulkMod",2,"RLVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000BulkMod",1,1)
    Goto RLVBFG9000Assembly // 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
  RLVBFG9000Assembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLVBFG9000AssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLVBFG9000AssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLZeusCannonAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLBFG9000FirestormMod",1,"RLZeusCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000NanoMod",1,"RLZeusCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000SniperMod",1,"RLZeusCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000AgilityMod",1,"RLZeusCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000TechnicalMod",1,"RLZeusCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000BulkMod",1,"RLZeusCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000PowerMod",3,"RLZeusCannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000PowerMod",2,1)
    Goto RLZeusCannonAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLVBFG9000Confirm", 1) // VBFG9000
    TNT1 A 0 A_GiveInventory("RLVBFG9000AssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvVBFG9000?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLBFG9000Modding
  RLZeusCannonAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLZeusCannonAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLZeusCannonAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLBFG9000Modding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLBFG9000FirestormMod",1,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000NanoMod",1,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000AgilityMod",1,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000BulkMod",1,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000SniperMod",3,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000TechnicalMod",2,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000PowerMod",1,"RLBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLBFG9000TechnicalMod",1,1)
    Goto RLBFG9000Modding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBFG9000SniperMod",2,1)
    Goto RLBFG9000Modding
    TNT1 A 0 A_GiveInventory("RLZeusCannonConfirm", 1) // ZeusCannon
    TNT1 A 0 A_GiveInventory("RLZeusCannonAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvZeus Cannon?\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("RLBFG9000PowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLBlasterOvercharged // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLBlasterFirestormMod",1,"RLBlasterOvercharged")
	TNT1 A 0 A_JumpIfInventory("RLBlasterNanoMod",1,"RLBlasterOvercharged")
	TNT1 A 0 A_JumpIfInventory("RLBlasterSniperMod",1,"RLBlasterOvercharged")
	TNT1 A 0 A_JumpIfInventory("RLBlasterPowerMod",1,"RLBlasterOvercharged")
	TNT1 A 0 A_JumpIfInventory("RLBlasterAgilityMod",1,"RLBlasterOvercharged")
	TNT1 A 0 A_JumpIfInventory("RLBlasterTechnicalMod",1,"RLBlasterOvercharged")
	TNT1 A 0 A_JumpIfInventory("RLBlasterBulkMod",2,"RLBlasterOvercharged")
	TNT1 A 0 A_JumpIfInventory("RLBlasterBulkMod",1,1)
    Goto RLBlasterOvercharged // 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
  RLBlasterOvercharged:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLHeavyPulseBlasterAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLBlasterFirestormMod",1,"RLHeavyPulseBlasterAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBlasterNanoMod",1,"RLHeavyPulseBlasterAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBlasterSniperMod",1,"RLHeavyPulseBlasterAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBlasterBulkMod",1,"RLHeavyPulseBlasterAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBlasterAgilityMod",1,"RLHeavyPulseBlasterAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBlasterTechnicalMod",2,"RLHeavyPulseBlasterAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBlasterPowerMod",2,"RLHeavyPulseBlasterAssembly")
	TNT1 A 0 A_JumpIfInventory("RLBlasterPowerMod",1,1)
    Goto RLHeavyPulseBlasterAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBlasterTechnicalMod",1,1)
    Goto RLHeavyPulseBlasterAssembly
    TNT1 A 0 A_GiveInventory("RLOverchargedBlasterConfirm", 1) // Overcharged Blaster
    TNT1 A 0 A_GiveInventory("RLPlasmaPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvOvercharged Blaster?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPistolModding
  RLHeavyPulseBlasterAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLBlasterModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLBlasterFirestormMod",1,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterNanoMod",1,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterBulkMod",1,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterPowerMod",1,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterSniperMod",2,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterTechnicalMod",2,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterAgilityMod",2,"RLBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLBlasterAgilityMod",1,1)
    Goto RLBlasterModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLBlasterTechnicalMod",1,1)
    Goto RLBlasterModding
	TNT1 A 0 A_JumpIfInventory("RLBlasterSniperMod",1,1)
    Goto RLBlasterModding
    TNT1 A 0 A_GiveInventory("RLHeavyPulseBlasterConfirm", 1) // Heavy Pulse Blaster
    TNT1 A 0 A_GiveInventory("RLPlasmaInfusionAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvHeavy Pulse 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("RLBlasterPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLCombatPistolPlasmaPistol // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolFirestormMod",1,"RLCombatPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolNanoMod",1,"RLCombatPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolSniperMod",1,"RLCombatPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolPowerMod",1,"RLCombatPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolAgilityMod",1,"RLCombatPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolTechnicalMod",1,"RLCombatPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolBulkMod",2,"RLCombatPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolBulkMod",1,1)
    Goto RLCombatPistolPlasmaPistol // 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
  RLCombatPistolPlasmaPistol:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLCombatPistolDemolitionAmmo // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolFirestormMod",1,"RLCombatPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolNanoMod",1,"RLCombatPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolSniperMod",1,"RLCombatPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolBulkMod",1,"RLCombatPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolAgilityMod",1,"RLCombatPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolTechnicalMod",2,"RLCombatPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolPowerMod",2,"RLCombatPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolPowerMod",1,1)
    Goto RLCombatPistolDemolitionAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolTechnicalMod",1,1)
    Goto RLCombatPistolDemolitionAmmo
    TNT1 A 0 A_GiveInventory("RLEnergyCombatPistolConfirm", 1) // Plasma Combat Pistol
    TNT1 A 0 A_GiveInventory("RLPlasmaPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasma Combat Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLCombatPistolModding
  RLCombatPistolDemolitionAmmo:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLCombatPistolModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolNanoMod",1,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolSniperMod",1,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolBulkMod",1,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolAgilityMod",1,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolPowerMod",1,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolFirestormMod",2,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolTechnicalMod",3,"RLCombatPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolTechnicalMod",2,1)
    Goto RLCombatPistolModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLCombatPistolFirestormMod",1,1)
    Goto RLCombatPistolModding
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoCombatPistolConfirm", 1) // Demolition Ammo Combat Pistol
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvDemolition Ammo 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("RLCombatPistolPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLMarksmanPistolPlasmaPistol // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolFirestormMod",1,"RLMarksmanPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolNanoMod",1,"RLMarksmanPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolSniperMod",1,"RLMarksmanPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolPowerMod",1,"RLMarksmanPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolAgilityMod",1,"RLMarksmanPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolTechnicalMod",1,"RLMarksmanPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolBulkMod",2,"RLMarksmanPistolPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolBulkMod",1,1)
    Goto RLMarksmanPistolPlasmaPistol // 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
  RLMarksmanPistolPlasmaPistol:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLMarksmanPistolDemolitionAmmo // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolFirestormMod",1,"RLMarksmanPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolNanoMod",1,"RLMarksmanPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolSniperMod",1,"RLMarksmanPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolBulkMod",1,"RLMarksmanPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolAgilityMod",1,"RLMarksmanPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolTechnicalMod",2,"RLMarksmanPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolPowerMod",2,"RLMarksmanPistolDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolPowerMod",1,1)
    Goto RLMarksmanPistolDemolitionAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolTechnicalMod",1,1)
    Goto RLMarksmanPistolDemolitionAmmo
    TNT1 A 0 A_GiveInventory("RLEnergyMarksmanPistolConfirm", 1) // Plasma Marksman Pistol
    TNT1 A 0 A_GiveInventory("RLPlasmaPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasma Marksman Pistol?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMarksmanPistolModding
  RLMarksmanPistolDemolitionAmmo:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLMarksmanPistolModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolNanoMod",1,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolSniperMod",1,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolBulkMod",1,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolAgilityMod",1,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolPowerMod",1,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolFirestormMod",2,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolTechnicalMod",3,"RLMarksmanPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolTechnicalMod",2,1)
    Goto RLMarksmanPistolModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMarksmanPistolFirestormMod",1,1)
    Goto RLMarksmanPistolModding
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoMarksmanPistolConfirm", 1) // Demolition Ammo Marksman Pistol
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvDemolition Ammo 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("RLMarksmanPistolPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLHandcannonPlasmaPistol // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLHandcannonFirestormMod",1,"RLHandcannonPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonNanoMod",1,"RLHandcannonPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonSniperMod",1,"RLHandcannonPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonPowerMod",1,"RLHandcannonPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonAgilityMod",1,"RLHandcannonPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonTechnicalMod",1,"RLHandcannonPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonBulkMod",2,"RLHandcannonPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonBulkMod",1,1)
    Goto RLHandcannonPlasmaPistol // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerHandcannonConfirm", 1) // High Power Handcannon
    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
  RLHandcannonPlasmaPistol:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLHandcannonDemolitionAmmo // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLHandcannonFirestormMod",1,"RLHandcannonDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonNanoMod",1,"RLHandcannonDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonSniperMod",1,"RLHandcannonDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonBulkMod",1,"RLHandcannonDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonAgilityMod",1,"RLHandcannonDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonTechnicalMod",2,"RLHandcannonDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonPowerMod",2,"RLHandcannonDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonPowerMod",1,1)
    Goto RLHandcannonDemolitionAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLHandcannonTechnicalMod",1,1)
    Goto RLHandcannonDemolitionAmmo
    TNT1 A 0 A_GiveInventory("RLPlasmaHandcannonConfirm", 1) // Plasma Handcannon
    TNT1 A 0 A_GiveInventory("RLPlasmaPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasma Handcannon?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLHandcannonModding
  RLHandcannonDemolitionAmmo:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLHandcannonModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLHandcannonNanoMod",1,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonSniperMod",1,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonBulkMod",1,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonAgilityMod",1,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonPowerMod",1,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonFirestormMod",2,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonTechnicalMod",3,"RLHandcannonModding")
	TNT1 A 0 A_JumpIfInventory("RLHandcannonTechnicalMod",2,1)
    Goto RLHandcannonModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLHandcannonFirestormMod",1,1)
    Goto RLHandcannonModding
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoHandcannonConfirm", 1) // Demolition Ammo Handcannon
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvDemolition Ammo 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("RLHandcannonPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLUziBurstCannon // Change to the next assembly if you don't know how to make it.
	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("RLUziTechnicalMod",1,"RLUziBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",2,"RLUziBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",1,1)
    Goto RLUziBurstCannon // 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
  RLUziBurstCannon:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLUziPlasmaPistol // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLUziFirestormMod",1,"RLUziPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziNanoMod",1,"RLUziPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziSniperMod",1,"RLUziPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziAgilityMod",1,"RLUziPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziTechnicalMod",1,"RLUziPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziPowerMod",1,"RLUziPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",3,"RLUziPlasmaPistol")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",2,1)
    Goto RLUziPlasmaPistol // Change to the next assembly to check.
    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
  RLUziPlasmaPistol:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLUziDemolitionAmmo // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLUziFirestormMod",1,"RLUziDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziNanoMod",1,"RLUziDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziSniperMod",1,"RLUziDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",1,"RLUziDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziAgilityMod",1,"RLUziDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziTechnicalMod",2,"RLUziDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziPowerMod",2,"RLUziDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLUziPowerMod",1,1)
    Goto RLUziDemolitionAmmo // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLUziTechnicalMod",1,1)
    Goto RLUziDemolitionAmmo
    TNT1 A 0 A_GiveInventory("RLPlasmaUziConfirm", 1) // Plasma Uzi
    TNT1 A 0 A_GiveInventory("RLPlasmaPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasma Uzi?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLUziModding
  RLUziDemolitionAmmo:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLUziModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLUziNanoMod",1,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziSniperMod",1,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziBulkMod",1,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziAgilityMod",1,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziPowerMod",1,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziFirestormMod",2,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziTechnicalMod",3,"RLUziModding")
	TNT1 A 0 A_JumpIfInventory("RLUziTechnicalMod",2,1)
    Goto RLUziModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLUziFirestormMod",1,1)
    Goto RLUziModding
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoUziConfirm", 1) // Demolition Ammo Uzi
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvDemolition Ammo 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("RLUziPowerMod", 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:
  RLSuperShotgunPlasmaticShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLSuperShotgunNanoShrapnel // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunFirestormMod",1,"RLSuperShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunNanoMod",1,"RLSuperShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunAgilityMod",1,"RLSuperShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunTechnicalMod",1,"RLSuperShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunBulkMod",1,"RLSuperShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunPowerMod",1,"RLSuperShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunSniperMod",2,"RLSuperShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunSniperMod",1,1)
    Goto RLSuperShotgunNanoShrapnel // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelSuperShotgunConfirm", 1) // Plasmatic Shrapnel Super Shotgun
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasmatic Super Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLSuperShotgunModding
  RLSuperShotgunNanoShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLSuperShotgunModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunFirestormMod",1,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunAgilityMod",1,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunTechnicalMod",1,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunBulkMod",1,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunSniperMod",1,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunPowerMod",2,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunNanoMod",2,"RLSuperShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunNanoMod",1,1)
    Goto RLSuperShotgunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLSuperShotgunPowerMod",1,1)
    Goto RLSuperShotgunModding
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelSuperShotgunConfirm", 1) // Nano Shrapnel Super Shotgun
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNano Super 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("RLSuperShotgunPowerMod", 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:
  RLAssaultShotgunPlasmaticShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLAssaultShotgunNanoShrapnel // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunFirestormMod",1,"RLAssaultShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunNanoMod",1,"RLAssaultShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunAgilityMod",1,"RLAssaultShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunTechnicalMod",1,"RLAssaultShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunBulkMod",1,"RLAssaultShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunPowerMod",1,"RLAssaultShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunSniperMod",2,"RLAssaultShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunSniperMod",1,1)
    Goto RLAssaultShotgunNanoShrapnel // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelAssaultShotgunConfirm", 1) // Plasmatic Shrapnel Assault Shotgun
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasmatic Assault Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLAssaultShotgunModding
  RLAssaultShotgunNanoShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLAssaultShotgunModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunFirestormMod",1,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunAgilityMod",1,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunTechnicalMod",1,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunBulkMod",1,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunSniperMod",1,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunPowerMod",2,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunNanoMod",2,"RLAssaultShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunNanoMod",1,1)
    Goto RLAssaultShotgunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLAssaultShotgunPowerMod",1,1)
    Goto RLAssaultShotgunModding
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelAssaultShotgunConfirm", 1) // Nano Shrapnel Assault Shotgun
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNano 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("RLAssaultShotgunPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLTristarBlasterModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterFirestormMod",1,"RLTristarBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterNanoMod",1,"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",2,"RLTristarBlasterModding")
	TNT1 A 0 A_JumpIfInventory("RLTristarBlasterBulkMod",1,1)
    Goto RLTristarBlasterModding // 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
  RLTristarBlasterModding:
    TNT1 A 0 A_JumpIfInventory("RLTristarBlasterModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLTristarBlasterModLimit",1)
    TNT1 A 0 A_GiveInventory("RLTristarBlasterPowerMod", 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:
  RLPlasmaShotgunPlasmaticShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLPlasmaShotgunNanoShrapnel // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunFirestormMod",1,"RLPlasmaShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunNanoMod",1,"RLPlasmaShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunAgilityMod",1,"RLPlasmaShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunTechnicalMod",1,"RLPlasmaShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunBulkMod",1,"RLPlasmaShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunPowerMod",1,"RLPlasmaShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunSniperMod",2,"RLPlasmaShotgunNanoShrapnel")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunSniperMod",1,1)
    Goto RLPlasmaShotgunNanoShrapnel // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelPlasmaShotgunConfirm", 1) // Plasmatic Shrapnel Plasma Shotgun
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvOvercharged Plasma Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPlasmaShotgunModding
  RLPlasmaShotgunNanoShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLNanoShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLVoltgunAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunFirestormMod",1,"RLVoltgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunAgilityMod",1,"RLVoltgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunTechnicalMod",1,"RLVoltgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunBulkMod",1,"RLVoltgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunSniperMod",1,"RLVoltgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunPowerMod",2,"RLVoltgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunNanoMod",2,"RLVoltgunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunNanoMod",1,1)
    Goto RLVoltgunAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunPowerMod",1,1)
    Goto RLVoltgunAssembly
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelPlasmaShotgunConfirm", 1) // Nano Shrapnel Plasma Shotgun
    TNT1 A 0 A_GiveInventory("RLNanoShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNano Plasma Shotgun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLPlasmaShotgunModding
  RLVoltgunAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLVoltgunAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLVoltgunAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLPlasmaShotgunModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunFirestormMod",1,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunAgilityMod",1,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunBulkMod",1,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunNanoMod",1,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunPowerMod",1,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunTechnicalMod",2,"RLPlasmaShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunSniperMod",2,1)
    Goto RLPlasmaShotgunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaShotgunTechnicalMod",1,1)
    Goto RLPlasmaShotgunModding
    TNT1 A 0 A_GiveInventory("RLVoltgunConfirm", 1) // Voltgun
    TNT1 A 0 A_GiveInventory("RLVoltgunAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvVoltgun?\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("RLPlasmaShotgunPowerMod", 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:
  RLLaserPulseLauncherAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLMissileLauncherModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherFirestormMod",1,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherNanoMod",1,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherBulkMod",1,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherPowerMod",1,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherSniperMod",2,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherTechnicalMod",2,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherAgilityMod",2,"RLMissileLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherAgilityMod",1,1)
    Goto RLMissileLauncherModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherTechnicalMod",1,1)
    Goto RLMissileLauncherModding
	TNT1 A 0 A_JumpIfInventory("RLMissileLauncherSniperMod",1,1)
    Goto RLMissileLauncherModding
    TNT1 A 0 A_GiveInventory("RLLaserPulseLauncherConfirm", 1) // Defence Drone Launcher
    TNT1 A 0 A_GiveInventory("RLPlasmaInfusionAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvDefence Drone 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("RLMissileLauncherPowerMod", 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:
  RLFlamethrowerAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLFlamethrowerAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLFlamethrowerAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLIncinerationDeviceLauncherAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherNanoMod",1,"RLIncinerationDeviceLauncherAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherSniperMod",1,"RLIncinerationDeviceLauncherAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherBulkMod",1,"RLIncinerationDeviceLauncherAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherAgilityMod",1,"RLIncinerationDeviceLauncherAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherPowerMod",1,"RLIncinerationDeviceLauncherAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherTechnicalMod",1,"RLIncinerationDeviceLauncherAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherFirestormMod",2,"RLIncinerationDeviceLauncherAssembly")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherFirestormMod",1,1)
    Goto RLIncinerationDeviceLauncherAssembly // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLFlamethrowerConfirm", 1) // Flamethrower
    TNT1 A 0 A_GiveInventory("RLFlamethrowerAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvFlamethrower?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLNapalmLauncherModding
  RLIncinerationDeviceLauncherAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLNapalmLauncherModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherFirestormMod",1,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherNanoMod",1,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherBulkMod",1,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherPowerMod",1,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherSniperMod",2,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherTechnicalMod",2,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherAgilityMod",2,"RLNapalmLauncherModding")
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherAgilityMod",1,1)
    Goto RLNapalmLauncherModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherTechnicalMod",1,1)
    Goto RLNapalmLauncherModding
	TNT1 A 0 A_JumpIfInventory("RLNapalmLauncherSniperMod",1,1)
    Goto RLNapalmLauncherModding
    TNT1 A 0 A_GiveInventory("RLIncinerationDeviceLauncherConfirm", 1) // Incineration Device Launcher
    TNT1 A 0 A_GiveInventory("RLPlasmaInfusionAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvIncineration Device 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("RLNapalmLauncherPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLMinigunBurstCannon // Change to the next assembly if you don't know how to make it.
	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("RLMinigunPowerMod",1,"RLMinigunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLMinigunAgilityMod",1,"RLMinigunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLMinigunTechnicalMod",1,"RLMinigunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",2,"RLMinigunBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLMinigunDemolitionAmmo // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLMinigunFirestormMod",1,"RLMinigunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunNanoMod",1,"RLMinigunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunSniperMod",1,"RLMinigunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunAgilityMod",1,"RLMinigunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunTechnicalMod",1,"RLMinigunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunPowerMod",1,"RLMinigunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",3,"RLMinigunDemolitionAmmo")
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",2,1)
    Goto RLMinigunDemolitionAmmo // Change to the next assembly to check.
    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
  RLMinigunDemolitionAmmo:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLDemolitionAmmoAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLAutocannonAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLMinigunNanoMod",1,"RLAutocannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunSniperMod",1,"RLAutocannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",1,"RLAutocannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunAgilityMod",1,"RLAutocannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunPowerMod",1,"RLAutocannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunFirestormMod",2,"RLAutocannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunTechnicalMod",3,"RLAutocannonAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunTechnicalMod",2,1)
    Goto RLAutocannonAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMinigunFirestormMod",1,1)
    Goto RLAutocannonAssembly
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoMinigunConfirm", 1) // Demolition Ammo Minigun
    TNT1 A 0 A_GiveInventory("RLDemolitionAmmoAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvDemolition Ammo Minigun?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMinigunModding
  RLAutocannonAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLAutocannonAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLAutocannonAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLLaserMinigunAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLMinigunNanoMod",1,"RLLaserMinigunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunSniperMod",1,"RLLaserMinigunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",1,"RLLaserMinigunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunAgilityMod",1,"RLLaserMinigunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunTechnicalMod",1,"RLLaserMinigunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunPowerMod",2,"RLLaserMinigunAssembly")
	TNT1 A 0 A_JumpIfInventory("RLMinigunFirestormMod",2,1)
    Goto RLLaserMinigunAssembly // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMinigunPowerMod",1,1)
    Goto RLLaserMinigunAssembly
    TNT1 A 0 A_GiveInventory("RLAutocannonConfirm", 1) // Autocannon
    TNT1 A 0 A_GiveInventory("RLAutocannonAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvAutocannon?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMinigunModding
  RLLaserMinigunAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaInfusionAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLMinigunModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLMinigunFirestormMod",1,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunNanoMod",1,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunBulkMod",1,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunPowerMod",1,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunSniperMod",2,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunTechnicalMod",2,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunAgilityMod",2,"RLMinigunModding")
	TNT1 A 0 A_JumpIfInventory("RLMinigunAgilityMod",1,1)
    Goto RLMinigunModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLMinigunTechnicalMod",1,1)
    Goto RLMinigunModding
	TNT1 A 0 A_JumpIfInventory("RLMinigunSniperMod",1,1)
    Goto RLMinigunModding
    TNT1 A 0 A_GiveInventory("RLLaserMinigunConfirm", 1) // Laser Minigun
    TNT1 A 0 A_GiveInventory("RLPlasmaInfusionAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvLaser 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("RLMinigunPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLLaserRifleBurstCannon // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleFirestormMod",1,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleNanoMod",1,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleSniperMod",1,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRiflePowerMod",1,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleAgilityMod",1,"RLLaserRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleTechnicalMod",1,"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_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
  RLLaserRifleBurstCannon:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLGaussRifleAssembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleFirestormMod",1,"RLGaussRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleNanoMod",1,"RLGaussRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleSniperMod",1,"RLGaussRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleAgilityMod",1,"RLGaussRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleTechnicalMod",1,"RLGaussRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRiflePowerMod",1,"RLGaussRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleBulkMod",3,"RLGaussRifleAssembly")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleBulkMod",2,1)
    Goto RLGaussRifleAssembly // Change to the next assembly to check.
    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
  RLGaussRifleAssembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLGaussRifleAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLGaussRifleAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLLaserRifleModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleNanoMod",1,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleTechnicalMod",1,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleBulkMod",1,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRiflePowerMod",1,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleFirestormMod",2,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleAgilityMod",2,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleSniperMod",2,"RLLaserRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleSniperMod",1,1)
    Goto RLLaserRifleModding // Change to the next assembly to check.
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleAgilityMod",1,1)
    Goto RLLaserRifleModding
	TNT1 A 0 A_JumpIfInventory("RLLaserRifleFirestormMod",1,1)
    Goto RLLaserRifleModding
    TNT1 A 0 A_GiveInventory("RLGaussRifleConfirm", 1) // Gauss Rifle
    TNT1 A 0 A_GiveInventory("RLGaussRifleAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvGauss 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("RLLaserRiflePowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLNuclearPlasmaPistolSupercharged // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolFirestormMod",1,"RLNuclearPlasmaPistolSupercharged")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolSniperMod",1,"RLNuclearPlasmaPistolSupercharged")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolPowerMod",1,"RLNuclearPlasmaPistolSupercharged")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolAgilityMod",1,"RLNuclearPlasmaPistolSupercharged")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolBulkMod",2,"RLNuclearPlasmaPistolSupercharged")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolBulkMod",1,1)
    Goto RLNuclearPlasmaPistolSupercharged // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearPlasmaPistolConfirm", 1) // High Power NuclearPlasmaRifle
    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
  RLNuclearPlasmaPistolSupercharged:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaPistolAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLNuclearPlasmaPistolModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolFirestormMod",1,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolSniperMod",1,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolBulkMod",1,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolAgilityMod",1,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolTechnicalMod",2,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolPowerMod",2,"RLNuclearPlasmaPistolModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaPistolPowerMod",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("RLSuperchargedNuclearPlasmaPistolConfirm", 1) // Supercharged Nuclear Plasma Pistol
    TNT1 A 0 A_GiveInventory("RLPlasmaPistolAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvSupercharged 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("RLNuclearPlasmaPistolPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLNuclearPlasmaRifleBurstCannon // Change to the next assembly if you don't know how to make it.
	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("RLNuclearPlasmaRifleBulkMod",2,"RLNuclearPlasmaRifleBurstCannon")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleBulkMod",1,1)
    Goto RLNuclearPlasmaRifleBurstCannon // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLHighPowerNuclearPlasmaRifleConfirm", 1) // High Power NuclearPlasmaRifle
    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
  RLNuclearPlasmaRifleBurstCannon:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLBurstCannonAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLNuclearPlasmaRifleModding // Change to the next assembly if you don't know how to make it.
	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",1,"RLNuclearPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleBulkMod",3,"RLNuclearPlasmaRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearPlasmaRifleBulkMod",2,1)
    Goto RLNuclearPlasmaRifleModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLBurstCannonNuclearPlasmaRifleConfirm", 1) // Burst Cannon Nuclear 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("RLNuclearPlasmaRiflePowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLNuclearVBFG9000Assembly // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000FirestormMod",1,"RLNuclearVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000SniperMod",1,"RLNuclearVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000PowerMod",1,"RLNuclearVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000AgilityMod",1,"RLNuclearVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000BulkMod",2,"RLNuclearVBFG9000Assembly")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000BulkMod",1,1)
    Goto RLNuclearVBFG9000Assembly // 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
  RLNuclearVBFG9000Assembly:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLVBFG9000AssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLVBFG9000AssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLNuclearBFG9000Modding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000FirestormMod",1,"RLNuclearBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000SniperMod",1,"RLNuclearBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000AgilityMod",1,"RLNuclearBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000BulkMod",1,"RLNuclearBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000PowerMod",3,"RLNuclearBFG9000Modding")
	TNT1 A 0 A_JumpIfInventory("RLNuclearBFG9000PowerMod",2,1)
    Goto RLNuclearBFG9000Modding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLNuclearVBFG9000Confirm", 1) // Nuclear VBFG9000
    TNT1 A 0 A_GiveInventory("RLVBFG9000AssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNuclear VBFG9000?\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("RLNuclearBFG9000PowerMod", 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:
  RLPiercingAxe:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPiercingBladeAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPiercingBladeAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLAxeModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLAxeTechnicalMod",1,"RLAxeModding")
	TNT1 A 0 A_JumpIfInventory("RLAxeBulkMod",1,"RLAxeModding")
	TNT1 A 0 A_JumpIfInventory("RLAxePowerMod",1,"RLAxeModding")
	TNT1 A 0 A_JumpIfInventory("RLAxeAgilityMod",2,"RLAxeModding")
	TNT1 A 0 A_JumpIfInventory("RLAxeAgilityMod",1,1)
    Goto RLAxeModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPiercingAxeConfirm", 1) // Piercing Axe
    TNT1 A 0 A_GiveInventory("RLPiercingBladeAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanoedge Axe?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLAxeModding
  RLAxeModding:
    TNT1 A 0 A_JumpIfInventory("RLAxeModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLAxeModLimit",1)
    TNT1 A 0 A_GiveInventory("RLAxePowerMod", 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:
  RLPiercingMace:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPiercingBladeAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPiercingBladeAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLMaceModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLMaceTechnicalMod",1,"RLMaceModding")
	TNT1 A 0 A_JumpIfInventory("RLMaceBulkMod",1,"RLMaceModding")
	TNT1 A 0 A_JumpIfInventory("RLMacePowerMod",1,"RLMaceModding")
	TNT1 A 0 A_JumpIfInventory("RLMaceAgilityMod",2,"RLMaceModding")
	TNT1 A 0 A_JumpIfInventory("RLMaceAgilityMod",1,1)
    Goto RLMaceModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPiercingMaceConfirm", 1) // Piercing Mace
    TNT1 A 0 A_GiveInventory("RLPiercingBladeAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanoedge Mace?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMaceModding
  RLMaceModding:
    TNT1 A 0 A_JumpIfInventory("RLMaceModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMaceModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMacePowerMod", 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:
  RLPiercingMachete:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPiercingBladeAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPiercingBladeAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLMacheteModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLMacheteTechnicalMod",1,"RLMacheteModding")
	TNT1 A 0 A_JumpIfInventory("RLMacheteBulkMod",1,"RLMacheteModding")
	TNT1 A 0 A_JumpIfInventory("RLMachetePowerMod",1,"RLMacheteModding")
	TNT1 A 0 A_JumpIfInventory("RLMacheteAgilityMod",2,"RLMacheteModding")
	TNT1 A 0 A_JumpIfInventory("RLMacheteAgilityMod",1,1)
    Goto RLMacheteModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPiercingMacheteConfirm", 1) // Piercing Machete
    TNT1 A 0 A_GiveInventory("RLPiercingBladeAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvNanoedge Machete?\n\ciFire\c- confirms - \cr\crAltFire\c-\c- cancels.", 5)
    TNT1 A 0 A_PlaySound("hud/assemblyalert", 5)
    Goto RLMacheteModding
  RLMacheteModding:
    TNT1 A 0 A_JumpIfInventory("RLMacheteModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLMacheteModLimit",1)
    TNT1 A 0 A_GiveInventory("RLMachetePowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLMarksmanRifleModding // Change to the next assembly if you don't know how to make it.
	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("RLMarksmanRiflePowerMod",1,"RLMarksmanRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleAgilityMod",1,"RLMarksmanRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleTechnicalMod",1,"RLMarksmanRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleBulkMod",2,"RLMarksmanRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLMarksmanRifleBulkMod",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("RLMarksmanRiflePowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLVanguardRifleModding // Change to the next assembly if you don't know how to make it.
	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("RLVanguardRiflePowerMod",1,"RLVanguardRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLVanguardRifleAgilityMod",1,"RLVanguardRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLVanguardRifleTechnicalMod",1,"RLVanguardRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLVanguardRifleBulkMod",2,"RLVanguardRifleModding")
	TNT1 A 0 A_JumpIfInventory("RLVanguardRifleBulkMod",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("RLVanguardRiflePowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLHuntingRevolverModding // Change to the next assembly if you don't know how to make it.
	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("RLHuntingRevolverPowerMod",1,"RLHuntingRevolverModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverAgilityMod",1,"RLHuntingRevolverModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverTechnicalMod",1,"RLHuntingRevolverModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverBulkMod",2,"RLHuntingRevolverModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingRevolverBulkMod",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("RLHuntingRevolverPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLThompsonModding // Change to the next assembly if you don't know how to make it.
	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("RLThompsonPowerMod",1,"RLThompsonModding")
	TNT1 A 0 A_JumpIfInventory("RLThompsonAgilityMod",1,"RLThompsonModding")
	TNT1 A 0 A_JumpIfInventory("RLThompsonTechnicalMod",1,"RLThompsonModding")
	TNT1 A 0 A_JumpIfInventory("RLThompsonBulkMod",2,"RLThompsonModding")
	TNT1 A 0 A_JumpIfInventory("RLThompsonBulkMod",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("RLThompsonPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLPP7Modding // Change to the next assembly if you don't know how to make it.
	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("RLPP7PowerMod",1,"RLPP7Modding")
	TNT1 A 0 A_JumpIfInventory("RLPP7AgilityMod",1,"RLPP7Modding")
	TNT1 A 0 A_JumpIfInventory("RLPP7TechnicalMod",1,"RLPP7Modding")
	TNT1 A 0 A_JumpIfInventory("RLPP7BulkMod",2,"RLPP7Modding")
	TNT1 A 0 A_JumpIfInventory("RLPP7BulkMod",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("RLPP7PowerMod", 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:
  RLHuntingShotgunPlasmaticShrapnel:
	TNT1 A 0 A_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLPlasmaticShrapnelAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLHuntingShotgunModding // Change to the next assembly if you don't know how to make it.
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunFirestormMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunNanoMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunAgilityMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunTechnicalMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunBulkMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunPowerMod",1,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunSniperMod",2,"RLHuntingShotgunModding")
	TNT1 A 0 A_JumpIfInventory("RLHuntingShotgunSniperMod",1,1)
    Goto RLHuntingShotgunModding // Change to the next assembly to check.
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelHuntingShotgunConfirm", 1) // Plasmatic Shrapnel Hunting Shotgun
    TNT1 A 0 A_GiveInventory("RLPlasmaticShrapnelAssemblyLearntToken", 1) // Assembly is now listed in the HUD menus
	TNT1 A 0 A_Print("Do you want to assemble the \cvPlasmatic 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("RLHuntingShotgunPowerMod", 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_JumpIf(CallACS("DRLA_AssemblyLearning") == 0, 3) // Skip this check if required assembly learning is off.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,2, AAPTR_PLAYER1) // You need to know how to make this assembly.
	TNT1 A 0 A_JumpIfInventory("RLHighPowerWeaponAssemblyLearntToken",1,1) // Extra check for multiplayer.
    Goto RLRCP90Modding // Change to the next assembly if you don't know how to make it.
	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("RLRCP90PowerMod",1,"RLRCP90Modding")
	TNT1 A 0 A_JumpIfInventory("RLRCP90AgilityMod",1,"RLRCP90Modding")
	TNT1 A 0 A_JumpIfInventory("RLRCP90TechnicalMod",1,"RLRCP90Modding")
	TNT1 A 0 A_JumpIfInventory("RLRCP90BulkMod",2,"RLRCP90Modding")
	TNT1 A 0 A_JumpIfInventory("RLRCP90BulkMod",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("RLRCP90PowerMod", 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("RLJackhammerPowerMod", 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("RLRailgunPowerMod", 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("RLBFG10KPowerMod", 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("RLUnknownHeraldPowerMod", 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("RLNullPointerPowerMod", 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("RLFragShotgunPowerMod", 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("RLQuadShotgunPowerMod", 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("RLTantrumCannonPowerMod", 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("RLRevenantsLauncherPowerMod", 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("RLGrammatonClericBerettaPowerMod", 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("RLAntiFreakJackalPowerMod", 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("RLHellsingARMSCasullPowerMod", 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("RLTrigunPowerMod", 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("RLParticleBeamCannonPowerMod", 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("RLPlasmaRedirectionCannonPowerMod", 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("RLSteelBeastPowerMod", 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("RLSussGunPowerMod", 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("RLMIRVLauncherPowerMod", 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("RLSubtleKnifePowerMod", 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("RLSpectreRevolverPowerMod", 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("RLMarathonAssaultRiflePowerMod", 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("RLMarathonShotgunsPowerMod", 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("RLMonsterFrisbeePowerMod", 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("RLHellsReignPowerMod", 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("RLDeathsGazePowerMod", 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("RLSoulstormRiflePowerMod", 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("RLMortalyzerPowerMod", 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("RLDreadshotMortarPowerMod", 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("RLDuke2RifleFirestormMod",0,"DN2PermanentAlready")
    TNT1 A 0 A_PlaySound("weapons/dn2gunpickup",7)
    TNT1 A 0 A_TakeInventory("RLDuke2RifleLaserAmmo", 32)
    TNT1 A 0 A_TakeInventory("RLDuke2RifleFlamethrowerAmmo", 64)
    TNT1 A 0 A_GiveInventory("RLDuke2RifleRocketAmmo",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 rockets 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("RLSilencedPistolPowerMod", 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("RLShredderPistolPowerMod", 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("RLShredderShotgunPowerMod", 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("RLSpeedloaderPistolPowerMod", 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("RLElephantGunPowerMod", 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("RLGatlingGunPowerMod", 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("RLMicroLauncherPowerMod", 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("RLTacticalShotgunPowerMod", 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("RLHeavyShotgunPowerMod", 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("RLHeavyCombatShotgunPowerMod", 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("RLHeavyDoubleShotgunPowerMod", 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("RLHeavySuperShotgunPowerMod", 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("RLHeavyAssaultShotgunPowerMod", 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("RLHeavyPlasmaShotgunPowerMod", 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("RLFlamethrowerPowerMod", 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("RLShrapnelCannonPowerMod", 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("RLNuclearPlasmaRevolverPowerMod", 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("RLStealthRiflePowerMod", 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("RLSniperRiflePowerMod", 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("RLPiercingChainsawPowerMod", 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("RLHighPowerPistolPowerMod", 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("RLHighPowerChaingunPowerMod", 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("RLHighPowerPlasmaRiflePowerMod", 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("RLHighPowerBFG9000PowerMod", 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("RLHighPowerBlasterPowerMod", 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("RLHighPowerCombatPistolPowerMod", 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("RLHighPowerMarksmanPistolPowerMod", 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("RLHighPowerHandcannonPowerMod", 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("RLHighPowerMinigunPowerMod", 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("RLHighPowerLaserRiflePowerMod", 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("RLHighPowerNuclearPlasmaPistolPowerMod", 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("RLHighPowerNuclearPlasmaRiflePowerMod", 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("RLHighPowerNuclearBFG9000PowerMod", 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("RLHighPowerTristarBlasterPowerMod", 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("RLHighPowerUziPowerMod", 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("RLHighPowerBattleRiflePowerMod", 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("RLPlasmaticShrapnelShotgunPowerMod", 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("RLPlasmaticShrapnelCombatShotgunPowerMod", 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("RLPlasmaticShrapnelDoubleShotgunPowerMod", 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("RLPlasmaticShrapnelSuperShotgunPowerMod", 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("RLPlasmaticShrapnelAssaultShotgunPowerMod", 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("RLPlasmaticShrapnelPlasmaShotgunPowerMod", 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("RLDoubleChainsawPowerMod", 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("RLTacticalRocketLauncherPowerMod", 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("RLStormPistolPowerMod", 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("RLStormCombatPistolPowerMod", 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("RLStormMarksmanPistolPowerMod", 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("RLPlasmaPistolPowerMod", 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("RLPlasmaMarksmanPistolPowerMod", 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("RLPlasmaCombatPistolPowerMod", 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("RLStormHandcannonPowerMod", 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("RLStormUziPowerMod", 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("RLStormBlasterPowerMod", 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("RLStormNuclearPlasmaPistolPowerMod", 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("RLPlasmaHandcannonPowerMod", 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("RLPlasmaUziPowerMod", 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
  RLOverchargedBlaster:
  RLOverchargedBlasterModding:
    TNT1 A 0 A_JumpIfInventory("RLOverchargedBlasterModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLOverchargedBlasterModLimit",1)
    TNT1 A 0 A_GiveInventory("RLOverchargedBlasterPowerMod", 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("RLSuperchargedNuclearPlasmaPistolPowerMod", 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("RLFocusedDoubleShotgunPowerMod", 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("RLHyperblasterPowerMod", 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("RLVBFG9000PowerMod", 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("RLNuclearVBFG9000PowerMod", 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("RLAutoshotgunPowerMod", 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("RLAutoDoubleShotgunPowerMod", 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
  RLBulletstormChaingun:
  RLBulletstormChaingunModding:
    TNT1 A 0 A_JumpIfInventory("RLBulletstormChaingunModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBulletstormChaingunModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBulletstormChaingunPowerMod", 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("RLMiniMissilePistolPowerMod", 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("RLPlasmaRifleMkIIPowerMod", 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("RLGrenadeLauncherPowerMod", 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("RLPlasmaShotgunMkIIPowerMod", 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("RLNuclearPlasmaShotgunPowerMod", 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("RLNuclearPlasmaRifleMkIIPowerMod", 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
  RLBulletstormRifle:
  RLBulletstormRifleModding:
    TNT1 A 0 A_JumpIfInventory("RLBulletstormRifleModLimit",0,"NoMod")
    TNT1 A 0 A_GiveInventory("RLBulletstormRifleModLimit",1)
    TNT1 A 0 A_GiveInventory("RLBulletstormRiflePowerMod", 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("RLLaserShotgunPowerMod", 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("RLAssaultRifleChaingunPowerMod", 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("RLAssaultRiflePlasmaRiflePowerMod", 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("RLAssaultRifleMinigunPowerMod", 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("RLAssaultRifleLaserRiflePowerMod", 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("RLAssaultRifleNuclearPlasmaRiflePowerMod", 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("RLAssaultRifleUziPowerMod", 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("RLAssaultRifleBattleRiflePowerMod", 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("RLBurstCannonChaingunPowerMod", 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("RLBurstCannonPlasmaRiflePowerMod", 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("RLBurstCannonMinigunPowerMod", 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("RLBurstCannonLaserRiflePowerMod", 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("RLBurstCannonNuclearPlasmaRiflePowerMod", 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("RLBurstCannonUziPowerMod", 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("RLBurstCannonBattleRiflePowerMod", 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("RLNanoShrapnelShotgunPowerMod", 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("RLNanoShrapnelCombatShotgunPowerMod", 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("RLNanoShrapnelDoubleShotgunPowerMod", 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("RLNanoShrapnelSuperShotgunPowerMod", 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("RLNanoShrapnelAssaultShotgunPowerMod", 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("RLNanoShrapnelPlasmaShotgunPowerMod", 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("RLCyberneticArmorPower", 1)
	Goto CyberneticArmorModdingContinue
  CyberneticArmorModdingContinue:
    TNT1 A 0 A_GiveInventory("RLCyberneticArmorPowerToken", 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("RLCyberneticArmorRenegadePower", 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("\cg= Power 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
  }
}

ACTOR RLPowerModAuto : RLPowerModItem
{
  -INVENTORY.INVBAR
  Inventory.Pickupsound ""
  Inventory.UseSound ""
  Inventory.PickupMessage ""
  States
  {
  Spawn:
	TNT1 A 0
	TNT1 A 0
    Stop
	
  Pickup:
  Use:
	TNT1 A 0 A_JumpIfInventory("RLFistSelected",1,"Nope")
    Goto WeaponSelect
	
  Nope:
	TNT1 A 0
    Fail
	
  WeaponSelect:
	TNT1 A 0 A_GiveInventory("RLMisfireSpamPreventionCooldown",1)
    TNT1 A 0 A_Print (" ", 0)
	TNT1 A 0 A_Jump(256, "WeaponSelectMain")
	Goto WeaponSelectMain
  }
}
