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
		float x = SuH_PCSxpgain.GetValue() + 0.01
		SuH_PCSxpgain.SetValue(x)
		int y = Math.Floor(1 + SuH_PCSxpgainitem.GetValue())
		SuH_PCSxpgainitem.SetValue(y)
		_Fun.BDSMcalc("d", 5)
		Debug.Notification("Empowerment Stone - XP gain increased by 1%")
	else ; If NPC consumes
		; [][][] Currently Disabled
	endIf
endEvent