添加集卡活动配置

This commit is contained in:
sk 2024-04-15 16:14:55 +08:00
parent 84dd2bdc79
commit 2140397496
21 changed files with 5748 additions and 7829 deletions

16
data/DB_CollectBox.dat Normal file
View File

@ -0,0 +1,16 @@
ъУ†
ъФ†
ъХ†
ъЦ†
ъЧ†
ИШ†
ИЩ†
ИЪ†
 ИЫ†


Ь†
 2ЎЌђN
 ¬ЎЌР†
 2ЎЌ Ќ

95
data/DB_CollectBox.json Normal file
View File

@ -0,0 +1,95 @@
{
"Arr": [
{
"Id": 1,
"Rate": 250,
"ItemID": {
"50003": 1
}
},
{
"Id": 2,
"Rate": 250,
"ItemID": {
"50004": 1
}
},
{
"Id": 3,
"Rate": 250,
"ItemID": {
"50005": 1
}
},
{
"Id": 4,
"Rate": 250,
"ItemID": {
"50006": 1
}
},
{
"Id": 5,
"Rate": 250,
"ItemID": {
"50007": 1
}
},
{
"Id": 6,
"Rate": 200,
"ItemID": {
"50008": 1
}
},
{
"Id": 7,
"Rate": 200,
"ItemID": {
"50009": 1
}
},
{
"Id": 8,
"Rate": 200,
"ItemID": {
"50010": 1
}
},
{
"Id": 9,
"Rate": 200,
"ItemID": {
"50011": 1
}
},
{
"Id": 10,
"Rate": 10,
"ItemID": {
"50012": 1
}
},
{
"Id": 11,
"Rate": 50,
"ItemID": {
"100001": 10000
}
},
{
"Id": 12,
"Rate": 300,
"ItemID": {
"100001": 50000
}
},
{
"Id": 13,
"Rate": 50,
"ItemID": {
"100001": 100000
}
}
]
}

View File

@ -0,0 +1,29 @@
¡Ú“
¢Ú“
£Ú“
¤Ú“
¥Ú“
¦Ú“
á’–
â’–
ã’–
ä’–
å’–
æ’–
±¨”
²¨”
³¨”
´¨”
µ¨”
¶¨”
ñà–
òà–
óà–
ôà–
õà–
öà–

100
data/DB_CollectBoxGain.json Normal file
View File

@ -0,0 +1,100 @@
{
"Arr": [
{
"Id": 2420001,
"Rate": 3
},
{
"Id": 2420002,
"Rate": 10
},
{
"Id": 2420003,
"Rate": 15
},
{
"Id": 2420004,
"Rate": 20
},
{
"Id": 2420005,
"Rate": 25
},
{
"Id": 2420006,
"Rate": 30
},
{
"Id": 2460001,
"Rate": 3
},
{
"Id": 2460002,
"Rate": 10
},
{
"Id": 2460003,
"Rate": 15
},
{
"Id": 2460004,
"Rate": 20
},
{
"Id": 2460005,
"Rate": 25
},
{
"Id": 2460006,
"Rate": 30
},
{
"Id": 2430001,
"Rate": 3
},
{
"Id": 2430002,
"Rate": 10
},
{
"Id": 2430003,
"Rate": 15
},
{
"Id": 2430004,
"Rate": 20
},
{
"Id": 2430005,
"Rate": 25
},
{
"Id": 2430006,
"Rate": 30
},
{
"Id": 2470001,
"Rate": 3
},
{
"Id": 2470002,
"Rate": 10
},
{
"Id": 2470003,
"Rate": 15
},
{
"Id": 2470004,
"Rate": 20
},
{
"Id": 2470005,
"Rate": 25
},
{
"Id": 2470006,
"Rate": 30
}
]
}

Binary file not shown.

View File

@ -381,6 +381,334 @@
"Location": "0", "Location": "0",
"Describe": "作用:获取宠物或角色碎片;\n产出途径周任务奖励" "Describe": "作用:获取宠物或角色碎片;\n产出途径周任务奖励"
}, },
{
"Id": 50002,
"Name": "集卡礼盒",
"ShowLocation": [
1,
1
],
"Classify": [
1,
1,
0
],
"Type": 4,
"Effect0": [
1,
0,
0
],
"Effect": [
1,
0,
0
],
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "作用:获取金币或道具奖励\n产出途径周任务奖励"
},
{
"Id": 50003,
"Name": "M卡片红色",
"ShowLocation": [
1,
1
],
"Classify": [
1,
1,
0
],
"Type": 13,
"Effect0": [
0,
0,
1
],
"Effect": [
0,
0,
1
],
"SaleType": 1,
"SaleGold": 5000,
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "作用:获取金币或道具奖励\n产出途径集字活动"
},
{
"Id": 50004,
"Name": "A卡片红色",
"ShowLocation": [
1,
1
],
"Classify": [
1,
1,
0
],
"Type": 13,
"Effect0": [
0,
0,
1
],
"Effect": [
0,
0,
1
],
"SaleType": 1,
"SaleGold": 5000,
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "集字活动兑换奖励"
},
{
"Id": 50005,
"Name": "N卡片红色",
"ShowLocation": [
1,
1
],
"Classify": [
1,
1,
0
],
"Type": 13,
"Effect0": [
0,
0,
1
],
"Effect": [
0,
0,
1
],
"SaleType": 1,
"SaleGold": 5000,
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "集字活动兑换奖励"
},
{
"Id": 50006,
"Name": "G卡片红色",
"ShowLocation": [
1,
1
],
"Classify": [
1,
1,
0
],
"Type": 13,
"Effect0": [
0,
0,
1
],
"Effect": [
0,
0,
1
],
"SaleType": 1,
"SaleGold": 5000,
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "集字活动兑换奖励"
},
{
"Id": 50007,
"Name": "O卡片红色",
"ShowLocation": [
1,
1
],
"Classify": [
1,
1,
0
],
"Type": 13,
"Effect0": [
0,
0,
1
],
"Effect": [
0,
0,
1
],
"SaleType": 1,
"SaleGold": 5000,
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "集字活动兑换奖励"
},
{
"Id": 50008,
"Name": "G卡片黄色",
"ShowLocation": [
1,
1
],
"Classify": [
1,
1,
0
],
"Type": 13,
"Effect0": [
0,
0,
1
],
"Effect": [
0,
0,
1
],
"SaleType": 1,
"SaleGold": 5000,
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "集字活动兑换奖励"
},
{
"Id": 50009,
"Name": "A卡片黄色",
"ShowLocation": [
1,
1
],
"Classify": [
1,
1,
0
],
"Type": 13,
"Effect0": [
0,
0,
1
],
"Effect": [
0,
0,
1
],
"SaleType": 1,
"SaleGold": 5000,
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "集字活动兑换奖励"
},
{
"Id": 50010,
"Name": "M卡片黄色",
"ShowLocation": [
1,
1
],
"Classify": [
1,
1,
0
],
"Type": 13,
"Effect0": [
0,
0,
1
],
"Effect": [
0,
0,
1
],
"SaleType": 1,
"SaleGold": 5000,
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "集字活动兑换奖励"
},
{
"Id": 50011,
"Name": "E卡片黄色",
"ShowLocation": [
1,
1
],
"Classify": [
1,
1,
0
],
"Type": 13,
"Effect0": [
0,
0,
1
],
"Effect": [
0,
0,
1
],
"SaleType": 1,
"SaleGold": 5000,
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "集字活动兑换奖励"
},
{
"Id": 50012,
"Name": "芒果卡片",
"ShowLocation": [
1,
1
],
"Classify": [
1,
1,
0
],
"Type": 13,
"Effect0": [
0,
0,
1
],
"Effect": [
0,
0,
1
],
"SaleType": 1,
"SaleGold": 5000,
"Composition": 1,
"CompositionMax": 9999,
"Location": "0",
"Describe": "集字活动兑换奖励"
},
{ {
"Id": 100001, "Id": 100001,
"Name": "金币", "Name": "金币",

5
data/DB_PropExchange.dat Normal file
View File

@ -0,0 +1,5 @@
6у├ж├в├с├т├"║█ю└=
.ы├з├ш├ь├"║█ю└=
Wт├в├з├с├у├ж├ь├ы├ш├" ║█─╜Б
]с├у├ь├ы├э├т├ж├в├з├ш├"╒█Т

68
data/DB_PropExchange.json Normal file
View File

@ -0,0 +1,68 @@
{
"Arr": [
{
"Id": 1,
"Group": 1,
"Cost": {
"50003": 1,
"50004": 1,
"50005": 1,
"50006": 1,
"50007": 1
},
"Gain": {
"100001": 1000000
}
},
{
"Id": 2,
"Group": 1,
"Cost": {
"50008": 1,
"50009": 1,
"50010": 1,
"50011": 1
},
"Gain": {
"100001": 1000000
}
},
{
"Id": 3,
"Group": 1,
"Cost": {
"50003": 1,
"50004": 1,
"50005": 1,
"50006": 1,
"50007": 1,
"50008": 1,
"50009": 1,
"50010": 1,
"50011": 1
},
"Gain": {
"100001": 10000000
}
},
{
"Id": 4,
"Group": 1,
"Cost": {
"50003": 1,
"50004": 1,
"50005": 1,
"50006": 1,
"50007": 1,
"50008": 1,
"50009": 1,
"50010": 1,
"50011": 1,
"50012": 1
},
"Gain": {
"100002": 500
}
}
]
}

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -303,6 +303,32 @@ message DB_ClientVerArray {
repeated DB_ClientVer Arr = 1; repeated DB_ClientVer Arr = 1;
} }
message DB_CollectBox {
int32 Id = 1;
int32 Rate = 2;
map<int64, int64> ItemID = 3;
}
message DB_CollectBoxArray {
repeated DB_CollectBox Arr = 1;
}
message DB_CollectBoxGain {
int32 Id = 1;
int32 Rate = 2;
}
message DB_CollectBoxGainArray {
repeated DB_CollectBoxGain Arr = 1;
}
message DB_CrashSearch { message DB_CrashSearch {
int32 Id = 1; int32 Id = 1;
@ -1305,6 +1331,22 @@ message DB_PotOddArray {
repeated DB_PotOdd Arr = 1; repeated DB_PotOdd Arr = 1;
} }
message DB_PropExchange {
int32 Id = 1;
int32 Group = 2;
map<int64, int64> Cost = 3;
map<int64, int64> Gain = 4;
}
message DB_PropExchangeArray {
repeated DB_PropExchange Arr = 1;
}
message DB_RankCycle { message DB_RankCycle {
int32 Id = 1; int32 Id = 1;

2
public

@ -1 +1 @@
Subproject commit dd2f83586934e7b32c64f57f561154eb6a374656 Subproject commit af179ea10ec248fddcbdc596baf969d9f774cf42

68
srvdata/db_collectbox.go Normal file
View File

@ -0,0 +1,68 @@
// Code generated by xlsx2proto.
// DO NOT EDIT!
package srvdata
import (
"google.golang.org/protobuf/proto"
"mongo.games.com/game/protocol/server"
)
var PBDB_CollectBoxMgr = &DB_CollectBoxMgr{pool: make(map[int32]*server.DB_CollectBox), Datas: &server.DB_CollectBoxArray{}}
type DB_CollectBoxMgr struct {
Datas *server.DB_CollectBoxArray
pool map[int32]*server.DB_CollectBox
}
func (this *DB_CollectBoxMgr) unmarshal(data []byte) error {
err := proto.Unmarshal(data, this.Datas)
if err == nil {
this.arrangeData()
}
return err
}
func (this *DB_CollectBoxMgr) reunmarshal(data []byte) error {
newDatas := &server.DB_CollectBoxArray{}
err := proto.Unmarshal(data, newDatas)
if err == nil {
for _, item := range newDatas.Arr {
existItem := this.GetData(item.GetId())
if existItem == nil {
this.pool[item.GetId()] = item
this.Datas.Arr = append(this.Datas.Arr, item)
} else {
*existItem = *item
}
}
}
return err
}
func (this *DB_CollectBoxMgr) arrangeData() {
if this.Datas == nil {
return
}
dataArr := this.Datas.GetArr()
if dataArr == nil {
return
}
for _, data := range dataArr {
this.pool[data.GetId()] = data
}
}
func (this *DB_CollectBoxMgr) GetData(id int32) *server.DB_CollectBox {
if data, ok := this.pool[id]; ok {
return data
}
return nil
}
func init() {
DataMgr.RegisteLoader("DB_CollectBox.dat", &ProtobufDataLoader{dh: PBDB_CollectBoxMgr})
}

View File

@ -0,0 +1,68 @@
// Code generated by xlsx2proto.
// DO NOT EDIT!
package srvdata
import (
"google.golang.org/protobuf/proto"
"mongo.games.com/game/protocol/server"
)
var PBDB_CollectBoxGainMgr = &DB_CollectBoxGainMgr{pool: make(map[int32]*server.DB_CollectBoxGain), Datas: &server.DB_CollectBoxGainArray{}}
type DB_CollectBoxGainMgr struct {
Datas *server.DB_CollectBoxGainArray
pool map[int32]*server.DB_CollectBoxGain
}
func (this *DB_CollectBoxGainMgr) unmarshal(data []byte) error {
err := proto.Unmarshal(data, this.Datas)
if err == nil {
this.arrangeData()
}
return err
}
func (this *DB_CollectBoxGainMgr) reunmarshal(data []byte) error {
newDatas := &server.DB_CollectBoxGainArray{}
err := proto.Unmarshal(data, newDatas)
if err == nil {
for _, item := range newDatas.Arr {
existItem := this.GetData(item.GetId())
if existItem == nil {
this.pool[item.GetId()] = item
this.Datas.Arr = append(this.Datas.Arr, item)
} else {
*existItem = *item
}
}
}
return err
}
func (this *DB_CollectBoxGainMgr) arrangeData() {
if this.Datas == nil {
return
}
dataArr := this.Datas.GetArr()
if dataArr == nil {
return
}
for _, data := range dataArr {
this.pool[data.GetId()] = data
}
}
func (this *DB_CollectBoxGainMgr) GetData(id int32) *server.DB_CollectBoxGain {
if data, ok := this.pool[id]; ok {
return data
}
return nil
}
func init() {
DataMgr.RegisteLoader("DB_CollectBoxGain.dat", &ProtobufDataLoader{dh: PBDB_CollectBoxGainMgr})
}

View File

@ -0,0 +1,68 @@
// Code generated by xlsx2proto.
// DO NOT EDIT!
package srvdata
import (
"google.golang.org/protobuf/proto"
"mongo.games.com/game/protocol/server"
)
var PBDB_PropExchangeMgr = &DB_PropExchangeMgr{pool: make(map[int32]*server.DB_PropExchange), Datas: &server.DB_PropExchangeArray{}}
type DB_PropExchangeMgr struct {
Datas *server.DB_PropExchangeArray
pool map[int32]*server.DB_PropExchange
}
func (this *DB_PropExchangeMgr) unmarshal(data []byte) error {
err := proto.Unmarshal(data, this.Datas)
if err == nil {
this.arrangeData()
}
return err
}
func (this *DB_PropExchangeMgr) reunmarshal(data []byte) error {
newDatas := &server.DB_PropExchangeArray{}
err := proto.Unmarshal(data, newDatas)
if err == nil {
for _, item := range newDatas.Arr {
existItem := this.GetData(item.GetId())
if existItem == nil {
this.pool[item.GetId()] = item
this.Datas.Arr = append(this.Datas.Arr, item)
} else {
*existItem = *item
}
}
}
return err
}
func (this *DB_PropExchangeMgr) arrangeData() {
if this.Datas == nil {
return
}
dataArr := this.Datas.GetArr()
if dataArr == nil {
return
}
for _, data := range dataArr {
this.pool[data.GetId()] = data
}
}
func (this *DB_PropExchangeMgr) GetData(id int32) *server.DB_PropExchange {
if data, ok := this.pool[id]; ok {
return data
}
return nil
}
func init() {
DataMgr.RegisteLoader("DB_PropExchange.dat", &ProtobufDataLoader{dh: PBDB_PropExchangeMgr})
}

File diff suppressed because it is too large Load Diff

View File

@ -6,5 +6,5 @@ xcopy .\xlsx .\public\xlsx /s /e /y
cd .\public cd .\public
git add . git add .
git commit -m "update" git commit -m "update"
git push git push origin main
pause pause

BIN
xlsx/DB_CollectBox.xlsx Normal file

Binary file not shown.

BIN
xlsx/DB_CollectBoxGain.xlsx Normal file

Binary file not shown.

Binary file not shown.

BIN
xlsx/DB_PropExchange.xlsx Normal file

Binary file not shown.