
local BlackJack = {};
BlackJack.BETMAX = 1000000000;

BlackJack.heguan_Info = {
	--0,1,2,3对应待机、发牌、打赏、分红
	--Action对应动效，Time对应动效时长
	[0] = {heguan0="heguan4", Action0 = "idle", Action1 = "fapai",Action2 = "feiwen", Action3 = "feiwen",
			Time0 = 1.0, 			  Time1 = 1.0,			    Time2=1.0,				   Time3 = 1.0},
	[1] = {heguan0="heguan4", Action0 = "idle", Action1 = "fapai",Action2 = "feiwen", Action3 = "feiwen",
			Time0 = 1.0, 			  Time1 = 1.0,			    Time2=1.0,				   Time3 = 1.0},
	[2] = {heguan0="heguan4", Action0 = "idle", Action1 = "fapai",Action2 = "feiwen", Action3 = "feiwen",
			Time0 = 1.0, 			  Time1 = 1.0,			    Time2=1.0,				   Time3 = 1.0},
	[3] = {heguan0="heguan4", Action0 = "idle", Action1 = "fapai",Action2 = "feiwen", Action3 = "feiwen",
			Time0 = 1.0, 			  Time1 = 1.0,			    Time2=1.0,				   Time3 = 1.0},
	[4] = {heguan0="heguan4", Action0 = "idle", Action1 = "fapai",Action2 = "feiwen", Action3 = "feiwen",
			Time0 = 1.0, 			  Time1 = 1.0,			    Time2=1.0,				   Time3 = 1.0},
	[5] = {heguan0="heguan4", Action0 = "idle", Action1 = "fapai",Action2 = "feiwen", Action3 = "feiwen",
			Time0 = 1.0, 			  Time1 = 1.0,			    Time2=1.0,				   Time3 = 1.0},
	[6] = {heguan0="heguan4", Action0 = "idle", Action1 = "fapai",Action2 = "feiwen", Action3 = "feiwen",
			Time0 = 1.0, 			  Time1 = 1.0,			    Time2=1.0,				   Time3 = 1.0},
	[7] = {heguan0="heguan4", Action0 = "idle", Action1 = "fapai",Action2 = "feiwen", Action3 = "feiwen",
			Time0 = 1.0, 			  Time1 = 1.0,			    Time2=1.0,				   Time3 = 1.0},
}

BlackJack.MONEY = 0;
BlackJack.EMONEY = 1;
BlackJack.CHIP = {
	CHIP_RATE_1 = 1, -- 倍率1
	CHIP_RATE_2 = 2, -- 倍率2
	CHIP_RATE_3 = 3, -- 倍率3
	CHIP_RATE_4 = 4, -- 倍率4
	CHIP_RATE_5 = 5, -- 倍率4
	CHIP_RATE_END = 6,
};

--筹码类型
BlackJack.Bet = {
	[BlackJack.MONEY] = {
		[BlackJack.CHIP.CHIP_RATE_1] = 10000,
		[BlackJack.CHIP.CHIP_RATE_2] = 100000,
		[BlackJack.CHIP.CHIP_RATE_3] = 1000000,
		[BlackJack.CHIP.CHIP_RATE_4] = 10000000,
		[BlackJack.CHIP.CHIP_RATE_5] = 100000000,
	},

	[BlackJack.EMONEY] = {
		[BlackJack.CHIP.CHIP_RATE_1] = 1,
		[BlackJack.CHIP.CHIP_RATE_2] = 5,
		[BlackJack.CHIP.CHIP_RATE_3] = 10,
		[BlackJack.CHIP.CHIP_RATE_4] = 50,
		[BlackJack.CHIP.CHIP_RATE_5] = 100,
	},
}

--筹码Icon
BlackJack.BetIcon = {
	[BlackJack.MONEY] = {
		[10000] = "cm1pic",
		[100000] = "cm2pic",
		[1000000] = "cm3pic",
		[10000000] = "cm4pic",
		[100000000] = "cm5pic",
	},

	[BlackJack.EMONEY] = {
		[1] = "cm1pic",
		[5] = "cm2pic",
		[10] = "cm3pic",
		[50] = "cm4pic",
		[100] = "cm5pic",
	},
}

--推荐下注筹码
BlackJack.Rate = {
	[BlackJack.MONEY] = {
		[BlackJack.CHIP.CHIP_RATE_1] = 1000000,
		[BlackJack.CHIP.CHIP_RATE_2] = 10000000,
		[BlackJack.CHIP.CHIP_RATE_3] = 100000000,
		[BlackJack.CHIP.CHIP_RATE_4] = 1000000000,
		[BlackJack.CHIP.CHIP_RATE_5] = 10000000000,
	},

	[BlackJack.EMONEY] = {
		[BlackJack.CHIP.CHIP_RATE_1] = 1000,
		[BlackJack.CHIP.CHIP_RATE_2] = 5000,
		[BlackJack.CHIP.CHIP_RATE_3] = 10000,
		[BlackJack.CHIP.CHIP_RATE_4] = 50000,
		[BlackJack.CHIP.CHIP_RATE_5] = 50001,
	},
}

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

--操作提示背景
BlackJack.CallTipBg = {
	[2] = "21dianmain_biaoqian2",
	[3] = "21dianmain_biaoqian4",
	[4] = "21dianmain_biaoqian1",
	[5] = "21dianmain_biaoqian3",
}

-- 聊天框背景朝向
BlackJack.ChatBgDir = {
	[0] = 0,
	[1] = 0,
	[2] = 1,
}

-- 自动停止局数[10、20、50、100]
BlackJack.AutoStopRonud = {
    [1] = 10,
    [2] = 20,
    [3] = 50,
    [4] = 100,
}

-- 单人单注押注上限
BlackJack.BETMAX = 1000000000;

--推荐下注筹码
BlackJack.GetDefaultRate = function(MoneyType, HeroMoney)
	if BlackJack.Rate[MoneyType] == nil then
		return 1
	end
	
	for i = 1, #BlackJack.Rate[MoneyType] do
		if HeroMoney <= BlackJack.Rate[MoneyType][i] then 
			return i
		end
	end
	
    return BlackJack.CHIP.CHIP_RATE_5
end


return BlackJack;