This commit is contained in:
liwei1dao 2023-08-18 22:10:18 +08:00
commit 5dc63fa4d2
5 changed files with 821 additions and 414 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5336,7 +5336,7 @@
"opencond": "",
"lock": 1,
"lockend": 999,
"ontxe": 300020,
"ontxe": 20240,
"id_after": 300040,
"group": 301,
"exgroup": 310,
@ -5588,7 +5588,7 @@
"opencond": "",
"lock": 1,
"lockend": 999,
"ontxe": 300062,
"ontxe": 20280,
"id_after": 0,
"group": 301,
"exgroup": 310,
@ -5629,7 +5629,7 @@
"opencond": "",
"lock": 1,
"lockend": 999,
"ontxe": 300070,
"ontxe": 20290,
"id_after": 0,
"group": 301,
"exgroup": 310,

View File

@ -149,7 +149,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er
// 发所有道具
item := this.configure.GetAllItemConfigure()
for _, v := range item {
if v.Bagtype != 0 {
if v.Gm != 1 {
res = append(res, &cfg.Gameatn{
A: "item",
T: v.Id,

View File

@ -71,7 +71,7 @@ func (this *apiComp) Story(session comm.IUserSession, req *pb.StonehengeStoryReq
}
return
}
this.module.Debugf("%v", conf)
this.module.Debugf("GetStoneStoryConf:%v", conf)
if req.Pos == 0 {
event = conf.OptionEventIdGroup1
} else if req.Pos == 1 {
@ -109,8 +109,11 @@ func (this *apiComp) Story(session comm.IUserSession, req *pb.StonehengeStoryReq
szW = append(szW, int32(n))
}
}
if len(event) > 0 {
arr := strings.Split(event[comm.GetRandW(szW)], ",")
if len(arr) != 3 {
return
}
if n, err := strconv.Atoi(arr[2]); err == nil {
stone.Rooms.Story = int32(n)
}
@ -120,6 +123,7 @@ func (this *apiComp) Story(session comm.IUserSession, req *pb.StonehengeStoryReq
}
}
}
}
this.module.modelStonehenge.AddNewEvent([]int32{newEvent}, stone)
update["rooms"] = stone.Rooms
this.module.modelStonehenge.ChangeStonehengeData(session.GetUserId(), update)

View File

@ -36,6 +36,7 @@ type GameItemData struct {
Describe string
Dialogue string
Sale []*Gameatn
Gm int32
}
const TypeId_GameItemData = -984700967
@ -148,6 +149,7 @@ func (_v *GameItemData)Deserialize(_buf map[string]interface{}) (err error) {
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["gm"].(float64); !_ok_ { err = errors.New("gm error"); return }; _v.Gm = int32(_tempNum_) }
return
}