
//==============================================================================================================================================
//==============================================================================
//		ASSEMBLED BOOTS
//==============================================================================
//==============================================================================================================================================


ACTOR RLCerberusBootsPickup : RLGenericBootsPickup
{
    //$category "Master Assembled Boots"
	//$Sprite CERBA0
    Tag "Cerberus Boots"
    Inventory.Icon "CERBBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		CERB A 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	FloorHit:
		"####" "#" 0 A_PlaySound("boots/dropmetal", 7, 1, 0, 1.5)
		"####" "#" 0 A_ScaleVelocity (0.5)
		"####" "#" 0 A_ChangeFlag("SPECIAL", true)
		"####" "#" 0 A_ChangeFlag("THRUACTORS", false)
		"####" "#" 0 A_SetUserVar("user_floorhit", 1)
		"####" "#" 0 A_Jump(256, "SpawnLoop")
		Goto SpawnLoop
	SpawnLoop:
// Play the armor's sprite animation.
		CERB A 6
		CERB A 6 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLCerberusBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLCerberusBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLCerberusBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_GiveInventory("RLCerberusBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLAbsoluteBootsProtection",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvCerberus Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvCerberus Boots \c-equipped.", 2)
		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
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Cerberus Boots =", 2, "CONFONT")
		Fail
		
//------------------------------------------------------------------------------
/*	SetBonusChecking:
		TNT1 A 0 A_GiveInventory("RLCerberusSetBonusBoots",1)
		TNT1 A 0 A_JumpIfInventory("RLCerberusSetBonusArmor",1,"SetBonusCheckingDetection")
		TNT1 A 0 A_JumpIfInventory("RLCerberusSetBonusTristarBlaster",1,"SetBonusCheckingDetection")
		Stop
	SetBonusCheckingDetection:
		TNT1 A 0 A_JumpIfInventory("RLCerberusSetBonusArmor",1,1)
		Stop
		TNT1 A 0 A_JumpIfInventory("RLCerberusSetBonusTristarBlaster",1,1)
		Stop
		TNT1 A 0 A_GiveInventory("RLCerberusSetBonusActive",1)
		TNT1 A 0 A_Print("\cvCerberus Boots \c-equipped.\n\cf= TRINITY GUARDIAN =\n\cgTristar Blaster fires three times faster", 8, "CONFONT")
		Stop*/
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLCerberusBootsWorldSpawnPickup : RLCerberusBootsPickup 19004
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnRarityBeam:
// Check for DoomRPG, if found, skip the check for special starts. If the armor shouldn't spawn, we need to skip the thunder sound.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), 2)
		TNT1 A 0 A_JumpIf(CallACS("DRLA_specialstarts") == 2, "Duke2Stuff")
// This makes a thunder sound when it spawns, and emits twinkling noises every now and then to alert players.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_PlaySound("weapons/masterspawned", 7, 0.25, 0, 0)
		TNT1 A 0 A_GiveInventory("RLMasterItemSpawnMessageSender",1)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLCerberusBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}

ACTOR RLCerberusBootsPickupSpecial : RLCerberusBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLCerberusBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLCerberusBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
actor PowerRLAbsoluteBootsProtection : PowerRLGenericBootsProtection
{
   damagefactor "Slime", 0.0
}

Actor RLCerberusBootsToken : RLPermanentInventory {}
Actor RLCerberusBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLTacticalBootsPickup : RLGenericBootsPickup 19005
{
    //$category "Basic Assembled Boots"
	//$Sprite TACBA0
    Tag "Tactical Boots"
    Inventory.Icon "TACBBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		TACB A 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	SpawnLoop:
// Play the armor's sprite animation.
		TACB A 6
		TACB A 6 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLTacticalBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLTacticalBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLTacticalBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_GiveInventory("RLTacticalBootsToken",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), 2) // If DRPG is run, it gives you increased survival chance instead of speed.
		TNT1 A 0 A_GiveInventory("PowerRLTacticalBootsSpeed",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvTactical Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvTactical Boots \c-equipped.", 2)
		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
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Tactical Boots =", 2, "CONFONT")
		Fail
		
//------------------------------------------------------------------------------
/*	SetBonusChecking:
		TNT1 A 0 A_GiveInventory("RLTacticalSetBonusBoots",1)
		TNT1 A 0 A_JumpIfInventory("RLTacticalSetBonusArmor",1,"SetBonusCheckingDetection")
		Stop
	SetBonusCheckingDetection:
		TNT1 A 0 A_JumpIfInventory("RLTacticalSetBonusArmor",1,1)
		Stop
		TNT1 A 0 A_GiveInventory("RLTacticalSetBonusActive",1)
		TNT1 A 0 A_GiveInventory("PowerRLTacticalSetBonusProtection",1)
		TNT1 A 0 A_Print("\cvTactical Boots \c-equipped.\n\cf= TACTICAL READINESS =\n\cgImmunity to splash damage", 8, "CONFONT")
		Stop*/
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLTacticalBootsPickupSpecial : RLTacticalBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLTacticalBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLTacticalBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}

ACTOR PowerRLTacticalBootsSpeed : PowerSpeed
{
   speed 1.15
   inventory.icon ""
   Powerup.Duration -0x7FFFFFFF
   +INVENTORY.PERSISTENTPOWER
   +POWERSPEED.NOTRAIL
}

Actor RLTacticalBootsToken : RLPermanentInventory {}
Actor RLTacticalBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLAntigravSteelBootsPickup : RLGenericBootsPickup 19006
{
    //$category "Advanced Assembled Boots"
	//$Sprite AGSBA0
    Tag "Antigrav Steel Boots"
    Inventory.Icon "AGSBBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		AGSB A 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	SpawnLoop:
// Play the armor's sprite animation.
		AGSB AB 3 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLAntigravSteelBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLAntigravSteelBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLAntigravSteelBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_GiveInventory("RLAntigravSteelBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLSteelBootsProtection",1)
		TNT1 A 0 A_GiveInventory("PowerRLAntigravBootsJump",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvAntigrav Steel Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvAntigrav Steel Boots \c-equipped.", 2)
		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
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Antigrav Steel Boots =", 2, "CONFONT")
		Fail
		
//------------------------------------------------------------------------------
/*	SetBonusChecking:
		TNT1 A 0 A_GiveInventory("RLDeathFromAboveSetBonusBoots",1)
		TNT1 A 0 A_JumpIfInventory("RLDeathFromAboveSetBonusArmor",1,"SetBonusCheckingDetection")
		Stop
	SetBonusCheckingDetection:
		TNT1 A 0 A_JumpIfInventory("RLDeathFromAboveSetBonusArmor",1,1)
		Stop
		TNT1 A 0 A_GiveInventory("RLDeathFromAboveSetBonusActive",1)
		TNT1 A 0 A_Print("\cvAntigrav Steel Boots \c-equipped.\n\cf= DEATH FROM ABOVE =\n\cgJetpack can fly indefinitely", 8, "CONFONT")
		Stop*/
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLAntigravSteelBootsPickupSpecial : RLAntigravSteelBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLAntigravSteelBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLAntigravSteelBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
actor PowerRLAntigravBootsJump : PowerHighJump
{
   inventory.icon ""
   Powerup.Duration -0x7FFFFFFF
   +INVENTORY.PERSISTENTPOWER
}

Actor RLAntigravSteelBootsToken : RLPermanentInventory {}
Actor RLAntigravSteelBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLAntigravProtectiveBootsPickup : RLGenericBootsPickup 19007
{
    //$category "Advanced Assembled Boots"
	//$Sprite AGGBA0
    Tag "Antigrav Protective Boots"
    Inventory.Icon "AGGBBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		AGGB A 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	SpawnLoop:
// Play the armor's sprite animation.
		AGGB AB 3 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLAntigravProtectiveBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLAntigravProtectiveBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLAntigravProtectiveBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_GiveInventory("RLAntigravProtectiveBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLProtectiveBootsProtection",1)
		TNT1 A 0 A_GiveInventory("PowerRLAntigravBootsJump",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvAntigrav Protective Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvAntigrav Protective Boots \c-equipped.", 2)
		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
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Antigrav Protective Boots =", 2, "CONFONT")
		Fail
		
//------------------------------------------------------------------------------
/*	SetBonusChecking:
		TNT1 A 0 A_GiveInventory("RLDeathFromAboveSetBonusBoots",1)
		TNT1 A 0 A_JumpIfInventory("RLDeathFromAboveSetBonusArmor",1,"SetBonusCheckingDetection")
		Stop
	SetBonusCheckingDetection:
		TNT1 A 0 A_JumpIfInventory("RLDeathFromAboveSetBonusArmor",1,1)
		Stop
		TNT1 A 0 A_GiveInventory("RLDeathFromAboveSetBonusActive",1)
		TNT1 A 0 A_Print("\cvAntigrav Protective Boots \c-equipped.\n\cf= DEATH FROM ABOVE =\n\cgJetpack can fly indefinitely", 8, "CONFONT")
		Stop*/
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLAntigravProtectiveBootsPickupSpecial : RLAntigravProtectiveBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLAntigravProtectiveBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLAntigravProtectiveBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
Actor RLAntigravProtectiveBootsToken : RLPermanentInventory {}
Actor RLAntigravProtectiveBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLAntigravPlasteelBootsPickup : RLGenericBootsPickup 19008
{
    //$category "Advanced Assembled Boots"
	//$Sprite AGBBA0
    Tag "Antigrav Plasteel Boots"
    Inventory.Icon "AGBBBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		AGBB A 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	SpawnLoop:
// Play the armor's sprite animation.
		AGBB AB 3 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLAntigravPlasteelBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLAntigravPlasteelBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLAntigravPlasteelBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_GiveInventory("RLAntigravPlasteelBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLPlasteelBootsProtection",1)
		TNT1 A 0 A_GiveInventory("PowerRLAntigravBootsJump",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvAntigrav Plasteel Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvAntigrav Plasteel Boots \c-equipped.", 2)
		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
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Antigrav Plasteel Boots =", 2, "CONFONT")
		Fail
		
//------------------------------------------------------------------------------
/*	SetBonusChecking:
		TNT1 A 0 A_GiveInventory("RLDeathFromAboveSetBonusBoots",1)
		TNT1 A 0 A_JumpIfInventory("RLDeathFromAboveSetBonusArmor",1,"SetBonusCheckingDetection")
		Stop
	SetBonusCheckingDetection:
		TNT1 A 0 A_JumpIfInventory("RLDeathFromAboveSetBonusArmor",1,1)
		Stop
		TNT1 A 0 A_GiveInventory("RLDeathFromAboveSetBonusActive",1)
		TNT1 A 0 A_Print("\cvAntigrav Plasteel Boots \c-equipped.\n\cf= DEATH FROM ABOVE =\n\cgJetpack can fly indefinitely", 8, "CONFONT")
		Stop*/
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLAntigravPlasteelBootsPickupSpecial : RLAntigravPlasteelBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLAntigravPlasteelBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLAntigravPlasteelBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}

Actor RLAntigravPlasteelBootsToken : RLPermanentInventory {}
Actor RLAntigravPlasteelBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLEnviromentalSteelBootsPickup : RLGenericBootsPickup 19009
{
    //$category "Advanced Assembled Boots"
	//$Sprite ENVOS0
    Tag "Environmental Steel Boots"
    Inventory.Icon "ENVSBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		ENVO S 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	FloorHit:
		"####" "#" 0 A_PlaySound("boots/dropmetal", 7, 1, 0, 1.5)
		"####" "#" 0 A_ScaleVelocity (0.5)
		"####" "#" 0 A_ChangeFlag("SPECIAL", true)
		"####" "#" 0 A_ChangeFlag("THRUACTORS", false)
		"####" "#" 0 A_SetUserVar("user_floorhit", 1)
		"####" "#" 0 A_Jump(256, "SpawnLoop")
		Goto SpawnLoop
	SpawnLoop:
// Play the armor's sprite animation.
		ENVO S 6
		ENVO S 6 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLEnviromentalSteelBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLEnviromentalSteelBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLEnviromentalSteelBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_GiveInventory("RLEnviromentalSteelBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLEnviromentalSteelBootsProtection",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvEnvironmental Steel Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvEnvironmental Steel Boots \c-equipped.", 2)
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Environmental Steel Boots =", 2, "CONFONT")
		Fail
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLEnviromentalSteelBootsPickupSpecial : RLEnviromentalSteelBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLEnviromentalSteelBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLEnviromentalSteelBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
actor PowerRLEnviromentalSteelBootsProtection : PowerRLGenericBootsProtection
{
   damagefactor "Slime", 0.15
}

Actor RLEnviromentalSteelBootsToken : RLPermanentInventory {}
Actor RLEnviromentalSteelBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLEnviromentalProtectiveBootsPickup : RLGenericBootsPickup 19010
{
    //$category "Advanced Assembled Boots"
	//$Sprite ENVOG0
    Tag "Environmental Protective Boots"
    Inventory.Icon "ENVGBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		ENVO G 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	FloorHit:
		"####" "#" 0 A_PlaySound("boots/dropmetal", 7, 1, 0, 1.5)
		"####" "#" 0 A_ScaleVelocity (0.5)
		"####" "#" 0 A_ChangeFlag("SPECIAL", true)
		"####" "#" 0 A_ChangeFlag("THRUACTORS", false)
		"####" "#" 0 A_SetUserVar("user_floorhit", 1)
		"####" "#" 0 A_Jump(256, "SpawnLoop")
		Goto SpawnLoop
	SpawnLoop:
// Play the armor's sprite animation.
		ENVO G 6
		ENVO G 6 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLEnviromentalProtectiveBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLEnviromentalProtectiveBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLEnviromentalProtectiveBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_GiveInventory("RLEnviromentalProtectiveBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLEnviromentalProtectiveBootsProtection",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvEnvironmental Protective Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvEnvironmental Protective Boots \c-equipped.", 2)
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Environmental Protective Boots =", 2, "CONFONT")
		Fail
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLEnviromentalProtectiveBootsPickupSpecial : RLEnviromentalProtectiveBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLEnviromentalProtectiveBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLEnviromentalProtectiveBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
actor PowerRLEnviromentalProtectiveBootsProtection : PowerRLGenericBootsProtection
{
   damagefactor "Slime", 0.1
}

Actor RLEnviromentalProtectiveBootsToken : RLPermanentInventory {}
Actor RLEnviromentalProtectiveBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLEnviromentalPlasteelBootsPickup : RLGenericBootsPickup 19011
{
    //$category "Advanced Assembled Boots"
	//$Sprite ENVOB0
    Tag "Environmental Plasteel Boots"
    Inventory.Icon "ENVBBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		ENVO B 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	FloorHit:
		"####" "#" 0 A_PlaySound("boots/dropmetal", 7, 1, 0, 1.5)
		"####" "#" 0 A_ScaleVelocity (0.5)
		"####" "#" 0 A_ChangeFlag("SPECIAL", true)
		"####" "#" 0 A_ChangeFlag("THRUACTORS", false)
		"####" "#" 0 A_SetUserVar("user_floorhit", 1)
		"####" "#" 0 A_Jump(256, "SpawnLoop")
		Goto SpawnLoop
	SpawnLoop:
// Play the armor's sprite animation.
		ENVO B 6
		ENVO B 6 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLEnviromentalPlasteelBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLEnviromentalPlasteelBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLEnviromentalPlasteelBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_GiveInventory("RLEnviromentalPlasteelBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLEnviromentalPlasteelBootsProtection",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvEnvironmental Plasteel Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvEnvironmental Plasteel Boots \c-equipped.", 2)
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Environmental Plasteel Boots =", 2, "CONFONT")
		Fail
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLEnviromentalPlasteelBootsPickupSpecial : RLEnviromentalPlasteelBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLEnviromentalPlasteelBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLEnviromentalPlasteelBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
actor PowerRLEnviromentalPlasteelBootsProtection : PowerRLGenericBootsProtection
{
   damagefactor "Slime", 0.1
}

Actor RLEnviromentalPlasteelBootsToken : RLPermanentInventory {}
Actor RLEnviromentalPlasteelBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLFireproofSteelBootsPickup : RLGenericBootsPickup 19012
{
    //$category "Basic Assembled Boots"
	//$Sprite FIRBS0
    Tag "Fireproof Steel Boots"
    Inventory.Icon "FIRSBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		FIRB S 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	SpawnLoop:
// Play the armor's sprite animation.
		FIRB S 6
		FIRB S 6 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLFireproofSteelBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLFireproofSteelBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLFireproofSteelBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_GiveInventory("RLFireproofSteelBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLFireproofSteelBootsProtection",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvFireproof Steel Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvFireproof Steel Boots \c-equipped.", 2)
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Fireproof Steel Boots =", 2, "CONFONT")
		Fail
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLFireproofSteelBootsPickupSpecial : RLFireproofSteelBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLFireproofSteelBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLFireproofSteelBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
actor PowerRLFireproofSteelBootsProtection : PowerRLGenericBootsProtection
{
   damagefactor "Slime", 0.6
}

Actor RLFireproofSteelBootsToken : RLPermanentInventory {}
Actor RLFireproofSteelBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLFireproofProtectiveBootsPickup : RLGenericBootsPickup 19013
{
    //$category "Basic Assembled Boots"
	//$Sprite FIRBG0
    Tag "Fireproof Protective Boots"
    Inventory.Icon "FIRGBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		FIRB G 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	SpawnLoop:
// Play the armor's sprite animation.
		FIRB G 6
		FIRB G 6 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLFireproofProtectiveBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLFireproofProtectiveBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLFireproofProtectiveBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_GiveInventory("RLFireproofProtectiveBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLFireproofProtectiveBootsProtection",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvFireproof Protective Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvFireproof Protective Boots \c-equipped.", 2)
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Fireproof Protective Boots =", 2, "CONFONT")
		Fail
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLFireproofProtectiveBootsPickupSpecial : RLFireproofProtectiveBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLFireproofProtectiveBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLFireproofProtectiveBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
actor PowerRLFireproofProtectiveBootsProtection : PowerRLGenericBootsProtection
{
   damagefactor "Slime", 0.5
}

Actor RLFireproofProtectiveBootsToken : RLPermanentInventory {}
Actor RLFireproofProtectiveBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLFireproofPlasteelBootsPickup : RLGenericBootsPickup 19014
{
    //$category "Basic Assembled Boots"
	//$Sprite FIRBB0
    Tag "Fireproof Plasteel Boots"
    Inventory.Icon "FIRBBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		FIRB B 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	SpawnLoop:
// Play the armor's sprite animation.
		FIRB B 6
		FIRB B 6 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLFireproofPlasteelBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLFireproofPlasteelBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLFireproofPlasteelBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_GiveInventory("RLFireproofPlasteelBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLFireproofPlasteelBootsProtection",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvFireproof Plasteel Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvFireproof Plasteel Boots \c-equipped.", 2)
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Fireproof Plasteel Boots =", 2, "CONFONT")
		Fail
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLFireproofPlasteelBootsPickupSpecial : RLFireproofPlasteelBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLFireproofPlasteelBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLFireproofPlasteelBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
actor PowerRLFireproofPlasteelBootsProtection : PowerRLGenericBootsProtection
{
   damagefactor "Slime", 0.25
}

Actor RLFireproofPlasteelBootsToken : RLPermanentInventory {}
Actor RLFireproofPlasteelBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLGrapplingSteelBootsPickup : RLGenericBootsPickup 19015
{
    //$category "Basic Assembled Boots"
	//$Sprite GRAPS0
    Tag "Grappling Steel Boots"
    Inventory.Icon "GRASBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		GRAP S 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	SpawnLoop:
// Play the armor's sprite animation.
		GRAP S 6
		GRAP S 6 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLGrapplingSteelBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLGrapplingSteelBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLGrapplingSteelBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_SetMass(Mass + 10000)// Grappling Boots decrease knockback by a huge amount, and stop knockback from heavy weapons.
		TNT1 A 0 A_GiveInventory("RLGrapplingSteelBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLGrapplingSteelBootsProtection",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvGrappling Steel Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvGrappling Steel Boots \c-equipped.", 2)
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Grappling Steel Boots =", 2, "CONFONT")
		Fail
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLGrapplingSteelBootsPickupSpecial : RLGrapplingSteelBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLGrapplingSteelBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLGrapplingSteelBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
actor PowerRLGrapplingSteelBootsProtection : PowerRLGenericBootsProtection
{
   damagefactor "Slime", 0.8
}

Actor RLGrapplingSteelBootsToken : RLPermanentInventory {}
Actor RLGrapplingSteelBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLGrapplingProtectiveBootsPickup : RLGenericBootsPickup 19016
{
    //$category "Basic Assembled Boots"
	//$Sprite GRAPG0
    Tag "Grappling Protective Boots"
    Inventory.Icon "GRAGBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		GRAP G 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	SpawnLoop:
// Play the armor's sprite animation.
		GRAP G 6
		GRAP G 6 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLGrapplingProtectiveBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLGrapplingProtectiveBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLGrapplingProtectiveBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_SetMass(Mass + 10000)// Grappling Boots decrease knockback by a huge amount, and stop knockback from heavy weapons.
		TNT1 A 0 A_GiveInventory("RLGrapplingProtectiveBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLGrapplingProtectiveBootsProtection",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvGrappling Protective Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvGrappling Protective Boots \c-equipped.", 2)
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Grappling Protective Boots =", 2, "CONFONT")
		Fail
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLGrapplingProtectiveBootsPickupSpecial : RLGrapplingProtectiveBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLGrapplingProtectiveBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLGrapplingProtectiveBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
actor PowerRLGrapplingProtectiveBootsProtection : PowerRLGenericBootsProtection
{
   damagefactor "Slime", 0.7
}

Actor RLGrapplingProtectiveBootsToken : RLPermanentInventory {}
Actor RLGrapplingProtectiveBootsUse : RLPermanentInventory {}

//==============================================================================

ACTOR RLGrapplingPlasteelBootsPickup : RLGenericBootsPickup 19017
{
    //$category "Basic Assembled Boots"
	//$Sprite GRAPB0
    Tag "Grappling Plasteel Boots"
    Inventory.Icon "GRABBOX"
	Inventory.RespawnTics 10500
	States
	{
	SpawnRarityBeam:
// Create the appropriate rarity beam for the item.
		TNT1 A 0 A_JumpIf(CallACS("DRLA_opengl"), 3) // If enabled, rarity beam will be cyan, rather than blue
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembled", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump(256,2)
		TNT1 A 0 A_SpawnItemEx("RLRarityBeamAssembledDRPG", 0,0,0, 0,0,0, 0, SXF_SETMASTER)
		TNT1 A 0 A_Jump (256, "SpawnDRPGCheck")
		Goto SpawnDRPGCheck
		
    SpawnLoopFall:
		GRAP B 0 A_JumpIf(Abs(VelZ) <= 0.01 && user_floorhit == 0, "FloorHit")
		"####" "#" 1
		Loop
	SpawnLoop:
// Play the armor's sprite animation.
		GRAP B 6
		GRAP B 6 Bright
		Loop
		
//------------------------------------------------------------------------------
	Use:
		TNT1 A 0
// Check to see if these boots have been activated once before.
		TNT1 A 0 A_JumpIfInventory("RLGrapplingPlasteelBootsUse",1,"BootsEquip")
		TNT1 A 0 A_Jump (256, "UseTokenRemoval")
		Goto UseTokenRemoval
		
	UseTokenGiven:
// Gives you the identifier that indicates what boots you are manipulating right now.
		TNT1 A 0 A_GiveInventory("RLGrapplingPlasteelBootsUse", 1)
// Check to see if you are already wearing boots and change the activation message.
		TNT1 A 0 A_Jump (256, "BootsWornCheck")
		Goto BootsWornCheck
		
	BootsEquipTokens:
		TNT1 A 0 A_TakeInventory("RLGrapplingPlasteelBootsUse",1)
		TNT1 A 0 A_TakeInventory("RLArmorInInventory",1)
// Give the Token and/or Bonus items that are used to define the boots as being worn.
		TNT1 A 0 A_SetMass(Mass + 10000)// Grappling Boots decrease knockback by a huge amount, and stop knockback from heavy weapons.
		TNT1 A 0 A_GiveInventory("RLGrapplingPlasteelBootsToken",1)
		TNT1 A 0 A_GiveInventory("PowerRLGrapplingPlasteelBootsProtection",1)
		TNT1 A 0 A_GiveInventory("RLBootsWorn",1)
		TNT1 A 0 A_Jump (256, "EquipFinish")
		Goto EquipFinish

//------------------------------------------------------------------------------
// Equip messages are grouped down here.
	PickupDisplayMessage:
// Picking up boots, and you have room for it.
		TNT1 A 0 A_Print("Picked up the \cvGrappling Plasteel Boots.", 2)
		Stop
	EquipFinish:
// Successfully wearing boots.
		TNT1 A 0 A_Print("\cvGrappling Plasteel Boots \c-equipped.", 2)
		Stop
		
	NotPickup:
// This is for when you walk over an armor you cannot pick up.
		TNT1 A 0 A_JumpIfInventory("DRLA_ArmorAntiLogFloodCheck",1,"NotPickup_NoPrint")
		TNT1 A 0 A_GiveInventory("DRLA_ArmorAntiLogFloodCheck")
		TNT1 A 0 A_Print("\cv= Grappling Plasteel Boots =", 2, "CONFONT")
		Fail
//------------------------------------------------------------------------------
// Color code reference
// j = Standard (White)
// t = Exotic (Purple)
// v = Assembled (Cyan)
// i = Superior (Orange)
// d = Unique (Green)
// g = Demonic (Red)
// k = Legendary (Yellow)
// u = Onyx (Dark Gray)
	}
}

ACTOR RLGrapplingPlasteelBootsPickupSpecial : RLGrapplingPlasteelBootsPickup
{
    Inventory.InterHubAmount 0
    Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	States
	{
	SpawnDRPGCheck:
// Initialize the item with DoomRPG so it can be used with cool stuff.
// We skip the special start checks so we don't make infinite loops.
		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "DRPGInit")
		TNT1 A 0 A_Jump (256, "SpawnLoopFall")
		Goto SpawnLoopFall	
//------------------------------------------------------------------------------
	Pickup:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
//		TNT1 A 0 A_JumpIf(CallACS("DRPGCheckTiem"), "PickupNonLimited")
		TNT1 A 0 A_JumpIfInventory("RLArmorInInventory",0,"NotPickup")
		TNT1 A 0 A_GiveInventory("RLGrapplingPlasteelBootsPickup",1)
		Stop
		
	PickupNonLimited:
		TNT1 A 0
// Check to see if you have the capacity to pickup these boots.
        TNT1 A 0 ACS_NamedExecuteWithResult("CheckCapacity") // Special Capacity checking function for armor
		TNT1 A 0 A_GiveInventory("RLGrapplingPlasteelBootsPickup",1)
		Stop
//------------------------------------------------------------------------------
	Use:
		Stop	
	}
}
	
actor PowerRLGrapplingPlasteelBootsProtection : PowerRLGenericBootsProtection
{
   damagefactor "Slime", 0.45
}

Actor RLGrapplingPlasteelBootsToken : RLPermanentInventory {}
Actor RLGrapplingPlasteelBootsUse : RLPermanentInventory {}

//==============================================================================
