local TexasCowboy = {};

TexasCowboy.MONEY = 0;
TexasCowboy.EMONEY = 1;
TexasCowboy.MACHINE = {
	[1] = { money_type = TexasCowboy.MONEY, },
	[2] = { money_type = TexasCowboy.EMONEY, },
}

TexasCowboy.CHIP = {
	DICE_CHIP_RATE_1 = 1, -- 倍率1
	DICE_CHIP_RATE_2 = 2, -- 倍率2
	DICE_CHIP_RATE_3 = 3, -- 倍率3
	DICE_CHIP_RATE_4 = 4, -- 倍率4
	DICE_CHIP_RATE_5 = 5, -- 倍率4
	DICE_CHIP_RATE_END = 6,
};

--筹码类型
--[Machineid]
TexasCowboy.Bet = {
	[1] = {
		[TexasCowboy.CHIP.DICE_CHIP_RATE_1] = 10000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_2] = 100000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_3] = 1000000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_4] = 10000000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_5] = 100000000,
	},

	[2] = {
		[TexasCowboy.CHIP.DICE_CHIP_RATE_1] = 10,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_2] = 30,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_3] = 100,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_4] = 300,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_5] = 1000,
	},
}

--下注筹码上限
--[Machineid]
TexasCowboy.BetMax = {
	[1] = 100000000000,
	[2] = 1000000,
}

--筹码Icon
--[Machineid]
TexasCowboy.BetIcon = {
	[1] = {
		[10000] = "tbmain_iconcm1",
		[100000] = "tbmain_iconcm2",
		[1000000] = "tbmain_iconcm3",
		[10000000] = "tbmain_iconcm4",
		[100000000] = "tbmain_iconcm5",
	},

	[2] = {
		[10] = "tbmain_iconcm1",
		[30] = "tbmain_iconcm2",
		[100] = "tbmain_iconcm3",
		[300] = "tbmain_iconcm4",
		[1000] = "tbmain_iconcm5",
	},
}

--按钮特效
TexasCowboy.Transition = {
	[1] = "act_kapaichouma10k",
	[2] = "act_kapaichouma100k",
	[3] = "act_kapaichouma1M",
	[4] = "act_kapaichouma10M",
	[5] = "act_kapaichouma100M",
}

--推荐下注筹码
--[Machineid]
TexasCowboy.Rate = {
	[1] = {
		[TexasCowboy.CHIP.DICE_CHIP_RATE_1] = 10000000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_2] = 100000000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_3] = 1000000000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_4] = 10000000000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_5] = 100000000000,
	},

	[2] = {
		[TexasCowboy.CHIP.DICE_CHIP_RATE_1] = 1000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_2] = 5000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_3] = 10000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_4] = 50000,
		[TexasCowboy.CHIP.DICE_CHIP_RATE_5] = 50001,
	},
}

--Spine
TexasCowboy.Spine = {
	[0] = {
		[1] = "hongxinA",
		[2] = "hongxin2",
		[3] = "hongxin3",
		[4] = "hongxin4",
		[5] = "hongxin5",
		[6] = "hongxin6",
		[7] = "hongxin7",
		[8] = "hongxin8",
		[9] = "hongxin9",
		[10] = "hongxin10",
		[11] = "hongxinJ",
		[12] = "hongxinQ",
		[13] = "hongxinK",
	},

	[1] = {
		[1] = "heitaoA",
		[2] = "heitao2",
		[3] = "heitao3",
		[4] = "heitao4",
		[5] = "heitao5",
		[6] = "heitao6",
		[7] = "heitao7",
		[8] = "heitao8",
		[9] = "heitao9",
		[10] = "heitao10",
		[11] = "heitaoJ",
		[12] = "heitaoQ",
		[13] = "heitaoK",
	},
	
	[2] = {
		[1] = "meihuaA",
		[2] = "meihua2",
		[3] = "meihua3",
		[4] = "meihua4",
		[5] = "meihua5",
		[6] = "meihua6",
		[7] = "meihua7",
		[8] = "meihua8",
		[9] = "meihua9",
		[10] = "meihua10",
		[11] = "meihuaJ",
		[12] = "meihuaQ",
		[13] = "meihuaK",
	},
	
	[3] = {
		[1] = "fangkuaiA",
		[2] = "fangkuai2",
		[3] = "fangkuai3",
		[4] = "fangkuai4",
		[5] = "fangkuai5",
		[6] = "fangkuai6",
		[7] = "fangkuai7",
		[8] = "fangkuai8",
		[9] = "fangkuai9",
		[10] = "fangkuai10",
		[11] = "fangkuaiJ",
		[12] = "fangkuaiQ",
		[13] = "fangkuaiK",
	},
}

TexasCowboy.AreaRate = {
	[1] = "1:2", -- 牛仔
	[2] = "1:2", -- 公牛
	[3] = "1:24", -- 平手
	[4] = "1:1.7", -- 同花、连牌、同花连牌
	[5] = "1:8.5", -- 对子
	[6] = "1:110", -- 对子A
	[7] = "1:2.3", -- 高牌、一对
	[8] = "1:3.1", -- 两对
	[9] = "1:4.8", -- 3条、顺子、同花
	[10] = "1:21", -- 葫芦
	[11] = "1:270", -- 金刚、同花顺、皇家同花顺
}

--推荐下注筹码
TexasCowboy.GetRate = function(idMachine, HeroMoney)
	if TexasCowboy.Rate[idMachine] == nil then
		return 1
	end
	
	for i = 1, #TexasCowboy.Rate[idMachine] do
		if HeroMoney <= TexasCowboy.Rate[idMachine][i] then 
			return i
		end
	end
	
    return TexasCowboy.CHIP.DICE_CHIP_RATE_5
end

return TexasCowboy;