ACTOR INFGODSSphereOfPower : SphereOfPower replaces SphereOfPower
{
+INVENTORY.INVBAR
-INVENTORY.UNDROPPABLE //HDAN - dropable item
+INVENTORY.HUBPOWER
+INVENTORY.PERSISTENTPOWER
+FLOATBOB
Inventory.Amount 1
Inventory.MaxAmount 4
Inventory.InterHubAmount 4
Inventory.Icon "MINSZ0"
Inventory.UseSound "regeneration/use"
Inventory.PickupSound "misc/p_pkup"
Inventory.PickupMessage "You got the Sphere of Power!"
Tag "Sphere of Power"
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
	TNT1 A 0 A_CustomMissile ("BlueSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360))
	TNT1 A 0 A_CustomMissile ("GreenSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360))
	MINS AAAABBBBCCCC 1 Bright A_SpawnItem("BlueSphereFlare",0,38)
	TNT1 A 0 A_CustomMissile ("BlueSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360))
	TNT1 A 0 A_CustomMissile ("GreenSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360))
	MINS DDDDCCCCBBBB 1 Bright A_SpawnItem("BlueSphereFlare",0,38)
	Goto Spawn+2
  Use:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("ZamasuGodRuneItem",1,"GodRuneUse")
	TNT1 A 0 A_JumpIfInventory("PowerWeaponLevel2Complex2", 1, "Refuse")
	//TNT1 A 0 A_JumpIfInventory("TrueLegendaryRuneItem2", 1, "InfiniteUse")
	TNT1 A 1 A_GiveInventory("SphereOfPowerItem")
	Stop
  GodRuneUse:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("TerminatorCheck3",1,"TerminatorGodRuneUse")
	TNT1 A 0 A_JumpIfInventory("PowerWeaponLevel2Complex2", 1, "Refuse")
	//TNT1 A 0 A_JumpIfInventory("TrueLegendaryRuneItem2", 1, "InfiniteUse")
	TNT1 A 1 A_GiveInventory("SphereOfPowerGodRuneAmp")
	Stop
  TerminatorGodRuneUse:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("PowerWeaponLevel2Complex2", 1, "Refuse")
	//TNT1 A 0 A_JumpIfInventory("TrueLegendaryRuneItem2", 1, "InfiniteUse")
	TNT1 A 1 A_GiveInventory("SphereOfPowerTerminatorGodRuneAmp")
	Stop
  InfiniteUse:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("regeneration/use")
	TNT1 A 1 A_GiveInventory("SphereOfPowerItem")
	Fail
  Refuse:
	TNT1 A 0
	Fail
}
}


actor SphereOfPowerGodRuneAmp : SphereOfPowerItem
{
+INVENTORY.HUBPOWER
+INVENTORY.PERSISTENTPOWER
+NOTIMEFREEZE
Powerup.Duration -440
}

actor SphereOfPowerTerminatorGodRuneAmp : SphereOfPowerItem
{
+INVENTORY.HUBPOWER
+INVENTORY.PERSISTENTPOWER
+NOTIMEFREEZE
Powerup.Duration -500
}

Actor TrueLegendaryWeaponSphere2 : TrueLegendaryWeaponSphere Replaces TrueLegendaryWeaponSphere
{
States
{
  Spawn:
    TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NoTrueLegWeaponSphere") == 1,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
    TNT1 A 0 A_CustomMissile ("BlueSparkleSpawner", -20, 0, random(0,-360), 2, random(0,360))
	TLW3 AAAA 10 Bright A_CustomMissile ("TrueLegendarySphereFlameSpawner", -20, 0, random(0,-360), 2, random(0,360))
	TNT1 A 0 A_CustomMissile ("BlueSparkleSpawner", -20, 0, random(0,-360), 2, random(0,360))
	TNT1 A 0 A_CustomMissile ("TrueLegendarySphereFlameSpawner", -20, 0, random(0,-360), 2, random(0,360))
	TLW3 BCDEFGHIJ 3 Bright
    Goto Spawn+2
  Use:
    TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("TrueLegWeaponSphereToken",1,"Nope")
	TNT1 A 1 ACS_NamedExecuteAlways("TrueLegWeaponSphereActive",0)
	Stop
  Nope:
    TNT1 A 0
	TNT1 A 0 ACS_NamedLockedExecute("PowerRegenMessage",0)
	TNT1 A 1
	Fail
  Remove:
    TNT1 A 1
    TNT1 A 0 A_SpawnItem("UtilyCrateGot")
	TNT1 A 0
	Stop
}
}

ACTOR INFGODSSkullOfPower : CustomInventory Replaces RealSkullOfPower
{
  Scale 0.75
  Inventory.Amount 1
  Inventory.MaxAmount 1
  Inventory.PickupSound "pickups/soterror"
  Inventory.UseSound "soterror/use"
  Inventory.PickupMessage "Skull Of Power"
  Inventory.Icon "INSKA0"
  +INVENTORY.INVBAR
  +FLOORCLIP
  Tag "Skull Of Power"
  States
  {
  Spawn:
	SKUT A -1
	Stop
    Use:
	    TNT1 A 0 A_JumpIfInventory("TerminatorDarkEnragedSkullOfPowerDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.75xDamage",1,"Nope")
		TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.5xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower2xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.75xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.5xDamage",1,"Nope")
		TNT1 A 0 A_JumpIfInventory("TrueDarkEnragedLegendaryRuneItem",1,"TrueDarkEnragedRuneUse")
	    TNT1 A 0 A_JumpIfInventory("TrueLegendaryRuneItem",1,"Use2")
        TNT1 A 0 A_JumpIfInventory("TrueLegendaryRuneItem2",1,"Use2")
        TNT1 A 0 A_GiveInventory("SkullOfPower2xDamage")
		TNT1 A 0 A_GiveInventory("FakeSkullOfPower2")
		TNT1 A 0
		Stop
	 Use2:
	    TNT1 A 0 A_JumpIfInventory("TerminatorDarkEnragedSkullOfPowerDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.75xDamage",1,"Nope")
		TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.5xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower2xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.75xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.5xDamage",1,"Nope")
		TNT1 A 0 A_JumpIfInventory("TrueDarkEnragedLegendaryRuneItem",1,"TrueDarkEnragedRuneUse")
        TNT1 A 0 A_JumpIfInventory("NexusStrength",1,"Use3")
		TNT1 A 0 A_JumpIfInventory("TerminatorDamage",1,"Use3")
        TNT1 A 0 A_JumpIfInventory("TerminatorDamage2",1,"Use3")
		TNT1 A 0 A_GiveInventory("SkullOfPower1.75xDamage")
		TNT1 A 0 A_GiveInventory("FakeSkullOfPower2")
		TNT1 A 0
		Stop
	 Use3:
	    TNT1 A 0 A_JumpIfInventory("TerminatorDarkEnragedSkullOfPowerDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.75xDamage",1,"Nope")
		TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.5xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower2xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.75xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.5xDamage",1,"Nope")
		TNT1 A 0 A_JumpIfInventory("TrueDarkEnragedLegendaryRuneItem",1,"TrueDarkEnragedRuneUse2")
		TNT1 A 0 A_GiveInventory("SkullOfPower1.5xDamage")
		TNT1 A 0 A_GiveInventory("FakeSkullOfPower2")
		TNT1 A 0
		Stop
	TrueDarkEnragedRuneUse:
	    TNT1 A 0 A_JumpIfInventory("TerminatorDarkEnragedSkullOfPowerDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.75xDamage",1,"Nope")
		TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.5xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower2xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.75xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.5xDamage",1,"Nope")
		TNT1 A 0 A_JumpIfInventory("TerminatorCheck3",1,"TerminatorTrueDarkEnragedRuneUse")
		TNT1 A 0 A_JumpIfInventory("NexusStrength",1,"TrueDarkEnragedRuneUse2")
		TNT1 A 0 A_JumpIfInventory("TerminatorDamage",1,"TrueDarkEnragedRuneUse2")
        TNT1 A 0 A_JumpIfInventory("TerminatorDamage2",1,"TrueDarkEnragedRuneUse2")
		TNT1 A 0 A_GiveInventory("DarkEnragedSkullOfPower1.75xDamage")
		TNT1 A 0 A_GiveInventory("FakeSkullOfPower3")
		TNT1 A 0
		Stop
	TrueDarkEnragedRuneUse2:
	    TNT1 A 0 A_JumpIfInventory("TerminatorDarkEnragedSkullOfPowerDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.75xDamage",1,"Nope")
		TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.5xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower2xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.75xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.5xDamage",1,"Nope")
		TNT1 A 0 A_JumpIfInventory("TerminatorCheck3",1,"TerminatorTrueDarkEnragedRuneUse")
		TNT1 A 0 A_GiveInventory("DarkEnragedSkullOfPower1.5xDamage")
		TNT1 A 0 A_GiveInventory("FakeSkullOfPower3")
		TNT1 A 0
		Stop
	TerminatorTrueDarkEnragedRuneUse:
	    TNT1 A 0 A_JumpIfInventory("TerminatorDarkEnragedSkullOfPowerDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.75xDamage",1,"Nope")
		TNT1 A 0 A_JumpIfInventory("DarkEnragedSkullOfPower1.5xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower2xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.75xDamage",1,"Nope")
	    TNT1 A 0 A_JumpIfInventory("SkullOfPower1.5xDamage",1,"Nope")
		TNT1 A 0 A_GiveInventory("TerminatorDarkEnragedSkullOfPowerDamage")
		TNT1 A 0 A_GiveInventory("FakeSkullOfPower4")
		TNT1 A 0
		Stop
	 Nope:
	    TNT1 A 1
		TNT1 A 0 A_Print("You cannot use 2 Skull Of Power at the same time")
	    Fail
	    }
}

ACTOR SkullOfPower2xDamage : PowerDamage
{
  DamageFactor "Normal", 2
  DamageFactor "Legendary", 1.75
  DamageFactor "LegendaryGuru", 1.25
  DamageFactor "LegendaryGuruPlayer", 1.25
  DamageFactor "PlayerNemesisPlasma", 1.5
  DamageFactor "PlayerDevBall", 1.35
  DamageFactor "PlayerDevBall2", 1.35
  DamageFactor "PDTBFG", 1.35
  DamageFactor "PlayerDevTracer", 1.35
  DamageFactor "PlayerPyro", 1.25
  DamageFactor "PlayerBHole", 1.25
  PowerUp.Duration -25
}

ACTOR SkullOfPower1.75xDamage : PowerDamage
{
  DamageFactor "Normal", 1.75
  DamageFactor "Legendary", 1.5
  DamageFactor "LegendaryGuru", 1.15
  DamageFactor "LegendaryGuruPlayer", 1.15
  DamageFactor "PlayerNemesisPlasma", 1.35
  DamageFactor "PlayerDevBall", 1.25
  DamageFactor "PlayerDevBall2", 1.25
  DamageFactor "PDTBFG", 1.25
  DamageFactor "PlayerDevTracer", 1.25
  DamageFactor "PlayerPyro", 1.2
  DamageFactor "PlayerBHole", 1.2
  PowerUp.Duration -25
}

ACTOR SkullOfPower1.5xDamage : PowerDamage
{
  DamageFactor "Normal", 1.5
  DamageFactor "Legendary", 1.4
  DamageFactor "LegendaryGuru", 1.1
  DamageFactor "LegendaryGuruPlayer", 1.1
  DamageFactor "PlayerNemesisPlasma", 1.25
  DamageFactor "PlayerDevBall", 1.2
  DamageFactor "PlayerDevBall2", 1.2
  DamageFactor "PDTBFG", 1.2
  DamageFactor "PlayerDevTracer", 1.2
  DamageFactor "PlayerPyro", 1.15
  DamageFactor "PlayerBHole", 1.15
  PowerUp.Duration -25
}

ACTOR DarkEnragedSkullOfPower1.75xDamage : PowerDamage
{
  DamageFactor "Normal", 1.8 // 1.75
  DamageFactor "Legendary", 1.6 // 1.5
  DamageFactor "LegendaryGuru", 1.2 // 1.15
  DamageFactor "LegendaryGuruPlayer", 1.2 // 1.15
  DamageFactor "PlayerNemesisPlasma", 1.4 // 1.35
  DamageFactor "PlayerDevBall", 1.3 // 1.25
  DamageFactor "PlayerDevBall2", 1.3 // 1.25
  DamageFactor "PDTBFG", 1.3 // 1.25
  DamageFactor "PlayerDevTracer", 1.3 // 1.25
  DamageFactor "PlayerPyro", 1.25 // 1.2
  DamageFactor "PlayerBHole", 1.25 // 1.2
  PowerUp.Duration -35
}

ACTOR DarkEnragedSkullOfPower1.5xDamage : PowerDamage
{
  DamageFactor "Normal", 1.6 // 1.5
  DamageFactor "Legendary", 1.5 // 1.4
  DamageFactor "LegendaryGuru", 1.15 // 1.1
  DamageFactor "LegendaryGuruPlayer", 1.15 // 1.1
  DamageFactor "PlayerNemesisPlasma", 1.3 // 1.25
  DamageFactor "PlayerDevBall", 1.25 // 1.2
  DamageFactor "PlayerDevBall2", 1.25 // 1.2
  DamageFactor "PDTBFG", 1.25 // 1.2
  DamageFactor "PlayerDevTracer", 1.25 // 1.2
  DamageFactor "PlayerPyro", 1.2 // 1.15
  DamageFactor "PlayerBHole", 1.2 // 1.15
  PowerUp.Duration -35
}

ACTOR TerminatorDarkEnragedSkullOfPowerDamage : PowerDamage
{
  DamageFactor "Normal", 1.6 // 1.5
  DamageFactor "Legendary", 1.5 // 1.4
  DamageFactor "LegendaryGuru", 1.15 // 1.1
  DamageFactor "LegendaryGuruPlayer", 1.15 // 1.1
  DamageFactor "PlayerNemesisPlasma", 1.3 // 1.25
  DamageFactor "PlayerDevBall", 1.25 // 1.2
  DamageFactor "PlayerDevBall2", 1.25 // 1.2
  DamageFactor "PDTBFG", 1.25 // 1.2
  DamageFactor "PlayerDevTracer", 1.25 // 1.2
  DamageFactor "PlayerPyro", 1.2 // 1.15
  DamageFactor "PlayerBHole", 1.2 // 1.15
  PowerUp.Duration -40
}

ACTOR FakeSkullOfPower2: PowerupGiver
{
  Powerup.Duration -25
  Powerup.Type "FakePowerUp"
  Powerup.Color RedMap
  +INVENTORY.AUTOACTIVATE
  States
  {
    Spawn:
	TNT1 A 0
	Stop
  } 
}

ACTOR FakeSkullOfPower3: PowerupGiver
{
  Powerup.Duration -35
  Powerup.Type "FakePowerUp"
  Powerup.Color RedMap
  +INVENTORY.AUTOACTIVATE
  States
  {
    Spawn:
	TNT1 A 0
	Stop
  } 
}

ACTOR FakeSkullOfPower4: PowerupGiver
{
  Powerup.Duration -40
  Powerup.Type "FakePowerUp"
  Powerup.Color RedMap
  +INVENTORY.AUTOACTIVATE
  States
  {
    Spawn:
	TNT1 A 0
	Stop
  } 
}

ACTOR INFGODSUnstabilitySphere : CustomInventory Replaces UnstabilitySphere
{
//$Category Powerups/DUST
//$Sprite UNSTA0
//$Title "Unstability Sphere"
+FLOATBOB
+COUNTITEM
+INVENTORY.ALWAYSPICKUP
+INVENTORY.BIGPOWERUP
-FLOAT
Inventory.PickupSound "Powerup/Unstable"
Inventory.PickupMessage "Unstability!"
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
	TNT1 A 0 A_CustomMissile ("OrangeSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360)) 
	UNST AABB 1 Bright A_SpawnItem("RedSphereFlare",0,38)
	TNT1 A 0 A_CustomMissile ("OrangeSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360))
	UNST CCDD 1 Bright A_SpawnItem("RedSphereFlare",0,38)
	TNT1 A 0 A_CustomMissile ("OrangeSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360))
	UNST CCBB 1 Bright A_SpawnItem("RedSphereFlare",0,38)
	Goto Spawn+2
  Pickup:
    TNT1 A 0 A_GiveInventory("UnstabilityDoubleDamageGiver", 1)
    TNT1 A 0 A_GiveInventory("UnstabilityInvulnerabilityGiver2", 1)
    //TNT1 A 0 A_GiveInventory("UnstableSpeedGiver", 1)
	Stop
	}
}

ACTOR UnstabilityDoubleDamageGiver : PowerupGiver
{
+INVENTORY.AUTOACTIVATE
+INVENTORY.ALWAYSPICKUP
Inventory.MaxAmount 0
Powerup.Duration -25
Powerup.Type "DoubleDamage"
}

ACTOR UnstabilityInvulnerabilityGiver2 : PowerupGiver
{
+INVENTORY.AUTOACTIVATE
+INVENTORY.ALWAYSPICKUP
Inventory.MaxAmount 0
Powerup.Duration -25
Powerup.Type "Invulnerable"
Powerup.Mode Reflective
Powerup.Color GoldMap	 
}

Actor INFGODSTrueLegendaryWeaponSphere : TrueLegAmmoSphere replaces TrueLegendaryWeaponSphere
{
Inventory.MaxAmount 3
Inventory.InterhubAmount 3
Inventory.Icon "TLW3K0"
Inventory.UseSound "truelegweaponsphere/use"
Inventory.PickupMessage "\c[X5]True legendary Weapon Sphere\c-"
Inventory.PickupSound "wem/pickup"
Tag "True legendary Weapon Sphere - Turn all yellow weapons into blue, temporarily!"
Scale 0.24
Renderstyle Add
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
    TNT1 A 0 A_CustomMissile ("BlueSparkleSpawner", -20, 0, random(0,-360), 2, random(0,360))
	TLW3 AAAA 10 Bright A_CustomMissile ("TrueLegendarySphereFlameSpawner", -20, 0, random(0,-360), 2, random(0,360))
	TNT1 A 0 A_CustomMissile ("BlueSparkleSpawner", -20, 0, random(0,-360), 2, random(0,360))
	TNT1 A 0 A_CustomMissile ("TrueLegendarySphereFlameSpawner", -20, 0, random(0,-360), 2, random(0,360))
	TLW3 BCDEFGHIJ 3 Bright
    Goto Spawn+2
  Use:
    TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("TrueDarkLegendaryRuneItem",1,"TrueDarkRuneUse")
	TNT1 A 0 A_JumpIfInventory("TrueLegWeaponSphereToken",1,"Nope")
	TNT1 A 1 ACS_NamedExecuteAlways("TrueLegWeaponSphereActive",0)
	Stop
  TrueDarkRuneUse:
    TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("TerminatorCheck3",1,"UpgradedTrueDarkRuneUse")
	TNT1 A 0 A_JumpIfInventory("TrueLegWeaponSphereToken",1,"Nope")
	TNT1 A 0 A_GiveInventory("TrueDarkLegendaryRuneHeal")
	TNT1 A 0 A_GiveInventory("TrueDarkLegendaryRunePowerDamage")
	TNT1 A 1 ACS_NamedExecuteAlways("TrueLegWeaponSphereActive",0)
	Stop
  UpgradedTrueDarkRuneUse:
    TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("TrueLegWeaponSphereToken",1,"Nope")
	TNT1 A 0 A_GiveInventory("UpgradedTrueDarkLegendaryRuneHeal")
	TNT1 A 0 A_GiveInventory("UpgradedTrueDarkLegendaryRunePowerDamage")
	TNT1 A 1 ACS_NamedExecuteAlways("TrueLegWeaponSphereActive",0)
	Stop
  Nope:
    TNT1 A 0
	TNT1 A 0 ACS_NamedLockedExecute("PowerRegenMessage",0)
	TNT1 A 1
	Fail
}
}

//anti lag

Actor INFGODSNemesisArmorBonusMax : NewArmorBonus replaces NemesisArmorBonusMax
{
+NORADIUSDMG
+NOTIMEFREEZE
-INVENTORY.QUIET
+INVENTORY.BIGPOWERUP
Armor.SavePercent 100.0
Armor.SaveAmount 5
Armor.MaxSaveAmount 1200
Inventory.Icon "UNNAB0"
States
{
  Spawn:
	NARB A 6 Bright
	NARB B 12 Bright
	TNT1 A 0 A_Jump(2,"Death")
	Loop
	Death:
	NARB A 6 Bright
	NARB B 12 Bright
	Stop
	}
}

Actor INFGODSNemesisHealthBonusMax : BossLifeEssence replaces NemesisHealthBonusMax
{
Inventory.Amount 5
Inventory.MaxAmount 1200
States
{
  Spawn:
	NLIF ABCD 3 Bright
	TNT1 A 0 A_Jump(1,"Death")
	Loop
  Death:
	NLIF ABCD 3 Bright
	Stop
	}
}

Actor INFGODSNemesisArmorBonus : ArmorBonusMax replaces NemesisArmorBonus
{
+FLOATBOB
+NORADIUSDMG
+NOTIMEFREEZE
-INVENTORY.QUIET
+INVENTORY.BIGPOWERUP
Armor.SavePercent 100.0
Armor.SaveAmount 1
Armor.MaxSaveAmount 1200
Inventory.Icon "UNNAB0"
States
{
  Spawn:
	NFSS ABCDEFGHIJKJIHGFEDCB 2 Bright
	TNT1 A 0 A_Jump(1,"Death")
	Loop
  Death:
	NFSS ABCDEFGHIJKJIHGFEDCB 2 Bright
	Stop
	}
}


ACTOR INFGODSLegendaryLifeEssence : NewHealthBonus replaces LegendaryLifeEssence
{
Scale 0.5
Inventory.PickupMessage "Legendary Life Essence"
Inventory.PickupSound "pickups/lifeessence"
Inventory.Amount 10
Inventory.MaxAmount 500
+NOTIMEFREEZE
+FLOATBOB
-FLOAT
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
    LLFE ABCD 3 Bright A_SpawnItemEx("LegendaryBonusSparkleSpawner")
	TNT1 A 0 A_Jump(1,"Death")
	Goto Spawn+2
	Death:
    LLFE ABCD 2 Bright A_SpawnItemEx("LegendaryBonusSparkleSpawner")
	Stop
	}
}


ACTOR INFGODSLegendaryBossLifeEssence : NewHealthBonus replaces LegendaryBossLifeEssence
{
Scale 0.7
Inventory.PickupMessage "Legendary Life Orb"
Inventory.PickupSound "pickups/lifeessence"
Inventory.Amount 50
Inventory.MaxAmount 500
+NOTIMEFREEZE
+FLOATBOB
-FLOAT
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
    BLLF ABCD 3 Bright A_SpawnItemEx("LegendaryBonusSparkleSpawner")
	TNT1 A 0 A_Jump(1,"Death")
	Goto Spawn+2
  Death:
    BLLF ABCD 3 Bright A_SpawnItemEx("LegendaryBonusSparkleSpawner")
	Stop
	}
}

ACTOR INFGODSLegendaryArmorBonusMax : NewArmorBonus replaces LegendaryArmorBonusMax
{
Scale 0.5
Armor.SaveAmount 10
Armor.MaxSaveAmount 500
Inventory.Pickupmessage "Legendary Armor Essence"
Inventory.PickupSound "pickups/armorbonusmax"
+FLOATBOB
+NOTIMEFREEZE
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
	LLFS ABCDEFGHIJKJIHGFEDCB 2 Bright A_SpawnItemEx("LegendaryBonusSparkleSpawner")
	TNT1 A 0 A_Jump(1,"Death")
	Goto Spawn+2
  Death:
	LLFS ABCDEFGHIJKJIHGFEDCB 2 Bright A_SpawnItemEx("LegendaryBonusSparkleSpawner")
	Stop
	}
}


ACTOR INFGODSLegendaryBossArmorBonusMax : NewArmorBonus replaces LegendaryBossArmorBonusMax
{
Scale 0.7
Armor.SaveAmount 50
Armor.MaxSaveAmount 500
Inventory.PickupMessage "Legendary Armor Orb"
Inventory.PickupSound "pickups/largearmorbonusmax"
+FLOATBOB
+NOTIMEFREEZE
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
    LDAS ABCB 5 Bright A_SpawnItemEx("LegendaryBonusSparkleSpawner")
	TNT1 A 0 A_Jump(1,"Death")
	Goto Spawn+2
  Death:
    LDAS ABCB 5 Bright A_SpawnItemEx("LegendaryBonusSparkleSpawner")
	Stop
	}
}