ACTOR BossBelphegor_DnD : DnD_BaseHybridMonster replaces BossBelphegor {
    Health 5000
    Scale 1.5
	Speed 7
	Height 88
	Radius 32
	Game Doom
    GibHealth 25
	damagefactor "TeleportRemover", 0.0
	Obituary "%o was no match for a Belphegor."
	SeeSound "baron/sight"
	PainSound "baron/pain"
	DeathSound "baron/death"
	ActiveSound "baron/active"
	MaxStepHeight 24
	MaxDropOffHeight 32
	Mass 2560
	Tag "Belphegor"
	Species "HK"
	+MISSILEMORE
	+ISMONSTER
	+DONTHURTSPECIES
	+DONTRIP
	States {
		SetInfo:
			TNT1 A 0
		Goto SpawnSetup
	
		SpawnSetup:
			BOS3 A 0 ACS_NamedExecuteWithResult("DnD Init Monster Data", DND_MWEIGHT_VERYRARE)
			BOS3 A 0 ACS_NamedExecuteWithResult(
				"DnD Custom Monster Scale",
				DND_CUSTOM_BOSS | (MONSTERCLASS_BARON << 9) | (DND_MTYPE_DEMON_POW << 14),
				-1,
				-1, 
				-1
			)
			BOS3 A 0 A_Jump(256, "Idle")
			BOS3 A 35
		Wait
	
		Idle:
			BOS3 B 10 A_Look
		Loop
		SeeState:
			BOS3 AAAA 1 A_Chase
			BOS3 A 0 A_CheckSight("SEE2")
			BOS3 BBBB 1 A_Chase("","")
			BOS3 CCCC 1 A_Chase
			BOS3 BBBB 1 A_Chase
		Loop
		See2:
			TNT1 A 0 A_SpawnItemEx("FootStep", 0, 0)
			BOS3 AABBCCBB 1 A_Chase
		Goto See
		MeleeState:
			BOS3 F 8
			TNT1 A 0 A_PlaySound("weapons/gswing")
			BOS3 G 8 A_FaceTarget
			TNT1 AAAA 0 A_CustomMissile("BossBelphAttack",10,0,0,0)
			BOS3 H 8 A_FaceTarget
		Goto See
	
		MissileState:
			BOS3 F 8 A_FaceTarget
			BOS3 G 8 A_FaceTarget
			TNT1 A 0 A_JumpIfCloser(150, "Melee2")
			BOS3 H 8 A_CustomMissile("SuperBelphegorGreenPlasmaBall", 50, 0, 0, 1) 
		Goto See
	
		Melee2:
			TNT1 AAAA 0 A_CustomMissile("BossBelphAttack",10,0,0,0)
			TNT1 A 0 A_PlaySound("weapons/gswing")
			BOS3 H 8 A_FaceTarget
		Goto See

	PainState:
		BOS3 E  3
		BOS3 E  3 A_Pain
		Goto See
	XDeathState:
		TNT1 AAAAAAAAAAAAAAA 0 A_CustomMissile ("SuperWallRedBlood", 40, 0, random (0, 360), 2, random (-5, 5))
		TNT1 AAAAAAAAAAAAAAA 0 bright A_CustomMissile ("SuperGoreSpawner", 5, 0, random (0, 360), 2, random (30, 180))
		TNT1 AAAAAAAAAAAA 0 A_CustomMissile ("CeilBloodLauncherLong", 0, 0, random (0, 360), 2, random (50, 130))
		TNT1 AA 0 A_CustomMissile ("MuchMeatDeath", 0, 0, random (0, 360), 2, random (0, 160))
		BOS3 M 5
		BOS3 N 5 A_Scream
		BOS3 O 5 A_bossdeath
		BOS3 P 5 A_NoBlocking
		BOS3 Q 5
		BOS3 R -1
	    Stop

	DeathState:
	    BOS3 I 8 A_Scream
		BOS3 J 8 A_bossdeath
		BOS3 K 8 A_NoBlocking
		BOS3 L 8
		BOS3 L -1
	    Stop
	RaiseState:
		BOS3 O 8
		BOS3 NMLKJI  8
		Goto See
    Crush:
        TNT1 A 0 A_PlaySound("misc/xdeath4")
        CRS2 C 5
        CRS2 C -1
        Stop
	}
}

ACTOR SuperBelphegorGreenPlasmaBall_DnD : SuperBelphegorGreenPlasmaBall replaces SuperBelphegorGreenPlasmaBall {
	Stamina 32
}


Actor GreenExplosionMushroom_DnD : GreenExplosionMushroom replaces GreenExplosionMushroom {
	Stamina 4
}



ACTOR BossBelphAttack_DnD : BossBelphAttack replaces BossBelphAttack {
	Stamina 1
}