界面和协议

This commit is contained in:
xiekaidong 2023-08-17 18:16:06 +08:00
parent 254a27563a
commit 5b119201cf
21 changed files with 1699 additions and 1 deletions

View File

@ -139,6 +139,7 @@ BIReport.ITEM_GET_TYPE = {
ARMOR_UPGRADE = "ArmorUpgrade", ARMOR_UPGRADE = "ArmorUpgrade",
OFFLINE_RECOVERY = "OfflineRecovery", OFFLINE_RECOVERY = "OfflineRecovery",
ACT_SUMMER = "ActSummer", ACT_SUMMER = "ActSummer",
ACT_HERO_FUND = "ActHeroFund",
} }
BIReport.ADS_CLICK_TYPE = { BIReport.ADS_CLICK_TYPE = {

View File

@ -33,6 +33,7 @@ function DataManager:init()
self:initManager("ShopData", "app/userdata/shop/shop_data") self:initManager("ShopData", "app/userdata/shop/shop_data")
self:initManager("SummonData", "app/userdata/summon/summon_data") self:initManager("SummonData", "app/userdata/summon/summon_data")
self:initManager("AIHelperData", "app/userdata/game_setting/ai_helper_data") self:initManager("AIHelperData", "app/userdata/game_setting/ai_helper_data")
self:initManager("HeroFundData", "app/userdata/activity/hero_fund/hero_fund_data")
end end
function DataManager:initManager(name, path) function DataManager:initManager(name, path)
@ -117,6 +118,7 @@ function DataManager:clear()
-- 任务数据最后清理 -- 任务数据最后清理
self.TaskData:clear() self.TaskData:clear()
self.AIHelperData:clear() self.AIHelperData:clear()
self.HeroFundData:clear()
ModuleManager.TaskManager:clear() ModuleManager.TaskManager:clear()
self:clearTryOpenFunc() self:clearTryOpenFunc()
end end
@ -176,6 +178,7 @@ function DataManager:initWithServerData(data)
if data.fund then if data.fund then
self.GrowthFundData:init(data.fund.funds) self.GrowthFundData:init(data.fund.funds)
end end
self.HeroFundData:init(data.hero_fund)
-- 任务数据最后初始化,依赖其他模块的数据 -- 任务数据最后初始化,依赖其他模块的数据
self.TaskData:init() self.TaskData:init()

View File

@ -69,6 +69,8 @@ local MODULE_PATHS = {
EquipManager = "app/module/equip/equip_manager", EquipManager = "app/module/equip/equip_manager",
-- 皮肤 -- 皮肤
SkinManager = "app/module/skin/skin_manager", SkinManager = "app/module/skin/skin_manager",
-- 英雄基金
HeroFundManager = "app/module/activity/hero_fund/hero_fund_manager",
} }
-- 这里的key对应func_open里的id -- 这里的key对应func_open里的id

View File

@ -1568,6 +1568,16 @@ local act_gift = {
["cd"]=1, ["cd"]=1,
["value"]=1000 ["value"]=1000
}, },
[140403]={
["type"]=14,
["recharge_id"]=11,
["limit"]=1
},
[140404]={
["type"]=14,
["recharge_id"]=12,
["limit"]=1
},
[130002]={ [130002]={
["type"]=13, ["type"]=13,
["recharge_id"]=11, ["recharge_id"]=11,
@ -1678,6 +1688,6 @@ local act_gift = {
} }
} }
local config = { local config = {
data=act_gift,count=54 data=act_gift,count=56
} }
return config return config

View File

@ -0,0 +1,600 @@
local activity_herofund = {
[1]={
["exp"]=30,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=10,
["num_for_nothing"]="Vwg="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=44003,
["id_for_nothing"]="UgxcA2Y=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=44003,
["id_for_nothing"]="UgxcA2Y=",
["num"]=3,
["num_for_nothing"]="VQ=="
}
},
[2]={
["exp"]=60,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=1000,
["num_for_nothing"]="VwhcAw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=1500,
["num_for_nothing"]="Vw1cAw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=3000,
["num_for_nothing"]="VQhcAw=="
}
},
[3]={
["exp"]=90,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=9,
["id_for_nothing"]="Xw==",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=9,
["id_for_nothing"]="Xw==",
["num"]=2,
["num_for_nothing"]="VA=="
}
},
[4]={
["exp"]=120,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=13,
["id_for_nothing"]="Vws=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=13,
["id_for_nothing"]="Vws=",
["num"]=2,
["num_for_nothing"]="VA=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=13,
["id_for_nothing"]="Vws=",
["num"]=2,
["num_for_nothing"]="VA=="
}
},
[5]={
["exp"]=150,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=11,
["id_for_nothing"]="Vwk=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=44003,
["id_for_nothing"]="UgxcA2Y=",
["num"]=3,
["num_for_nothing"]="VQ=="
}
},
[6]={
["exp"]=180,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=1000,
["num_for_nothing"]="VwhcAw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=1500,
["num_for_nothing"]="Vw1cAw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=3000,
["num_for_nothing"]="VQhcAw=="
}
},
[7]={
["exp"]=210,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=9,
["id_for_nothing"]="Xw==",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=9,
["id_for_nothing"]="Xw==",
["num"]=2,
["num_for_nothing"]="VA=="
}
},
[8]={
["exp"]=240,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=20,
["num_for_nothing"]="VAg="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=50,
["num_for_nothing"]="Uwg="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=100,
["num_for_nothing"]="Vwhc"
}
},
[9]={
["exp"]=270,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
},
[10]={
["exp"]=300,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=11,
["id_for_nothing"]="Vwk=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=47,
["id_for_nothing"]="Ug8=",
["num"]=2,
["num_for_nothing"]="VA=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=44003,
["id_for_nothing"]="UgxcA2Y=",
["num"]=3,
["num_for_nothing"]="VQ=="
}
},
[11]={
["exp"]=330,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=3,
["id_for_nothing"]="VQ==",
["num"]=10,
["num_for_nothing"]="Vwg="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=3,
["id_for_nothing"]="VQ==",
["num"]=15,
["num_for_nothing"]="Vw0="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=3,
["id_for_nothing"]="VQ==",
["num"]=20,
["num_for_nothing"]="VAg="
}
},
[12]={
["exp"]=360,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=1000,
["num_for_nothing"]="VwhcAw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=1500,
["num_for_nothing"]="Vw1cAw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=3000,
["num_for_nothing"]="VQhcAw=="
}
},
[13]={
["exp"]=390,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=9,
["id_for_nothing"]="Xw==",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=9,
["id_for_nothing"]="Xw==",
["num"]=2,
["num_for_nothing"]="VA=="
}
},
[14]={
["exp"]=420,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=13,
["id_for_nothing"]="Vws=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=13,
["id_for_nothing"]="Vws=",
["num"]=2,
["num_for_nothing"]="VA=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=13,
["id_for_nothing"]="Vws=",
["num"]=2,
["num_for_nothing"]="VA=="
}
},
[15]={
["exp"]=450,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=11,
["id_for_nothing"]="Vwk=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=18,
["id_for_nothing"]="VwA=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
},
[16]={
["exp"]=480,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=1000,
["num_for_nothing"]="VwhcAw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=1500,
["num_for_nothing"]="Vw1cAw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=3000,
["num_for_nothing"]="VQhcAw=="
}
},
[17]={
["exp"]=510,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=9,
["id_for_nothing"]="Xw==",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=9,
["id_for_nothing"]="Xw==",
["num"]=2,
["num_for_nothing"]="VA=="
}
},
[18]={
["exp"]=540,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=20,
["num_for_nothing"]="VAg="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=50,
["num_for_nothing"]="Uwg="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=100,
["num_for_nothing"]="Vwhc"
}
},
[19]={
["exp"]=570,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
},
[20]={
["exp"]=600,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=11,
["id_for_nothing"]="Vwk=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=47,
["id_for_nothing"]="Ug8=",
["num"]=2,
["num_for_nothing"]="VA=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=44003,
["id_for_nothing"]="UgxcA2Y=",
["num"]=3,
["num_for_nothing"]="VQ=="
}
},
[21]={
["exp"]=630,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=3,
["id_for_nothing"]="VQ==",
["num"]=10,
["num_for_nothing"]="Vwg="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=3,
["id_for_nothing"]="VQ==",
["num"]=15,
["num_for_nothing"]="Vw0="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=3,
["id_for_nothing"]="VQ==",
["num"]=20,
["num_for_nothing"]="VAg="
}
},
[22]={
["exp"]=660,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=1000,
["num_for_nothing"]="VwhcAw=="
},
["reward_pro"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=1500,
["num_for_nothing"]="Vw1cAw=="
},
["reward_pro_max"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=3000,
["num_for_nothing"]="VQhcAw=="
}
}
}
local config = {
data=activity_herofund,count=22
}
return config

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: c683a9fc124b89c4a8e10278b027d723
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}

View File

@ -0,0 +1,587 @@
local arena_gift = {
[101]={
["score"]=950,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=500,
["num_for_nothing"]="Uwhc"
}
}
},
[102]={
["score"]=1000,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=22,
["id_for_nothing"]="VAo=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[103]={
["score"]=1050,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[104]={
["score"]=1100,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=500,
["num_for_nothing"]="Uwhc"
}
},
["unlock_hero"]={
54003
}
},
[105]={
["score"]=1150,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[106]={
["score"]=1200,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=13,
["id_for_nothing"]="Vws=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
},
["unlock_hero"]={
34003
}
},
[107]={
["score"]=1250,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=22,
["id_for_nothing"]="VAo=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[108]={
["score"]=1300,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=30,
["num_for_nothing"]="VQg="
}
}
},
[109]={
["score"]=1350,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[110]={
["score"]=1400,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=50,
["num_for_nothing"]="Uwg="
}
},
["unlock_hero"]={
24003
}
},
[111]={
["score"]=1450,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[112]={
["score"]=1500,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=500,
["num_for_nothing"]="Uwhc"
}
}
},
[113]={
["score"]=1550,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[114]={
["score"]=1600,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=13,
["id_for_nothing"]="Vws=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[115]={
["score"]=1650,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[116]={
["score"]=1700,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=22,
["id_for_nothing"]="VAo=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[117]={
["score"]=1750,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=30,
["num_for_nothing"]="VQg="
}
}
},
[118]={
["score"]=1800,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[119]={
["score"]=1850,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=500,
["num_for_nothing"]="Uwhc"
}
}
},
[120]={
["score"]=1900,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=11,
["id_for_nothing"]="Vwk=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[121]={
["score"]=1950,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[122]={
["score"]=2000,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=500,
["num_for_nothing"]="Uwhc"
}
}
},
[123]={
["score"]=2050,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[124]={
["score"]=2100,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=13,
["id_for_nothing"]="Vws=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[125]={
["score"]=2150,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[126]={
["score"]=2200,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=22,
["id_for_nothing"]="VAo=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[127]={
["score"]=2250,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=30,
["num_for_nothing"]="VQg="
}
}
},
[128]={
["score"]=2300,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[129]={
["score"]=2350,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=500,
["num_for_nothing"]="Uwhc"
}
}
},
[130]={
["score"]=2400,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=50,
["num_for_nothing"]="Uwg="
}
}
},
[131]={
["score"]=2450,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[132]={
["score"]=2500,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=500,
["num_for_nothing"]="Uwhc"
}
}
},
[133]={
["score"]=2550,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[134]={
["score"]=2600,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[135]={
["score"]=2650,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=13,
["id_for_nothing"]="Vws=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[136]={
["score"]=2700,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=22,
["id_for_nothing"]="VAo=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[137]={
["score"]=2750,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=30,
["num_for_nothing"]="VQg="
}
}
},
[138]={
["score"]=2800,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[139]={
["score"]=2850,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=10,
["id_for_nothing"]="Vwg=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[140]={
["score"]=2900,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=11,
["id_for_nothing"]="Vwk=",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[141]={
["score"]=2950,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[142]={
["score"]=3000,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=500,
["num_for_nothing"]="Uwhc"
}
}
},
[143]={
["score"]=3050,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[144]={
["score"]=3100,
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=8,
["id_for_nothing"]="Xg==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
}
}
local config = {
data=arena_gift,count=44
}
return config

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 505a5ee453a5c8c4eb2542c5844eab6f
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 182ed211dd57b7044ae0c6f66592ded7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,44 @@
local HeroFundManager = class("HeroFundManager", BaseModule)
function HeroFundManager:showMainUI()
UIManager:showUI("")
end
function HeroFundManager:reqHeroFundAward(level, rewardType)
-- 直接一键领取
local curLevel = DataManager.HeroFundData:getWaveCount()
local heroIdWithLv = {}
for id = 1, curLevel do
if DataManager.HeroFundData:getFreeCanGet(id) then
table.insert(heroIdWithLv, {id = id, grade = 0})
end
if DataManager.HeroFundData:getProCanGet(id) then
table.insert(heroIdWithLv, {id = id, grade = 1})
end
if DataManager.HeroFundData:getUtralCanGet(id) then
table.insert(heroIdWithLv, {id = id, grade = 2})
end
end
if not heroIdWithLv[1] then
return
end
local params = {
id_with_lv = heroIdWithLv
}
self:sendMessage(ProtoMsgType.FromMsgEnum.HeroFundAwardReq, params, {}, self.rspHeroFundAward, BIReport.ITEM_GET_TYPE.ACT_HERO_FUND)
end
function HeroFundManager:rspHeroFundAward(result)
if result.err_code == GConst.ERROR_STR.SUCCESS then
if result.reqData then
DataManager.HeroFundData:gotReward(result.reqData.id_with_lv)
end
end
end
return HeroFundManager

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 171aacb33b4ccc4439c40b8db650c861
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}

View File

@ -202,6 +202,8 @@ local ProtoMsgType = {
[4152756314] = "PVPChallengeStartRsp", [4152756314] = "PVPChallengeStartRsp",
[4155165814] = "SummerTaskClaimReq", [4155165814] = "SummerTaskClaimReq",
[4155167647] = "SummerTaskClaimRsp", [4155167647] = "SummerTaskClaimRsp",
[4188104820] = "HeroFundAwardReq",
[4188106653] = "HeroFundAwardRsp",
[4256333947] = "ExistReq", [4256333947] = "ExistReq",
[4256335780] = "ExistRsp", [4256335780] = "ExistRsp",
}, },
@ -408,6 +410,8 @@ local ProtoMsgType = {
PVPChallengeStartRsp = 4152756314, PVPChallengeStartRsp = 4152756314,
SummerTaskClaimReq = 4155165814, SummerTaskClaimReq = 4155165814,
SummerTaskClaimRsp = 4155167647, SummerTaskClaimRsp = 4155167647,
HeroFundAwardReq = 4188104820,
HeroFundAwardRsp = 4188106653,
ExistReq = 4256333947, ExistReq = 4256333947,
ExistRsp = 4256335780, ExistRsp = 4256335780,
}, },
@ -614,6 +618,8 @@ local ProtoMsgType = {
PVPChallengeStartRsp = "PVPChallengeStartRsp", PVPChallengeStartRsp = "PVPChallengeStartRsp",
SummerTaskClaimReq = "SummerTaskClaimReq", SummerTaskClaimReq = "SummerTaskClaimReq",
SummerTaskClaimRsp = "SummerTaskClaimRsp", SummerTaskClaimRsp = "SummerTaskClaimRsp",
HeroFundAwardReq = "HeroFundAwardReq",
HeroFundAwardRsp = "HeroFundAwardRsp",
ExistReq = "ExistReq", ExistReq = "ExistReq",
ExistRsp = "ExistRsp", ExistRsp = "ExistRsp",
}, },

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: bccad4c3ed05c9a4c92259b32009b0f1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ad4fd607b9b2d0b4ea51cd7a175ac2c0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,70 @@
local FundCell = class("FundCell", BaseCell)
function FundCell:init()
local uiMap = self:getUIMap()
self.txLevel = uiMap["fund_cell.level.tx_level"]
self.rewardCell1 = uiMap["fund_cell.reward_cell_1"]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.REWARD_CELL)
self.rewardCell2 = uiMap["fund_cell.reward_cell_2"]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.REWARD_CELL)
self.rewardCell3 = uiMap["fund_cell.reward_cell_3"]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.REWARD_CELL)
end
function FundCell:refresh(level, data)
self.txLevel:setText(level)
local isGet
isGet = DataManager.HeroFundData:getFreeGot(level)
local reward = DataManager.HeroFundData:getReward(level, DataManager.HeroFundData.REWARD_TYPE.FREE)
if reward then
self.rewardCell1:refreshByConfig(reward, isGet, isGet)
end
self.rewardCell1:showLock(false)
if DataManager.HeroData:getFreeCanGet(level) then
self.rewardCell1.baseObject:addRedPoint(50, 50, 0.6)
self.rewardCell1:addClickListener(function()
self:onClickReward(level, DataManager.HeroFundData.REWARD_TYPE.FREE)
end)
else
self.rewardCell1.baseObject:removeRedPoint()
self.rewardCell1:addClickListener(nil)
end
isGet = DataManager.HeroFundData:getProGot(level)
local reward = DataManager.HeroFundData:getReward(level, DataManager.HeroFundData.REWARD_TYPE.PRO)
if reward then
self.rewardCell2:refreshByConfig(reward, isGet, isGet)
end
self.rewardCell2:showLock(not DataManager.HeroFundData:getProBought())
if DataManager.HeroData:getProCanGet(level) then
self.rewardCell2.baseObject:addRedPoint(50, 50, 0.6)
self.rewardCell2:addClickListener(function()
self:onClickReward(level, DataManager.HeroFundData.REWARD_TYPE.PRO)
end)
else
self.rewardCell2.baseObject:removeRedPoint()
self.rewardCell2:addClickListener(nil)
end
isGet = DataManager.HeroFundData:getUtralGot(level)
local reward = DataManager.HeroFundData:getReward(level, DataManager.HeroFundData.REWARD_TYPE.UTRAL)
if reward then
self.rewardCell3:refreshByConfig(reward, isGet, isGet)
end
self.rewardCell3:showLock(not DataManager.HeroFundData:getUtralBought())
if DataManager.HeroData:getUtralCanGet(level) then
self.rewardCell3.baseObject:addRedPoint(50, 50, 0.6)
self.rewardCell3:addClickListener(function()
self:onClickReward(level, DataManager.HeroFundData.REWARD_TYPE.UTRAL)
end)
else
self.rewardCell3.baseObject:removeRedPoint()
self.rewardCell3:addClickListener(nil)
end
end
-- 领取奖励
function FundCell:onClickReward(level, rewardType)
ModuleManager.HeroFundManager:getReward(level, rewardType)
end
return FundCell

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 1c7ef27b36c6ea042a002ca71d0b3bc3
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}

View File

@ -0,0 +1,25 @@
local HeroFundUI = class("HeroFundUI", BaseUI)
"app/ui/activity/cell/activity_bounty_cell"
function HeroFundUI:getPrefabPath()
return ""
end
function HeroFundUI:onLoadRootComplete()
end
function HeroFundUI:_display()
end
function HeroFundUI:_addListeners()
end
function HeroFundUI:_bind()
end
return HeroFundUI

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 2a7c6809db6b28846acefe557b94944c
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8c5f86b5807abb346a0327f5b30d1623
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,258 @@
local HeroFundData = class("HeroFundData", BaseData)
HeroFundData.REWARD_TYPE = {
FREE = 1,
PRO = 2,
UTRAL = 3
}
function HeroFundData:ctor()
self:clear()
end
function HeroFundData:clear()
self.data.isDirty = false
self.waveCount = 0 -- 波次
self.waveLevel = 0 -- 波次等级 可领的最高等级
self.freeLevel = 0 -- 免费领取过的等级
self.proLevel = 0 -- 付费1领取过的等级
self.utralLevel = 0 -- 付费2领取过的等级
self.free_awarded = {} -- 领取过的免费id
self.pay_low_awarded = {} -- 领取过的付费1id
self.pay_high_awarded = {} -- 领取过的付费2id
self.proBounght = false -- 付费1已购买
self.utralBounght = false -- 付费2已购买
self.waveLevelList = {} -- 缓存波次等级
self.waveLevelListCount = 0 -- 缓存最大等级
self.endTime = 0 -- 活动结束时间
DataManager:unregisterCrossDayFunc("HeroFundData")
DataManager:unregisterTryOpenFunc("HeroFundData")
end
function HeroFundData:init(data)
data = data or {}
local cfg = self:getConfig()
self.waveLevelListCount = 0
for id, info in ipairs(cfg) do
self.waveLevelList[id] = info.exp
self.waveLevelListCount = self.waveLevelListCount + 1
end
if self.endTime ~= 0 then -- 开过了
return
end
-- DataManager:registerTryOpenFunc("HeroFundData", function()
-- if self.openTs <= 0 then
-- if ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.SEVEN_DAY, true) then
-- self.openTs = Time:getBeginningOfServerToday()
-- self.endTime = self.openTs + self:getDurationTime()
-- self.actDay = 1
-- DataManager:unregisterTryOpenFunc("HeroFundData")
-- end
-- end
-- end)
-- DataManager:registerCrossDayFunc("HeroFundData", function()
-- if not ModuleManager:checkIsOpen(ModuleManager.MODULE_KEY.SEVEN_DAY) then
-- return
-- end
-- self:setDirty()
-- end)
end
function HeroFundData:getConfig()
return ConfigManager:getConfig("activity_herofund")
end
function HeroFundData:setDirty()
self.data.isDirty = not self.data.isDirty
end
function HeroFundData:getIsOpen()
if not ModuleManager:checkIsOpen(ModuleManager.MODULE_KEY.SEVEN_DAY) then
return false
end
return self.endTime > Time:getServerTime()
end
function HeroFundData:getRemainTime()
local remian = math.max(0, self.endTime - Time:getServerTime())
return remian
end
function HeroFundData:addWaveCount(count)
self.waveCount = self.waveCount + count
local nextLevel = self.waveLevel + 1
if self.waveLevelList[nextLevel] and self.waveCount >= self.waveLevelList[nextLevel] then -- 升级了
for id = nextLevel, self.waveLevelListCount do
local wave = self.waveLevelList[id]
if wave and wave <= self.waveCount then
self.waveLevel = id
else
break
end
end
end
self:setDirty()
end
function HeroFundData:getWaveCount()
return self.waveCount
end
function HeroFundData:getFreeGot(level)
return self.free_awarded[level]
end
function HeroFundData:setFreeGot(level)
if not self.free_awarded[level] then
self.freeLevel = self.freeLevel + 1
end
self.free_awarded[level] = true
end
function HeroFundData:getProGot(level)
return self.pay_low_awarded[level]
end
function HeroFundData:setProGot(level)
if not self.pay_low_awarded[level] then
self.proLevel = self.proLevel + 1
end
self.pay_low_awarded[level] = true
end
function HeroFundData:getProBought()
return self.proBounght
end
function HeroFundData:setProBought()
self.proBounght = true
self:setDirty()
end
function HeroFundData:getUtralGot(level)
return self.pay_high_awarded[level]
end
function HeroFundData:setUtralGot(level)
if not self.pay_high_awarded[level] then
self.utralLevel = self.utralLevel + 1
end
self.pay_high_awarded[level] = true
end
function HeroFundData:getUtralBought()
return self.utralBounght
end
function HeroFundData:setUtralBought()
self.utralBounght = true
self:setDirty()
end
function HeroFundData:gotReward(heroIdWithLv)
if not heroIdWithLv then
return
end
for _, info in ipairs(heroIdWithLv) do
if info.grade == 0 then
self:setFreeGot(info.id)
elseif info.grade == 1 then
self:setProGot(info.id)
elseif info.grade == 2 then
self:setUtralGot(info.id)
end
end
self:setDirty()
end
function HeroFundData:getFreeCanGet(level)
if self:getFreeGot(level) then
return false
end
if self.waveLevel < level then
return false
end
return true
end
function HeroFundData:getProCanGet(level)
if self:getProGot(level) then
return false
end
if not self.proBounght then
return false
end
if self.waveLevel < level then
return false
end
return true
end
function HeroFundData:getUtralCanGet(level)
if self:getUtralGot(level) then
return false
end
if not self.utralBounght then
return false
end
if self.utralLevel < level then
return false
end
return true
end
function HeroFundData:getHaveReward()
if self.freeLevel < self.waveLevel then
return true
end
if self.proBounght then
if self.proLevel < self.waveLevel then
return true
end
end
if self.utralBounght then
if self.utralLevel < self.waveLevel then
return true
end
end
return false
end
function HeroFundData:getReward(level, rewardType)
local cfg = self:getConfig()[level]
if not cfg then
return
end
if rewardType == HeroFundData.REWARD_TYPE.FREE then
return cfg.reward
elseif rewardType == HeroFundData.REWARD_TYPE.PRO then
return cfg.reward_pro
elseif rewardType == HeroFundData.REWARD_TYPE.UTRAL then
return cfg.reward_pro_max
end
end
return HeroFundData

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 4ff7774557580a94bbc8207796f61ece
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}