Scriptname SuH_comES_milk extends activemagiceffect  

SuH_Fun property _Fun auto

GlobalVariable property SuH_PCSstackmaxmilk auto
GlobalVariable property SuH_PCSstackmilk auto

;ent/ Actors
Actor property PlayerRef auto
;end/

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == PlayerRef ; If player consumes
		; Call functions from SuH_Fun
		_Fun.XPcalc("PCmilk", 0.0, 0, 0.0, False)
		_Fun.STATcalc(PlayerRef, TRUE, "PCmilk", "All", False, 0.0, 0.0, False)
		; Give Stack
		float x = SuH_PCSstackmilk.GetValue()
		if x < SuH_PCSstackmaxmilk.GetValue()
			SuH_PCSstackmilk.SetValue(x+1)
		endIf
	else ; If NPC consumes
		; [][][] Currently Disabled
	endIf
endEvent