GM =1 的道具不发

This commit is contained in:
meixiongfeng 2023-08-18 21:15:38 +08:00
parent c2f157bb75
commit 4623e5bfe4
4 changed files with 808 additions and 405 deletions

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

@ -36,6 +36,7 @@ type GameItemData struct {
Describe string Describe string
Dialogue string Dialogue string
Sale []*Gameatn Sale []*Gameatn
Gm int32
} }
const TypeId_GameItemData = -984700967 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 return
} }