Scriptname SuH_comES_empowermentstone extends activemagiceffect  

SuH_Fun Property _Fun auto

GlobalVariable property SuH_PCSxpgain auto
GlobalVariable property SuH_PCSxpgainitem auto
GlobalVariable property SuH_PCSdpoint auto

Actor property playerRef auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == PlayerRef ; If player consumes
		int x = Math.Floor(SuH_PCSxpgain.GetValue() + 1)
		SuH_PCSxpgain.SetValue(x)
		x = Math.Floor(1 + SuH_PCSxpgainitem.GetValue())
		SuH_PCSxpgainitem.SetValue(x)
		_Fun.BDSMcalc("d", 5)
		Debug.Notification("Empowerment Stone - XP gain increased by 1%")
	endIf
endEvent