This commit is contained in:
meixiongfeng 2023-03-29 17:17:05 +08:00
commit 7016e5560f
8 changed files with 301 additions and 295 deletions

View File

@ -2,8 +2,8 @@
{ {
"lv": 1, "lv": 1,
"probability": [ "probability": [
80, 60,
20, 40,
0, 0,
0 0
], ],
@ -12,8 +12,8 @@
{ {
"lv": 2, "lv": 2,
"probability": [ "probability": [
70, 60,
20, 30,
10, 10,
0 0
], ],

File diff suppressed because it is too large Load Diff

View File

@ -660,6 +660,7 @@
"n": 30000 "n": 30000
} }
], ],
"game_make_TunkNum": 5 "game_make_TunkNum": 5,
"pandamas_tiguandiaoxiang_cd": 10
} }
] ]

View File

@ -63,7 +63,7 @@
"key": "muzhuang_3", "key": "muzhuang_3",
"text": "3级木人桩" "text": "3级木人桩"
}, },
"pile_appearance": "Level2", "pile_appearance": "Level3",
"effect": { "effect": {
"key": "muzhuang_xiaoguo_3", "key": "muzhuang_xiaoguo_3",
"text": "每分钟提升经验{0}" "text": "每分钟提升经验{0}"
@ -92,7 +92,7 @@
"key": "muzhuang_4", "key": "muzhuang_4",
"text": "4级木人桩" "text": "4级木人桩"
}, },
"pile_appearance": "Level2", "pile_appearance": "Level4",
"effect": { "effect": {
"key": "muzhuang_xiaoguo_4", "key": "muzhuang_xiaoguo_4",
"text": "每分钟提升经验{0}" "text": "每分钟提升经验{0}"
@ -121,7 +121,7 @@
"key": "muzhuang_5", "key": "muzhuang_5",
"text": "5级木人桩" "text": "5级木人桩"
}, },
"pile_appearance": "Level2", "pile_appearance": "Level5",
"effect": { "effect": {
"key": "muzhuang_xiaoguo_5", "key": "muzhuang_xiaoguo_5",
"text": "每分钟提升经验{0}" "text": "每分钟提升经验{0}"

View File

@ -32,7 +32,7 @@
"key": "wuguan_1", "key": "wuguan_1",
"text": "图鉴信息描述" "text": "图鉴信息描述"
}, },
"icon": "wg_icon_mz02", "icon": "wg_icon_mz03",
"atlas_score": 45 "atlas_score": 45
}, },
{ {
@ -50,7 +50,7 @@
"key": "wuguan_1", "key": "wuguan_1",
"text": "图鉴信息描述" "text": "图鉴信息描述"
}, },
"icon": "wg_icon_mz03", "icon": "wg_icon_mz02",
"atlas_score": 60 "atlas_score": 60
}, },
{ {

View File

@ -29,10 +29,13 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.PracticeInfoReq) (c
if room.Npcstate == 0 && room.Currnpc == 0 { if room.Npcstate == 0 && room.Currnpc == 0 {
this.module.modelPandata.refreshnpc(room) this.module.modelPandata.refreshnpc(room)
update["currnpc"] = room.Currnpc
update["captain"] = room.Captain
update["formation"] = room.Formation
} }
for i := 0; i < len(room.Statuers); { for i := 0; i < len(room.Statuers); {
if time.Unix(room.Statuers[i].End, 0).After(configure.Now()) { //过期 if configure.Now().After(time.Unix(room.Statuers[i].End, 0)) {
room.Statuers = append(room.Statuers[:i], room.Statuers[i+1:]...) room.Statuers = append(room.Statuers[:i], room.Statuers[i+1:]...)
update["statuers"] = room.Statuers update["statuers"] = room.Statuers
} else { } else {

View File

@ -214,7 +214,7 @@ func (this *Practice) ChallengeResults(bid, red, bule string, winSide int32) {
keep = false keep = false
for _, v := range buleroom.Statuers { for _, v := range buleroom.Statuers {
if v.Uid == red { if v.Uid == red {
v.End = configure.Now().Add(time.Minute * 1).Unix() v.End = configure.Now().Add(time.Minute * time.Duration(this.configure.GetGlobalConf().PandamasTiguandiaoxiangCd)).Unix()
keep = true keep = true
break break
} }
@ -223,7 +223,7 @@ func (this *Practice) ChallengeResults(bid, red, bule string, winSide int32) {
buleroom.Statuers = append(buleroom.Statuers, &pb.DBPracticeStatuer{ buleroom.Statuers = append(buleroom.Statuers, &pb.DBPracticeStatuer{
Uid: red, Uid: red,
Figure: reduser.Figure, Figure: reduser.Figure,
End: configure.Now().Add(time.Minute * 1).Unix(), End: configure.Now().Add(time.Minute * time.Duration(this.configure.GetGlobalConf().PandamasTiguandiaoxiangCd)).Unix(),
}) })
} }
@ -238,7 +238,7 @@ func (this *Practice) ChallengeResults(bid, red, bule string, winSide int32) {
keep = false keep = false
for _, v := range redroom.Statuers { for _, v := range redroom.Statuers {
if v.Uid == bule { if v.Uid == bule {
v.End = configure.Now().Add(time.Minute * 1).Unix() v.End = configure.Now().Add(time.Minute * time.Duration(this.configure.GetGlobalConf().PandamasTiguandiaoxiangCd)).Unix()
keep = true keep = true
break break
} }
@ -247,7 +247,7 @@ func (this *Practice) ChallengeResults(bid, red, bule string, winSide int32) {
redroom.Statuers = append(redroom.Statuers, &pb.DBPracticeStatuer{ redroom.Statuers = append(redroom.Statuers, &pb.DBPracticeStatuer{
Uid: bule, Uid: bule,
Figure: buleuser.Figure, Figure: buleuser.Figure,
End: configure.Now().Add(time.Minute * 1).Unix(), End: configure.Now().Add(time.Minute * time.Duration(this.configure.GetGlobalConf().PandamasTiguandiaoxiangCd)).Unix(),
}) })
} }
for i, v := range buleroom.Statuers { for i, v := range buleroom.Statuers {

View File

@ -196,6 +196,7 @@ type GameGlobalData struct {
PandamasRankedBelow50 int32 PandamasRankedBelow50 int32
MrylFlushed []*Gameatn MrylFlushed []*Gameatn
GameMakeTunkNum int32 GameMakeTunkNum int32
PandamasTiguandiaoxiangCd int32
} }
const TypeId_GameGlobalData = 477542761 const TypeId_GameGlobalData = 477542761
@ -819,6 +820,7 @@ func (_v *GameGlobalData)Deserialize(_buf map[string]interface{}) (err error) {
} }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["game_make_TunkNum"].(float64); !_ok_ { err = errors.New("game_make_TunkNum error"); return }; _v.GameMakeTunkNum = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["game_make_TunkNum"].(float64); !_ok_ { err = errors.New("game_make_TunkNum error"); return }; _v.GameMakeTunkNum = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["pandamas_tiguandiaoxiang_cd"].(float64); !_ok_ { err = errors.New("pandamas_tiguandiaoxiang_cd error"); return }; _v.PandamasTiguandiaoxiangCd = int32(_tempNum_) }
return return
} }