Actor NemesisArtefact : CustomInventory
{
//Creator: Eshkere Jason
//Origin: Infinity Gods "Divine Infinity"
//Sprite: NA9R
//Title: "Artifact"
+FloatBob
+DONTGIB
+Inventory.InvBar
+Inventory.PickupFlash
+Inventory.FancyPickupSound
+INVENTORY.HUBPOWER
+INVENTORY.PERSISTENTPOWER
+Inventory.AUTOACTIVATE
Inventory.Amount 1
Inventory.MaxAmount 1
Inventory.Icon "NA9RD0"
ActiveSound "VoidRune/Idle"
Inventory.PickupMessage "Nemesis Artefact! Now the question is. what does it do?"
States
{
  Spawn:
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_PlaySound("VoidRune/Idle",7,1.0,1)
	TNT1 A 0 A_SpawnItemEx("NemesisRuneLineSpawner")
	NA9R AAA 4 Bright A_SpawnItemEx("NemesisArmorSoul",random(-30,30),random(-30,30),random(3,10),frandom(-0.2,0.2),frandom(-0.2,0.2),frandom(0.5,2),random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("NemesisRuneLineSpawner")
	NA9R BBB 4 Bright A_SpawnItemEx("NemesisArmorSoul",random(-30,30),random(-30,30),random(3,10),frandom(-0.2,0.2),frandom(-0.2,0.2),frandom(0.5,2),random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("NemesisRuneLineSpawner")
	NA9R CCC 4 Bright A_SpawnItemEx("NemesisArmorSoul",random(-30,30),random(-30,30),random(3,10),frandom(-0.2,0.2),frandom(-0.2,0.2),frandom(0.5,2),random(0,360),0,128)
	Goto Spawn+3
  Pickup:
    TNT1 A 0 A_Print("\c[W8]Warning. Your mode will be changed to Hardmode . Very powerful enemies will appear\c-")
	TNT1 A 0 
	TNT1 A 0 A_PlaySound("nemesisrune/consoom",6)
	TNT1 A 0 A_GiveInventory("NexusSpread")
	Stop
  Nope:
	BLRN A 1
	Fail
  Remove:
	TNT1 A 0
	Stop
	}
}

ACTOR NemesisArtefactCheck : Inventory {Inventory.MaxAmount 1}

Actor NemesisArtefactItem : CustomInventory { }

Actor NemesisArtefactItem : LegendaryRuneItem { }