Scriptname SuH_ip_hxppotionScript extends activemagiceffect

GlobalVariable Property SuH_PCSheartXP auto
GlobalVariable Property SuH_PCSheartXPgain auto

Actor Property playerRef Auto

int x
float y
int z

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == playerRef
		x = playerRef.GetLevel()
		y = SuH_PCSheartXPgain.GetValue()
		z = Math.Floor(50+(x*0.5*5)*y*0.01)
		SuH_PCSheartXP.SetValue(SuH_PCSheartXP.GetValue() + z)
		debug.Notification(z+" HeartXP")
	endIf
endEvent