local GlobalAddonName, E = ...
----------------------------------------------------------------
local function Collect_Money_AYE()
	----------------------------------------------------------------
	if not E:func_CanCollectData() then return end
	local collectMASLENGO = Octo_ToDo_DB_Levels[E.curGUID].MASLENGO
	local collectPlayerData = Octo_ToDo_DB_Levels[E.curGUID].PlayerData
	----------------------------------------------------------------
	collectPlayerData.Money = GetMoney() or 0
	local CONFIG_SHOW_ONLY_CURRENT_REGION = Octo_ToDo_DB_Options.CONFIG_SHOW_ONLY_CURRENT_REGION
	----------------------------------------------------------------
	local tempTable_Money = {}
	for GUID, CharInfo in next, (Octo_ToDo_DB_Levels) do
		local pd = CharInfo.PlayerData
		if (not CONFIG_SHOW_ONLY_CURRENT_REGION) or pd.CurrentRegionName == E.CurrentRegionName then
			local Money = pd.Money or 0
			table.insert(tempTable_Money, {sortValue = Money})
		end
	end
	E.minValue_Money, E.maxValue_Money = E.func_GetMinMaxValue(tempTable_Money, "sortValue")
	----------------------------------------------------------------
end
----------------------------------------------------------------
function E.Collect_Money_AYE()
	E.func_SpamBlock(Collect_Money_AYE, false)
end