
Actor RLBootsWorn : RLPermanentInventory {}
Actor RLUnequippingBoots : RLPermanentInventory {}

//-------------------------------------------------------------------
//		BOOTS REMOVER

ACTOR RLBootsRemover : CustomInventory
{
	Radius 20
	Height 16
    -COUNTITEM
    +INVENTORY.UNTOSSABLE
    +INVENTORY.UNDROPPABLE
	+INVENTORY.KEEPDEPLETED
    Tag "Unequip Boots"
    Inventory.InterHubAmount 1
    Inventory.MaxAmount 1
    Inventory.Icon "TNT1A0"
    Inventory.Pickupmessage "how did you even... you know what, fuck you I don't care."
	Inventory.PickupSound "misc/armor_pkup"
	Inventory.UseSound "misc/armor_pkup"
	States
	{
	Spawn:
		TNT1 A 2
		Loop
	Use:
		TNT1 A 0
		TNT1 A 0 A_JumpIfInventory("RLUnequippingBoots",1,"BootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLBootsWorn",1,"BootsEquipped")
		Goto NoBootsEquipped
	BootsEquipped:
		TNT1 A 0 A_GiveInventory("RLUnequippingBoots", 1)
		TNT1 A 0 A_Print("Use this again to drop your currently equipped boots, or switch weapons to cancel.", 10)
		Fail
	NoBootsEquipped:
		TNT1 A 0 A_Print("You aren't wearing any boots.", 5)
		Fail
	BootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLUnequippingBoots",1)
		TNT1 A 0 A_GiveInventory("RLBootsRemover", 1)
		
		TNT1 A 0 A_JumpIfInventory("RLGenericBootsToken",1,"GenericBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLSteelBootsToken",1,"SteelBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLProtectiveBootsToken",1,"ProtectiveBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLPlasteelBootsToken",1,"PlasteelBootsUnequip")
		
		TNT1 A 0 A_JumpIfInventory("RLCerberusBootsToken",1,"CerberusBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLTacticalBootsToken",1,"TacticalBootsUnequip")
		
		TNT1 A 0 A_JumpIfInventory("RLAntigravSteelBootsToken",1,"AntigravSteelBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLAntigravProtectiveBootsToken",1,"AntigravProtectiveBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLAntigravPlasteelBootsToken",1,"AntigravPlasteelBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLEnviromentalSteelBootsToken",1,"EnviromentalSteelBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLEnviromentalProtectiveBootsToken",1,"EnviromentalProtectiveBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLEnviromentalPlasteelBootsToken",1,"EnviromentalPlasteelBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLFireproofSteelBootsToken",1,"FireproofSteelBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLFireproofProtectiveBootsToken",1,"FireproofProtectiveBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLFireproofPlasteelBootsToken",1,"FireproofPlasteelBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLGrapplingSteelBootsToken",1,"GrapplingSteelBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLGrapplingProtectiveBootsToken",1,"GrapplingProtectiveBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLGrapplingPlasteelBootsToken",1,"GrapplingPlasteelBootsUnequip")
		
		TNT1 A 0 A_JumpIfInventory("RLShockwaveBootsToken",1,"ShockwaveBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLAcidProofBootsToken",1,"AcidProofBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLGothicBootsToken",1,"GothicBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLPhaseshiftBootsToken",1,"PhaseshiftBootsUnequip")
		
		TNT1 A 0 A_JumpIfInventory("RLEnviroBootsToken",1,"EnviroBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLFrontlineEngineerBootsToken",1,"FrontlineEngineerBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLLavaBootsToken",1,"LavaBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLLeonidasBootsToken",1,"LeonidasBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLNuclearPowerBootsToken",1,"NuclearPowerBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLNyarlaptotepsBootsToken",1,"NyarlaptotepsBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLRoystensCombatBootsToken",1,"RoystensCombatBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLSoloOperativeBootsToken",1,"SoloOperativeBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLTacticalAssemblerBootsToken",1,"TacticalAssemblerBootsUnequip")
		TNT1 A 0 A_JumpIfInventory("RLTorgueBlastBootsToken",1,"TorgueBlastBootsUnequip")
		
		TNT1 A 0 A_JumpIfInventory("RLDemonicBootsToken",1,"DemonicBootsUnequip")
		
		TNT1 A 0 A_JumpIfInventory("RLAngelicBootsToken",1,"AngelicBootsUnequip")
		TNT1 A 0 A_Print("Oh god what did you do?", 5)
		Fail

//			STANDARD BOOTS
//==============================================================================
	GenericBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLGenericBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLGenericBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLGenericBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLGenericBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	SteelBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLSteelBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLSteelBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLSteelBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLSteelBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	ProtectiveBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLProtectiveBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLProtectiveBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLProtectiveBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLProtectiveBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	PlasteelBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLPlasteelBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLPlasteelBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLPlasteelBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLPlasteelBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail

//			ASSEMBLED BOOTS
//==============================================================================
	AntigravSteelBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLAntigravSteelBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLSteelBootsProtection",1)
		TNT1 A 0 A_TakeInventory("PowerRLAntigravBootsJump",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLJetpackSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLAntigravSteelBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLAntigravSteelBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	AntigravProtectiveBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLAntigravProtectiveBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLProtectiveBootsProtection",1)
		TNT1 A 0 A_TakeInventory("PowerRLAntigravBootsJump",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLJetpackSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLAntigravProtectiveBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLAntigravProtectiveBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	AntigravPlasteelBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLAntigravPlasteelBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLPlasteelBootsProtection",1)
		TNT1 A 0 A_TakeInventory("PowerRLAntigravBootsJump",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLJetpackSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLAntigravPlasteelBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLAntigravPlasteelBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	EnviromentalSteelBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLEnviromentalSteelBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLEnviromentalSteelBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLEnviromentalSteelBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLEnviromentalSteelBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	EnviromentalProtectiveBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLEnviromentalProtectiveBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLEnviromentalProtectiveBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLEnviromentalProtectiveBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLEnviromentalProtectiveBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	EnviromentalPlasteelBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLEnviromentalPlasteelBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLEnviromentalPlasteelBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLEnviromentalPlasteelBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLEnviromentalPlasteelBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	FireproofSteelBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLFireproofSteelBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLFireproofSteelBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLFireproofSteelBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLFireproofSteelBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	FireproofProtectiveBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLFireproofProtectiveBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLFireproofProtectiveBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLFireproofProtectiveBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLFireproofProtectiveBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	FireproofPlasteelBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLFireproofPlasteelBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLFireproofPlasteelBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLFireproofPlasteelBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLFireproofPlasteelBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	GrapplingSteelBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLGrapplingSteelBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLGrapplingSteelBootsProtection",1)
		TNT1 A 0 A_SetMass(Mass - 10000)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLGrapplingSteelBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLGrapplingSteelBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	GrapplingProtectiveBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLGrapplingProtectiveBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLGrapplingProtectiveBootsProtection",1)
		TNT1 A 0 A_SetMass(Mass - 10000)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLGrapplingProtectiveBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLGrapplingProtectiveBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	GrapplingPlasteelBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLGrapplingPlasteelBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLGrapplingPlasteelBootsProtection",1)
		TNT1 A 0 A_SetMass(Mass - 10000)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLGrapplingPlasteelBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLGrapplingPlasteelBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
		
	CerberusBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLCerberusBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLAbsoluteBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLCerberusSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLCerberusBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLCerberusBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	TacticalBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLTacticalBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLTacticalBootsSpeed",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLTacticalSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLTacticalBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLTacticalBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail

//			EXOTIC BOOTS
//==============================================================================
	AcidProofBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLAcidProofBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLAbsoluteBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLAcidProofBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLAcidProofBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	GothicBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLGothicBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLGothicBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLGothicSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLGothicBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLGothicBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	PhaseshiftBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLPhaseshiftBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLPhaseshiftBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLPhaseshiftSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLPhaseshiftBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLPhaseshiftBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	ShockwaveBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLShockwaveBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLShockwaveBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLShockwaveBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLShockwaveBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail

//			SUPERIOR BOOTS
//==============================================================================

//			UNIQUE BOOTS
//==============================================================================
	EnviroBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLEnviroBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLAbsoluteBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLEnviroBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLEnviroBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	FrontlineEngineerBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLFrontlineEngineerBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLFrontlineEngineerBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLBLUSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLFrontlineEngineerBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLFrontlineEngineerBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	LavaBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLLavaBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLAbsoluteBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLLavaSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLLavaBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLLavaBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	LeonidasBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLLeonidasBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLLeonidasBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLLeonidasBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLLeonidasBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	NuclearPowerBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLNuclearPowerBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLNuclearPowerBootsProtection",1)
		TNT1 A 0 A_TakeInventory("PowerRLAbsoluteBootsProtection",1)
		TNT1 A 0 A_JumpIfInventory("RLEnclaveSetBonusActive",1,1)
		Goto NuclearPowerBootsUnequipContinue
		TNT1 A 0 A_TakeInventory("BasicArmor",99999)
		TNT1 A 0 A_JumpIfInventory("RLShellshockPerk",1,2)
		TNT1 A 0 A_GiveInventory("RLNuclearPowerArmor",1)
		Goto NuclearPowerBootsUnequipContinue
		TNT1 A 0 A_GiveInventory("RLNuclearPowerArmorRenegade",1)
		Goto NuclearPowerBootsUnequipContinue
	NuclearPowerBootsUnequipContinue:
		TNT1 A 0 ACS_NamedExecuteWithResult("RLEnclaveSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLNuclearPowerBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLNuclearPowerBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	NyarlaptotepsBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLNyarlaptotepsBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLNyarlaptotepsBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLInquisitorsSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLNyarlaptotepsBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLNyarlaptotepsBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	RoystensCombatBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLRoystensCombatBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLRoystensCombatBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLRoystensSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLRoystensCombatBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLRoystensCombatBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	SoloOperativeBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLSoloOperativeBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLSoloOperativeBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLArchitectSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLSoloOperativeBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLSoloOperativeBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	TacticalAssemblerBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLTacticalAssemblerBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLTacticalAssemblerBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLREDSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLTacticalAssemblerBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLTacticalAssemblerBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	TorgueBlastBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLTorgueBlastBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLTorgueBlastBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLTorgueSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLTorgueBlastBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLTorgueBlastBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail

//			DEMONIC BOOTS
//==============================================================================
	DemonicBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLDemonicBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLDemonicBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLDemonicSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLDemonicBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLDemonicBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail

//			LEGENDARY BOOTS
//==============================================================================
	AngelicBootsUnequip:
		TNT1 A 0 A_TakeInventory("RLBootsWorn",1)
		TNT1 A 0 A_TakeInventory("RLAngelicBootsToken",1)
		TNT1 A 0 A_TakeInventory("PowerRLAbsoluteBootsProtection",1)
		TNT1 A 0 ACS_NamedExecuteWithResult("RLAngelicSetBonusCheck", 1) // Checks for all parts of the set bonus, gives or removes it accordingly - argument is tic delay before checking
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,2)
		TNT1 A 0 A_GiveInventory("RLAngelicBootsPickup",1)
		Fail
		TNT1 A 0 A_SpawnItemEx("RLAngelicBootsPickupSpecial", 0,0,40, frandom(6,12),0,0, 0, SXF_SETMASTER)
		Fail
	}
}
