feat(logic): 添加玩家外观与聊天功能并优化宠物生成逻辑
- 在 `logic/controller/item.go` 中添加了更换玩家服装后广播结果的逻辑 - 在 `logic/controller/user.go` 中新增多个控制器方法: - `Aimat`:瞄准操作处理 - `Chat`:支持消息发送及过滤 - `ChangePlayerColor`:修改玩家颜色并扣除金币 - `ChangePlayerDoodle`:更改玩家涂鸦并扣费 - `ChangeNONOColor`:改变 NONO 颜色 - 移动宠物信息生成函数 `GenPetInfo` 至 `modules/blazing/model/pet.go` 并重构其实现 - 更新 `logic/service/player/pet.go` 和相关引用以适应新结构 -
This commit is contained in:
@@ -109,7 +109,7 @@ func initfile() {
|
||||
}
|
||||
PlayerEffectMAP = make(map[int]NewSeIdx)
|
||||
for _, v := range EffectMAP1.SeIdxList {
|
||||
if gconv.Int(v.Stat) == 1 && gconv.Int(v.StarLevel) == 0 {
|
||||
if gconv.Int(v.Stat) == 1 && gconv.Int(v.StarLevel) == 0 && gconv.Int(v.Idx) > 1000 {
|
||||
v.ArgsS = ParseSideEffectArgs(v.Args)
|
||||
|
||||
PlayerEffectMAP[gconv.Int(v.Idx)] = v
|
||||
|
||||
Reference in New Issue
Block a user