```
fix(monster): 调整闪光宠物生成概率并修复时间种子问题 将闪光宠物的生成条件从 `grand.Meet(1, 100)` 修改为 `grand.Meet(30, 100)`, 同时为 `RandSHiny` 方法增加时间偏移参数以提升随机性。 此外,修正了登录任务判断逻辑中的索引范围错误,字段命名优化以及部分冗余代码清理。 ```
This commit is contained in:
@@ -66,7 +66,7 @@ type OutInfo struct {
|
||||
VipStage uint32 `struc:"uint32" fieldDesc:"暂时不明建议先给固定值1" json:"vip_stage"`
|
||||
|
||||
// 人物状态 =0 步行 !=0 飞行
|
||||
ActionType uint32 `struc:"uint32" fieldDesc:"人物状态 =0 步行 !=0 飞行" json:"action_type"`
|
||||
Flag uint32 `struc:"uint32" fieldDesc:"人物状态 =0 步行 !=0 飞行" json:"action_type"`
|
||||
|
||||
// 上线的地图id
|
||||
Pos model.Pos `fieldDesc:"上线的地图id" json:"pos"`
|
||||
@@ -94,7 +94,7 @@ type OutInfo struct {
|
||||
// 宠物皮肤暂时无法测试,给 0
|
||||
PetSkin uint32 `struc:"uint32" fieldDesc:"宠物皮肤暂时无法测试, 给0" json:"pet_skin"`
|
||||
// 填充字符
|
||||
Reserved [3]uint32 `struc:"uint32" fieldDesc:"填充字符" json:"reserved"`
|
||||
Reserved [3]uint32
|
||||
|
||||
// 暂时不明给0
|
||||
FightFlag uint32 `struc:"uint32" fieldDesc:"暂时不明给0" json:"fight_flag"`
|
||||
|
||||
Reference in New Issue
Block a user