增加道具类型114
This commit is contained in:
parent
acfcd08d38
commit
558e443427
@ -738,7 +738,23 @@ func (p *Player) HandleItem(itemList []*item.Item, Label string) error {
|
||||
})
|
||||
}
|
||||
BackDataType[item.ITEM_TYPE_PLAYROOM_DECORATION_SET] = struct{}{}
|
||||
|
||||
case item.ITEM_TYPE_PLAYROOM_DRESS_SET: // playroom服饰套装
|
||||
Effect := itemCfg.GetItemEffectList(v.Id)
|
||||
PlayroomMod := p.PlayMod.getPlayroomMod()
|
||||
for _, v := range Effect {
|
||||
if v == 0 {
|
||||
continue
|
||||
}
|
||||
PlayroomMod.AddDress(v, Label)
|
||||
Name := playroomCfg.GetDressName(v)
|
||||
Type := playroomCfg.GetDressPart(v)
|
||||
p.TeLog("pet_deco_get", map[string]interface{}{
|
||||
"pet_deco_type": Type,
|
||||
"pet_deco_name": Name,
|
||||
"pet_deco_get_type": Label,
|
||||
})
|
||||
}
|
||||
BackDataType[item.ITEM_TYPE_PLAYROOM_DRESS_SET] = struct{}{}
|
||||
default:
|
||||
err := ItemMod.AddItem(v.Id, v.Num)
|
||||
p.TeLog("asset_change", map[string]interface{}{
|
||||
@ -773,11 +789,10 @@ func (p *Player) HandleItem(itemList []*item.Item, Label string) error {
|
||||
BackUserInfo(p)
|
||||
case item.ITEM_TYPE_FACE:
|
||||
BackUserInfo(p)
|
||||
case item.ITEM_TYPE_PLAYROOM_DECORATION:
|
||||
PlayroomBackData(p)
|
||||
case item.ITEM_TYPE_PLAYROOM_DRESS:
|
||||
PlayroomBackData(p)
|
||||
case item.ITEM_TYPE_PLAYROOM_DECORATION_SET:
|
||||
case item.ITEM_TYPE_PLAYROOM_DECORATION,
|
||||
item.ITEM_TYPE_PLAYROOM_DRESS,
|
||||
item.ITEM_TYPE_PLAYROOM_DECORATION_SET,
|
||||
item.ITEM_TYPE_PLAYROOM_DRESS_SET:
|
||||
PlayroomBackData(p)
|
||||
}
|
||||
}
|
||||
|
||||
@ -48,6 +48,7 @@ const (
|
||||
ITEM_TYPE_PLAYROOM_DECORATION = 111 // playroom装饰
|
||||
ITEM_TYPE_PLAYROOM_DRESS = 112 // playroom服饰
|
||||
ITEM_TYPE_PLAYROOM_DECORATION_SET = 113 // playroom装饰套装
|
||||
ITEM_TYPE_PLAYROOM_DRESS_SET = 114 // playroom服饰套装
|
||||
)
|
||||
|
||||
func (i *ItemMod) InitData() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user