ScriptName DfSV_SuccubusDelight extends ActiveMagicEffect

GlobalVariable Property DfSV_PCSheartXP auto
GlobalVariable Property DfSV_PCSheartForce auto
GlobalVariable Property DfSV_PCSheartForceMax auto
GlobalVariable Property DfSV_PCShpabsorb auto
GlobalVariable Property DfSV_PCSmpabsorb auto
GlobalVariable Property DfSV_PCSspabsorb auto
GlobalVariable Property DfSV_PCSabsorbmulti auto
GlobalVariable Property DfSV_PCSheartXPmulti auto
GlobalVariable Property DfSV_PCSforceusage auto
GlobalVariable Property DfSV_PCSheartXPgain auto
GlobalVariable Property DfSV_PCSspermhvalue auto
GlobalVariable Property DfSV_PCSspermmvalue auto
GlobalVariable Property DfSV_PCSspermsvalue auto
GlobalVariable Property DfSV_PCSspermfvalue auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == Game.GetPlayer()
		Float fPlayerHeartForce = DfSV_PCSheartForce.GetValue()
		Float fPlayerHeartForceMax = DfSV_PCSheartForceMax.GetValue()
		float playerhpa = DfSV_PCSspermhvalue.GetValue()
		float playermpa = DfSV_PCSspermmvalue.GetValue()
		float playerspa = DfSV_PCSspermsvalue.GetValue()
		float playerfpa = DfSV_PCSspermfvalue.GetValue()
		float absorbmulti = DfSV_PCSabsorbmulti.GetValue()
		float heartXPmulti = DfSV_PCSheartXPmulti.GetValue()
		float playerHeartXP = DfSV_PCSheartXP.GetValue()
		Float playerHeartForce = DfSV_PCSheartForce.GetValue()
		float playerHealth = Game.GetPlayer().GetBaseActorValue("health")
		float playerStamina = Game.GetPlayer().GetBaseActorValue("stamina")
		float playerMagicka = Game.GetPlayer().GetBaseActorValue("magicka")
		float forceusage = DfSV_PCSforceusage.GetValue()
		float heartXPgain = DfSV_PCSheartXPgain.GetValue()
		
		playerHeartXP += (heartXPgain * heartXPmulti * 0.2)
		playerHeartForce += (playerfpa)
		playerHealth += (playerhpa * absorbmulti)
		playerStamina += (playerspa * absorbmulti)
		playerMagicka += (playermpa * absorbmulti)
		DfSV_PCSheartXP.SetValue(playerHeartXP)
		DfSV_PCSheartForce.SetValue(playerHeartForce)
		Game.GetPlayer().SetActorValue("health", playerHealth)
		Game.GetPlayer().SetActorValue("stamina", playerStamina)
		Game.GetPlayer().SetActorValue("magicka", playerMagicka)
	endIf
endEvent