From 90070e8798b1ad39b69fe6a50ee2831a83a73d25 Mon Sep 17 00:00:00 2001 From: chenxi Date: Wed, 19 Apr 2023 20:06:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/config/chapter.lua | 432 ++++++++++++++++++++++++++----------- lua/app/config/hero.lua | 24 ++- 2 files changed, 317 insertions(+), 139 deletions(-) diff --git a/lua/app/config/chapter.lua b/lua/app/config/chapter.lua index c0fab787..d2769143 100644 --- a/lua/app/config/chapter.lua +++ b/lua/app/config/chapter.lua @@ -1,6 +1,8 @@ local chapter = { [1]={ ["next_chapter"]=2, + ["icon"]="chapter_1", + ["scenes"]="bg_1", ["board"]={ 1 }, @@ -30,14 +32,6 @@ local chapter = { 501 }, ["wave_reward"]={ - { - ["type"]=1, - ["type_for_nothing"]="Vw==", - ["id"]=4, - ["id_for_nothing"]="Ug==", - ["num"]=1, - ["num_for_nothing"]="Vw==" - }, { ["type"]=1, ["type_for_nothing"]="Vw==", @@ -48,14 +42,6 @@ local chapter = { } }, ["finish_reward"]={ - { - ["type"]=1, - ["type_for_nothing"]="Vw==", - ["id"]=4, - ["id_for_nothing"]="Ug==", - ["num"]=5, - ["num_for_nothing"]="Uw==" - }, { ["type"]=1, ["type_for_nothing"]="Vw==", @@ -76,33 +62,22 @@ local chapter = { ["id_for_nothing"]="Vw==", ["num"]=1000, ["num_for_nothing"]="VwhcAw==" - } - }, - ["box_reward_2"]={ + }, { ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=1, - ["id_for_nothing"]="Vw==", - ["num"]=1000, - ["num_for_nothing"]="VwhcAw==" + ["id"]=12001, + ["id_for_nothing"]="VwpcA2Q=", + ["num"]=3, + ["num_for_nothing"]="VQ==" } - }, - ["box_reward_3"]={ - { - ["type"]=1, - ["type_for_nothing"]="Vw==", - ["id"]=1, - ["id_for_nothing"]="Vw==", - ["num"]=1000, - ["num_for_nothing"]="VwhcAw==" - } - }, - ["icon"]="1" + } }, [2]={ ["before_chapter"]=1, ["next_chapter"]=3, + ["icon"]="chapter_2", + ["scenes"]="bg_2", ["board"]={ 2, 3 @@ -131,14 +106,6 @@ local chapter = { 1501 }, ["wave_reward"]={ - { - ["type"]=1, - ["type_for_nothing"]="Vw==", - ["id"]=4, - ["id_for_nothing"]="Ug==", - ["num"]=1, - ["num_for_nothing"]="Vw==" - }, { ["type"]=1, ["type_for_nothing"]="Vw==", @@ -149,14 +116,6 @@ local chapter = { } }, ["finish_reward"]={ - { - ["type"]=1, - ["type_for_nothing"]="Vw==", - ["id"]=4, - ["id_for_nothing"]="Ug==", - ["num"]=5, - ["num_for_nothing"]="Uw==" - }, { ["type"]=1, ["type_for_nothing"]="Vw==", @@ -176,8 +135,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1001, - ["num_for_nothing"]="VwhcAg==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=3, + ["id_for_nothing"]="VQ==", + ["num"]=10, + ["num_for_nothing"]="Vwg=" } }, ["box_reward_2"]={ @@ -188,23 +155,22 @@ local chapter = { ["id_for_nothing"]="Vw==", ["num"]=1001, ["num_for_nothing"]="VwhcAg==" - } - }, - ["box_reward_3"]={ + }, { ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=1, - ["id_for_nothing"]="Vw==", - ["num"]=1001, - ["num_for_nothing"]="VwhcAg==" + ["id"]=32001, + ["id_for_nothing"]="VQpcA2Q=", + ["num"]=5, + ["num_for_nothing"]="Uw==" } - }, - ["icon"]="2" + } }, [3]={ ["before_chapter"]=2, ["next_chapter"]=4, + ["icon"]="chapter_3", + ["scenes"]="bg_3", ["board"]={ 4, 5, @@ -284,8 +250,8 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1002, - ["num_for_nothing"]="VwhcAQ==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" } }, ["box_reward_2"]={ @@ -294,25 +260,24 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1002, - ["num_for_nothing"]="VwhcAQ==" - } - }, - ["box_reward_3"]={ + ["num"]=1001, + ["num_for_nothing"]="VwhcAg==" + }, { ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=1, - ["id_for_nothing"]="Vw==", - ["num"]=1002, - ["num_for_nothing"]="VwhcAQ==" + ["id"]=52001, + ["id_for_nothing"]="UwpcA2Q=", + ["num"]=3, + ["num_for_nothing"]="VQ==" } - }, - ["icon"]="3" + } }, [4]={ ["before_chapter"]=3, ["next_chapter"]=5, + ["icon"]="chapter_4", + ["scenes"]="bg_4", ["board"]={ 7, 8, @@ -388,8 +353,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1003, - ["num_for_nothing"]="VwhcAA==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=4, + ["id_for_nothing"]="Ug==", + ["num"]=5, + ["num_for_nothing"]="Uw==" } }, ["box_reward_2"]={ @@ -398,8 +371,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1003, - ["num_for_nothing"]="VwhcAA==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=3, + ["id_for_nothing"]="VQ==", + ["num"]=10, + ["num_for_nothing"]="Vwg=" } }, ["box_reward_3"]={ @@ -408,15 +389,32 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1003, - ["num_for_nothing"]="VwhcAA==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=4, + ["id_for_nothing"]="Ug==", + ["num"]=5, + ["num_for_nothing"]="Uw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=5, + ["id_for_nothing"]="Uw==", + ["num"]=3, + ["num_for_nothing"]="VQ==" } - }, - ["icon"]="4" + } }, [5]={ ["before_chapter"]=4, ["next_chapter"]=6, + ["icon"]="chapter_5", + ["scenes"]="bg_5", ["board"]={ 11, 12, @@ -492,8 +490,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1004, - ["num_for_nothing"]="VwhcBw==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=4, + ["id_for_nothing"]="Ug==", + ["num"]=5, + ["num_for_nothing"]="Uw==" } }, ["box_reward_2"]={ @@ -502,8 +508,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1004, - ["num_for_nothing"]="VwhcBw==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=3, + ["id_for_nothing"]="VQ==", + ["num"]=10, + ["num_for_nothing"]="Vwg=" } }, ["box_reward_3"]={ @@ -512,15 +526,24 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1004, - ["num_for_nothing"]="VwhcBw==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=43001, + ["id_for_nothing"]="UgtcA2Q=", + ["num"]=3, + ["num_for_nothing"]="VQ==" } - }, - ["icon"]="5" + } }, [6]={ ["before_chapter"]=5, ["next_chapter"]=7, + ["icon"]="chapter_6", + ["scenes"]="bg_5", ["board"]={ 15, 16, @@ -596,8 +619,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1005, - ["num_for_nothing"]="VwhcBg==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=4, + ["id_for_nothing"]="Ug==", + ["num"]=5, + ["num_for_nothing"]="Uw==" } }, ["box_reward_2"]={ @@ -606,8 +637,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1005, - ["num_for_nothing"]="VwhcBg==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=3, + ["id_for_nothing"]="VQ==", + ["num"]=10, + ["num_for_nothing"]="Vwg=" } }, ["box_reward_3"]={ @@ -616,15 +655,32 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1005, - ["num_for_nothing"]="VwhcBg==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=4, + ["id_for_nothing"]="Ug==", + ["num"]=5, + ["num_for_nothing"]="Uw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=5, + ["id_for_nothing"]="Uw==", + ["num"]=3, + ["num_for_nothing"]="VQ==" } - }, - ["icon"]="6" + } }, [7]={ ["before_chapter"]=6, ["next_chapter"]=8, + ["icon"]="chapter_7", + ["scenes"]="bg_6", ["board"]={ 19, 20, @@ -700,8 +756,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1006, - ["num_for_nothing"]="VwhcBQ==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=4, + ["id_for_nothing"]="Ug==", + ["num"]=5, + ["num_for_nothing"]="Uw==" } }, ["box_reward_2"]={ @@ -710,8 +774,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1006, - ["num_for_nothing"]="VwhcBQ==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=3, + ["id_for_nothing"]="VQ==", + ["num"]=10, + ["num_for_nothing"]="Vwg=" } }, ["box_reward_3"]={ @@ -720,15 +792,24 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1006, - ["num_for_nothing"]="VwhcBQ==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=23001, + ["id_for_nothing"]="VAtcA2Q=", + ["num"]=3, + ["num_for_nothing"]="VQ==" } - }, - ["icon"]="7" + } }, [8]={ ["before_chapter"]=7, ["next_chapter"]=9, + ["icon"]="chapter_8", + ["scenes"]="bg_6", ["board"]={ 23, 24, @@ -804,8 +885,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1007, - ["num_for_nothing"]="VwhcBA==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=4, + ["id_for_nothing"]="Ug==", + ["num"]=5, + ["num_for_nothing"]="Uw==" } }, ["box_reward_2"]={ @@ -814,8 +903,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1007, - ["num_for_nothing"]="VwhcBA==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=3, + ["id_for_nothing"]="VQ==", + ["num"]=10, + ["num_for_nothing"]="Vwg=" } }, ["box_reward_3"]={ @@ -824,15 +921,32 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1007, - ["num_for_nothing"]="VwhcBA==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=4, + ["id_for_nothing"]="Ug==", + ["num"]=5, + ["num_for_nothing"]="Uw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=5, + ["id_for_nothing"]="Uw==", + ["num"]=3, + ["num_for_nothing"]="VQ==" } - }, - ["icon"]="8" + } }, [9]={ ["before_chapter"]=8, ["next_chapter"]=10, + ["icon"]="chapter_9", + ["scenes"]="bg_7", ["board"]={ 27, 28, @@ -908,8 +1022,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1008, - ["num_for_nothing"]="VwhcCw==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=4, + ["id_for_nothing"]="Ug==", + ["num"]=5, + ["num_for_nothing"]="Uw==" } }, ["box_reward_2"]={ @@ -918,8 +1040,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1008, - ["num_for_nothing"]="VwhcCw==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=3, + ["id_for_nothing"]="VQ==", + ["num"]=10, + ["num_for_nothing"]="Vwg=" } }, ["box_reward_3"]={ @@ -928,14 +1058,23 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1008, - ["num_for_nothing"]="VwhcCw==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=33001, + ["id_for_nothing"]="VQtcA2Q=", + ["num"]=3, + ["num_for_nothing"]="VQ==" } - }, - ["icon"]="9" + } }, [10]={ ["before_chapter"]=9, + ["icon"]="chapter_10", + ["scenes"]="bg_7", ["board"]={ 31, 32, @@ -1011,8 +1150,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1009, - ["num_for_nothing"]="VwhcCg==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=4, + ["id_for_nothing"]="Ug==", + ["num"]=5, + ["num_for_nothing"]="Uw==" } }, ["box_reward_2"]={ @@ -1021,8 +1168,16 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1009, - ["num_for_nothing"]="VwhcCg==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=3, + ["id_for_nothing"]="VQ==", + ["num"]=10, + ["num_for_nothing"]="Vwg=" } }, ["box_reward_3"]={ @@ -1031,11 +1186,26 @@ local chapter = { ["type_for_nothing"]="Vw==", ["id"]=1, ["id_for_nothing"]="Vw==", - ["num"]=1009, - ["num_for_nothing"]="VwhcCg==" + ["num"]=2000, + ["num_for_nothing"]="VAhcAw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=4, + ["id_for_nothing"]="Ug==", + ["num"]=5, + ["num_for_nothing"]="Uw==" + }, + { + ["type"]=1, + ["type_for_nothing"]="Vw==", + ["id"]=5, + ["id_for_nothing"]="Uw==", + ["num"]=3, + ["num_for_nothing"]="VQ==" } - }, - ["icon"]="10" + } } } local config = { diff --git a/lua/app/config/hero.lua b/lua/app/config/hero.lua index 637e336d..f6a9f775 100644 --- a/lua/app/config/hero.lua +++ b/lua/app/config/hero.lua @@ -46,7 +46,8 @@ local hero = { }, ["model_id"]="p0001", ["icon"]="1", - ["item_id"]=12001 + ["item_id"]=12001, + ["unlock_chapter"]=1 }, [22001]={ ["position"]=2, @@ -95,7 +96,8 @@ local hero = { }, ["model_id"]="p0002", ["icon"]="2", - ["item_id"]=22001 + ["item_id"]=22001, + ["unlock_chapter"]=0 }, [23001]={ ["position"]=2, @@ -144,7 +146,8 @@ local hero = { }, ["model_id"]="p0006", ["icon"]="6", - ["item_id"]=23001 + ["item_id"]=23001, + ["unlock_chapter"]=7 }, [32001]={ ["position"]=3, @@ -193,7 +196,8 @@ local hero = { }, ["model_id"]="p0003", ["icon"]="3", - ["item_id"]=32001 + ["item_id"]=32001, + ["unlock_chapter"]=0 }, [33001]={ ["position"]=3, @@ -242,7 +246,8 @@ local hero = { }, ["model_id"]="p0007", ["icon"]="7", - ["item_id"]=33001 + ["item_id"]=33001, + ["unlock_chapter"]=9 }, [42001]={ ["position"]=4, @@ -291,7 +296,8 @@ local hero = { }, ["model_id"]="p0004", ["icon"]="4", - ["item_id"]=42001 + ["item_id"]=42001, + ["unlock_chapter"]=0 }, [43001]={ ["position"]=4, @@ -340,7 +346,8 @@ local hero = { }, ["model_id"]="p0008", ["icon"]="8", - ["item_id"]=43001 + ["item_id"]=43001, + ["unlock_chapter"]=5 }, [52001]={ ["position"]=5, @@ -389,7 +396,8 @@ local hero = { }, ["model_id"]="p0005", ["icon"]="5", - ["item_id"]=52001 + ["item_id"]=52001, + ["unlock_chapter"]=3 } } local config = {