Scriptname SuH_ip_hxppotionScript extends activemagiceffect

GlobalVariable Property SuH_PCSheartXP auto
GlobalVariable Property SuH_PCSheartXPgain auto

Actor Property playerRef Auto

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