ScriptName aaaKimachuuBountyHunterMCM extends MCM_ConfigBase

GlobalVariable property glo01 Auto

Bool Property bFurtherDivision Auto
Int property iLevelMult Auto
Int property iDistanceDivision Auto
Int property iTargetDistance Auto
Int property iEnemyHealthMult Auto
Int property iDefeat Auto

Event OnPlayerLoadGame()
	utility.Wait(3.00000)
	self.SetV()
EndEvent

Event OnConfigInit()
	utility.Wait(3.00000)
	self.SetV()
EndEvent

;Event OnConfigOpen()

;EndEvent

Event OnConfigClose()
	glo01.SetValueInt(Self.GetModSettingInt("iTargetDistance:General"))
EndEvent

Event OnSettingChange(String a_ID)
	if a_ID == "iLevelMult:General"
		iLevelMult = Self.GetModSettingInt(a_ID)
	elseIf a_ID == "iDistanceDivision:General"
		iDistanceDivision = Self.GetModSettingInt(a_ID)
	elseIf a_ID == "bFurtherDivision:General"
		bFurtherDivision = self.GetModSettingBool(a_ID)
	elseIf a_ID == "iTargetDistance:General"
		iTargetDistance = Self.GetModSettingInt(a_ID)
	elseIf a_ID == "iEnemyHealthMult:General"
		iEnemyHealthMult = Self.GetModSettingInt(a_ID)
	elseIf a_ID == "iDefeat:General"
		iDefeat = Self.GetModSettingInt(a_ID)
	EndIf
EndEvent

Function SetV()
	iLevelMult = Self.GetModSettingInt("iLevelMult:General")
	iDistanceDivision = Self.GetModSettingInt("iDistanceDivision:General")
	bFurtherDivision = Self.GetModSettingBool("bFurtherDivision:General")
	iTargetDistance = Self.GetModSettingInt("iTargetDistance:General")
	iEnemyHealthMult = Self.GetModSettingInt("iEnemyHealthMult:General")
	iDefeat = Self.GetModSettingInt("iDefeat:General")
	
	glo01.SetValueInt(Self.GetModSettingInt("iTargetDistance:General"))
EndFunction