item_effect.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package proto
  2. const (
  3. _ = iota
  4. SpecialEffect_Frozen // 冰冻效果
  5. SpecialEffect_BatchCatch // 产生范围攻击
  6. SpecialEffect_Slot // 产生slot
  7. SpecialEffect_Prizewheel // 转盘
  8. )
  9. const (
  10. _ = iota
  11. SpecialType_Screw // 螺旋鱼
  12. SpecialType_Bomb // 炸弹鱼
  13. SpecialType_Lightening // 闪电
  14. SpecialType_Trident // 三叉戟
  15. SpecialType_Slot // slot
  16. SpecialType_Blackhole // 黑洞
  17. SpecialType_Laser // 激光
  18. )
  19. /*
  20. 击中特殊鱼产生范围攻击效果
  21. 客户端在特殊鱼被击中后,将炮台设置成特殊效果
  22. 客户端发射特殊子弹 special_shoot ,这个指令服务器只转发,客户端自定义所需的数据
  23. 客户端发送特殊捕获命令
  24. special_catch
  25. type SpecialCatch struct {
  26. OriginFishKey int // 获得炮弹的鱼的fishkey
  27. TargetFishKey int // 目标鱼的fishkey
  28. }
  29. 后续捕获成功和失败信息跟普通捕获一样
  30. */
  31. type EffectInfo struct {
  32. ExtraPower int `json:",omitempty"`
  33. SpecialEffect int `json:",omitempty"`
  34. SpecialType int `json:",omitempty"`
  35. Param1 int `json:",omitempty"`
  36. Param2 int `json:",omitempty"`
  37. Extra string `json:",omitempty"`
  38. }