XmdsConstConfig.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. using CommonAI.Zone.Helper;
  2. namespace CommonAI
  3. {
  4. public class XmdsConstConfig
  5. {
  6. /// <summary>
  7. /// 单位子状态.
  8. /// </summary>
  9. public enum UnitSubState : byte
  10. {
  11. NONE = 0,
  12. YINSHENG = 1, //>=1都表示隐身,N标记隐身的区域
  13. }
  14. public static string GetSubStateActionName(byte state)
  15. {
  16. string ret = null;
  17. switch (state)
  18. {
  19. case (byte)UnitActionSubStatus.Stealth:
  20. ret = "f_run02";
  21. break;
  22. default: break;
  23. }
  24. return ret;
  25. }
  26. /// <summary>
  27. /// 战斗飘字类型.
  28. /// </summary>
  29. public enum BattleFloatTipsType : byte
  30. {
  31. MIAN_YI_SIWANG = 1, //免疫死亡.
  32. ZHI_LIAO_SHANG_SHENG = 2, //治疗上升.
  33. GONG_JI_SHANG_SHENG = 3, //攻击上升.
  34. BAO_JI_SHANG_SHENG = 4, //暴击上升.
  35. SHENG_DIAN_JIA = 5, //胜点+1.
  36. FANG_YU_SHANG_SHENG = 6, //防御上升.
  37. }
  38. /// <summary>
  39. /// 特殊状态标识.
  40. /// </summary>
  41. public enum SpecialState : byte
  42. {
  43. None = 0, //无.
  44. WANTED = 1, //悬赏.
  45. }
  46. //场景类型,
  47. public enum AreaType : byte
  48. {
  49. None = 0, // 普通场景
  50. AreaFiled = 1, // 野外
  51. AreaDungeon = 2, // 副本
  52. }
  53. /// <summary>
  54. /// 自动战斗挂机模式:全图游走.
  55. /// </summary>
  56. public const string AUTO_GUARD_MODE_MAP = "map";
  57. /// <summary>
  58. /// 自动战斗挂机模式:定点.
  59. /// </summary>
  60. public const string AUTO_GUARD_MODE_POINT = "point";
  61. /// <summary>
  62. /// 当前状态无法骑乘.
  63. /// </summary>
  64. public const string TIPS_CAN_NOT_RIDE = "canNotRide";
  65. public const string TIPS_UNDER_ATTACK = "underAttack";
  66. public const string TIPS_BE_BUSY = "beBusy";
  67. public const string TIPS_MP_NOT_ENOUGH = "mpNotEnough";
  68. public const string TIPS_CAN_NOT_USE_SKILL = "canNotSkill";
  69. public const string TIPS_CAN_NOT_ENTER_SCENE = "canNotInterServer";
  70. public const string TIPS_REFINE_PUT_OK = "set_soul";
  71. public const string TIPS_REFINE_GET_OK = "get_soul";
  72. public const string TIPS_IN_PK_PROTECT = "safeguard";
  73. public const string TIPS_REFINE_BLINK = "refineItem_blink";
  74. public const string TIPS_FOLLOW_FAIL = "followfail";
  75. public const string TIPS_BAG_FULL = "bag_full";
  76. //随从召回提示操作过快
  77. public const string TIPS_CALL_BACK_BTN = "CallBackBtn";
  78. //不能移动状态下,不能释放位移技能
  79. public const string CANNOT_LAUNCH_DISPACEMENTSKILL = "cannotmove_canotlaunch_dispacementskill";
  80. //副本首次不能战斗.
  81. public const string TIPS_FIRST_CANNOT_AUTO = "first_cannot_auto";
  82. //该物品采集次数已达上限
  83. public const string TIPS_PICK_MAX = "pick_max";
  84. //自动拾取范围大小
  85. public const float AUTOPICK_RANGE = 13;
  86. //自动拾取范围大小,PVP
  87. public const int AUTOPICK_RANGE_PVP = 1;
  88. //游戏刷新帧
  89. public static int GAME_UPDATE_INTERVAL_MS = 0;
  90. // 模板ID
  91. public static readonly int DEFAULT_PET_TEMPLATE_ID = 500000;
  92. public static readonly int DEFAULT_PLAYER_TEMPLATE_ID = 500001;
  93. //数值上限
  94. public static readonly int DAMAGE_CHG_MAX = 9500;
  95. public static readonly int SKILL_CD_REDUCE_MAX = 8000;
  96. //默认不受【击飞, 黑洞效果控制】影响的体重值。 (>=即可)
  97. //攻击质量一般需要<=100(攻击力度 - 单位体重 > 0 才会才生受击效果)
  98. public static readonly int DEFAULT_WEIGHT = 100;
  99. //下面只是为了中转用的
  100. public static float PET_SHARE_MASTERDMG_RATIO = 0.2f; //宠物分担玩家伤害系数
  101. public static float PET_HEALD_RATIO = 1.0f;
  102. }
  103. }