const.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. // Code generated by excel export. DO NOT EDIT.
  2. package data
  3. import (
  4. "f1-game/internal/types"
  5. )
  6. var Const = &constConfig{}
  7. func init() {
  8. _allList = append(_allList, Const)
  9. }
  10. type (
  11. ConstRow struct {
  12. GameID int32 `json:"GameID"` // 游戏id
  13. GameName string `json:"GameName"` // 游戏名称
  14. PlayerInitIcon int32 `json:"PlayerInitIcon"` // 默认头像ID
  15. PlayerInitBg int32 `json:"PlayerInitBg"` // 默认背景ID
  16. MaskWordIsCheck bool `json:"MaskWordIsCheck"` // 屏蔽词是否开启
  17. PlayerNameMinLength int32 `json:"PlayerNameMinLength"` // 玩家昵称最小长度
  18. PlayerNameMaxLength int32 `json:"PlayerNameMaxLength"` // 玩家昵称最大长度
  19. PlayerCheckName bool `json:"PlayerCheckName"` // 创建玩家时是检测否敏感词 1.开启
  20. PlayerInitItems types.Assets `json:"PlayerInitItems"` // 初始的道具列表 [[道具id,数量],[道具id,数量]]
  21. PlayerInitHeros types.Assets `json:"PlayerInitHeros"` // 初始的英雄列表 [[道具id,数量],[道具id,数量]]
  22. PlayerInitEquips types.Assets `json:"PlayerInitEquips"` // 初始的装备列表 [[道具id,数量],[道具id,数量]]
  23. PlayerInitCurrencies types.Assets `json:"PlayerInitCurrencies"` // 初始的货币列表 [[道具id,数量],[道具id,数量]]
  24. PlayerChangeNameCost types.Assets `json:"PlayerChangeNameCost"` // 玩家改名消耗
  25. PlayerChangeNameCD int64 `json:"PlayerChangeNameCD"` // 玩家改名冷却时间 单位秒
  26. PlayerDescLenLimit int `json:"PlayerDescLenLimit"` // 玩家简介限制长度
  27. PlayerShowDataCount int `json:"PlayerShowDataCount"` // 数据设置-数据展示个数
  28. BuildUpRefundRatio float32 `json:"BuildUpRefundRatio"` // 建筑升级取消返还比例
  29. BuildUpNowCost types.Assets `json:"BuildUpNowCost"` // 建筑升级立即完成消耗
  30. BuildDefaultOpen types.PairList[int32, int32] `json:"BuildDefaultOpen"` // 内城城建建筑初始化等级
  31. BuildConscriptSettleTime int64 `json:"BuildConscriptSettleTime"` // 征兵结算时间 (s)
  32. BuildConscriptRefundRatio int64 `json:"BuildConscriptRefundRatio"` // 征兵退还比例(万分比)
  33. HeroInitMoveSpeed float32 `json:"HeroInitMoveSpeed"` // 英雄初始移动速度
  34. HeroMaxStar int32 `json:"HeroMaxStar"` // 英雄最大星级
  35. HeroCapacity int32 `json:"HeroCapacity"` // 英雄容量
  36. HeroEnergy int32 `json:"HeroEnergy"` // 英雄体力值
  37. HeroEnergyAddInterval int64 `json:"HeroEnergyAddInterval"` // 英雄体力恢复时间(秒)
  38. HeroEnergyAddValue int32 `json:"HeroEnergyAddValue"` // 英雄体力恢复点数
  39. HeroEnergyActionCost int32 `json:"HeroEnergyActionCost"` // 英雄行动消耗体力值
  40. HeroSkillUnlockLevel types.List[int32] `json:"HeroSkillUnlockLevel"` // 英雄技能解锁等级
  41. HeroInjureTime int64 `json:"HeroInjureTime"` // 英雄重伤时间(秒)
  42. SkillUpItemID int32 `json:"SkillUpItemID"` // 英雄技能升级所需道具ID
  43. SkillRefundRatio float32 `json:"SkillRefundRatio"` // 英雄技能重置返还比例
  44. SkillRefundRatio0 float32 `json:"SkillRefundRatio0"` // 英雄技能重置新手期返还比例
  45. MailLimitNum int32 `json:"MailLimitNum"` // 邮件数量上限
  46. MailExpireDay int64 `json:"MailExpireDay"` // 邮件过期天数(到期即删除)
  47. MailTitleMaxLength int `json:"MailTitleMaxLength"` // 邮件标题最大字符数
  48. MailContentLength int `json:"MailContentLength"` // 邮件内容最大字符数
  49. ItemInitResCapacity int64 `json:"ItemInitResCapacity"` // 货币道具初始最大值
  50. ItemInitWoodYield int64 `json:"ItemInitWoodYield"` // 初始每小时,增加 木材 数量
  51. ItemInitIronYield int64 `json:"ItemInitIronYield"` // 初始每小时,增加 铁矿 数量
  52. ItemInitStoneYield int64 `json:"ItemInitStoneYield"` // 初始每小时,增加 石料 数量
  53. ItemInitGrainYield int64 `json:"ItemInitGrainYield"` // 初始每小时,增加 粮食 数量
  54. ItemAddSecond int64 `json:"ItemAddSecond"` // 添加资源秒数
  55. ItemChestSingleLimit int64 `json:"ItemChestSingleLimit"` // 单次开启宝箱数量上限
  56. MapInitManorLimit int32 `json:"MapInitManorLimit"` // 初始领地上限值 (通过任务和道具可提升上限)
  57. LordMaxLevel int32 `json:"LordMaxLevel"` // 领主最大等级
  58. FriendAddOpenLv int32 `json:"FriendAddOpenLv"` // 好友添加条件(领主等级)
  59. FriendNumLimit int `json:"FriendNumLimit"` // 好友人数上限
  60. FriendGroupCreateOpenLv int32 `json:"FriendGroupCreateOpenLv"` // 好友群组创建条件(领主等级)
  61. FriendGroupCreateLimit int `json:"FriendGroupCreateLimit"` // 好友群组创建上限
  62. FriendGroupHaveCountLimit int `json:"FriendGroupHaveCountLimit"` // 好友群组拥有数量上限
  63. FriendGroupNameMaxLength int32 `json:"FriendGroupNameMaxLength"` // 好友群组名称最大长度
  64. FriendGroupInviteLimit int `json:"FriendGroupInviteLimit"` // 好友群组邀请列表上限
  65. FriendLastChatLimit int `json:"FriendLastChatLimit"` // 好友最近聊天人数上限
  66. FriendPrivateChatSaveTime int64 `json:"FriendPrivateChatSaveTime"` // 好友最近私聊超过3天没有新消息,就从列表移除
  67. FriendApplyMaxCount int `json:"FriendApplyMaxCount"` // 好友申请列表上限,超过就删除最旧的
  68. FriendBlacklistLimit int `json:"FriendBlacklistLimit"` // 好友黑名单人数上限
  69. EquipRandomCraftCost types.Assets `json:"EquipRandomCraftCost"` // 装备随机打造消耗
  70. EquipRandomCraftPoolID int32 `json:"EquipRandomCraftPoolID"` // 装备随机打造道具池ID
  71. EquipEnhanceAddProbCost types.Asset `json:"EquipEnhanceAddProbCost"` // 装备强化时提升成功概率消耗
  72. EquipEnhanceMOCoinCost int64 `json:"EquipEnhanceMOCoinCost"` // 装备强化时提升成功概率消耗的MO币(客户端改完删除)
  73. EquipEnhanceMOCoinProb int32 `json:"EquipEnhanceMOCoinProb"` // 装备强化时使用MO币增加的成功概率
  74. EquipEnhanceMOCoinTimes int32 `json:"EquipEnhanceMOCoinTimes"` // 装备强化时使用MO币提升成功概率的次数
  75. EquipEnhanceFailReturn float64 `json:"EquipEnhanceFailReturn"` // 装备强化失败返还材料比例
  76. EquipSpecailSkillProb float64 `json:"EquipSpecailSkillProb"` // 装备专属技能概率
  77. EquipSpecailSkillUnlockCost types.Asset `json:"EquipSpecailSkillUnlockCost"` // 装备专属技能解锁消耗
  78. BagCapacityItem int `json:"BagCapacityItem"` // 道具背包容量
  79. BagCapacityFragment int `json:"BagCapacityFragment"` // 材料背包容量
  80. BagCapacityEquip int `json:"BagCapacityEquip"` // 装备背包容量
  81. LeagueUnlockLevel int32 `json:"LeagueUnlockLevel"` // 联盟功能解锁等级
  82. LeagueCreateNeedLevel int32 `json:"LeagueCreateNeedLevel"` // 创建联盟需要玩家等级
  83. LeagueCreateCost types.Assets `json:"LeagueCreateCost"` // 创建联盟消耗金币
  84. LeagueNameLimit int32 `json:"LeagueNameLimit"` // 联盟名称字数限制
  85. LeagueAbbNameLimit int32 `json:"LeagueAbbNameLimit"` // 联盟简称字数限制
  86. LeagueRecommendNum int32 `json:"LeagueRecommendNum"` // 推荐联盟数量
  87. LeagueQuitCD int64 `json:"LeagueQuitCD"` // 退出联盟冷却时间 (s)
  88. LeagueSearchPageNum int32 `json:"LeagueSearchPageNum"` // 单页显示联盟数量
  89. LeagueMailTitleLimit int32 `json:"LeagueMailTitleLimit"` // 联盟邮件标题字数限制
  90. LeagueMailContentLimit int32 `json:"LeagueMailContentLimit"` // 联盟邮件内容字数限制
  91. LeagueDecreeMailLimit int32 `json:"LeagueDecreeMailLimit"` // 联盟法令邮件数量上限
  92. LeagueUnionMailLimit int32 `json:"LeagueUnionMailLimit"` // 联盟同盟邮件数量上限
  93. LeagueCommandMailLimit int32 `json:"LeagueCommandMailLimit"` // 联盟指挥邮件数量上限
  94. LeagueChangeNameCost types.Asset `json:"LeagueChangeNameCost"` // 联盟名称修改消耗
  95. LeagueChangeAbbNameCost types.Asset `json:"LeagueChangeAbbNameCost"` // 联盟简称修改消耗
  96. LeagueApplyLimit int32 `json:"LeagueApplyLimit"` // 联盟入盟申请上限 针对联盟
  97. LeagueLogLimit int `json:"LeagueLogLimit"` // 联盟单页签类型日志数量上限
  98. LeagueTransferTime int64 `json:"LeagueTransferTime"` // 盟主转让时间 单位秒
  99. LeagueImpeachTime int64 `json:"LeagueImpeachTime"` // 弹劾盟主持续时间 单位小时
  100. LeagueImpeachMemberTime int64 `json:"LeagueImpeachMemberTime"` // 弹劾盟主资格 成员入盟时间超过x小时 单位小时
  101. LeagueImpeachMemberPrestige int32 `json:"LeagueImpeachMemberPrestige"` // 弹劾盟主资格 成员声望超过x
  102. LeagueNoticeLimit int32 `json:"LeagueNoticeLimit"` // 联盟公告字数限制
  103. LeagueResidenceBackCost types.Asset `json:"LeagueResidenceBackCost"` // 联盟迁入驻地消耗
  104. TeamConscriptionCost types.Assets `json:"TeamConscriptionCost"` // 征兵消耗/个
  105. TeamNumLimit int64 `json:"TeamNumLimit"` // 队伍数量上限
  106. TeamRecoverEnergyItemID int32 `json:"TeamRecoverEnergyItemID"` // 回复队伍英雄体力道具ID
  107. TeamRecoverEnergy int32 `json:"TeamRecoverEnergy"` // 回复队伍英雄体力值/个
  108. TeamMainAddAttrs types.Map[int32, int64] `json:"TeamMainAddAttrs"` // 队伍主将增加属性
  109. TeamMainAddTroops int32 `json:"TeamMainAddTroops"` // 队伍主将增加带兵数量
  110. TeamInfantrySort types.List[int32] `json:"TeamInfantrySort"` // 队伍步兵阵容填充顺序
  111. TeamCavalrySort types.List[int32] `json:"TeamCavalrySort"` // 队伍骑兵阵容填充顺序
  112. TeamArcharSort types.List[int32] `json:"TeamArcharSort"` // 队伍弓兵阵容填充顺序
  113. TeamTroopsLackRatio float32 `json:"TeamTroopsLackRatio"` // 队伍兵力不足万分比
  114. ComplaintContentLimit int32 `json:"ComplaintContentLimit"` // 举报内容限制
  115. SystemChatLimit int32 `json:"SystemChatLimit"` // 系统聊天上限
  116. MapLeaguePointRadius int32 `json:"MapLeaguePointRadius"` // 驻地范围半径
  117. MapOccupyWaitTime int64 `json:"MapOccupyWaitTime"` // 占领等待时间(秒)
  118. MapDiscardWaitTime int64 `json:"MapDiscardWaitTime"` // 放弃等待时间(秒)
  119. MapResSnatchRatio int64 `json:"MapResSnatchRatio"` // 资源掠夺万分比
  120. MapResDestroyNum int64 `json:"MapResDestroyNum"` // 资源掠夺销毁数量
  121. MapResProtectTime int64 `json:"MapResProtectTime"` // 资源占领保护时间
  122. MapBuildFirstTimeElapsed types.Map[int32, int64] `json:"MapBuildFirstTimeElapsed"` // 首次建造的建筑建造时间, key:configID,value:时间秒
  123. MapRelocateCooldown int64 `json:"MapRelocateCooldown"` // 玩家迁城CD(分钟)
  124. MapCityBaseCooldown int64 `json:"MapCityBaseCooldown"` // 玩家建造地基CD(分钟)
  125. MapBattleLossTroops int32 `json:"MapBattleLossTroops"` // 战斗损兵比例(单位:万分比)
  126. MapBattleReportPVPLimit int `json:"MapBattleReportPVPLimit"` // 战报PVP交战记录上限
  127. MapBattleReportPVELimit int `json:"MapBattleReportPVELimit"` // 战报PVE开拓记录上限
  128. MapBattleReportScoutLimit int `json:"MapBattleReportScoutLimit"` // 战报侦察记录上限
  129. MapBattleReportLikeLimit int `json:"MapBattleReportLikeLimit"` // 战报个人收藏上限
  130. MapBattleReportPage int `json:"MapBattleReportPage"` // 战报每页拉取10条
  131. MapSiegeWaitTime int64 `json:"MapSiegeWaitTime"` // 攻城等待时间(秒)
  132. MapSiegeGarrisonBattleQueue int `json:"MapSiegeGarrisonBattleQueue"` // 城池驻城部队战斗队列大小
  133. MapSiegeDurabilityBattleQueue int `json:"MapSiegeDurabilityBattleQueue"` // 城池拆耐久战斗队列大小
  134. MapMeetBattleQueue int `json:"MapMeetBattleQueue"` // 地图遭遇战战斗队列大小
  135. MapDefendRecoverTime int64 `json:"MapDefendRecoverTime"` // 地图资源田守军恢复时间(秒)
  136. MapDrawBattleCount int32 `json:"MapDrawBattleCount"` // 地图平局战斗次数上限(连续平判输)
  137. MapAutoDefendTroopsRatio int32 `json:"MapAutoDefendTroopsRatio"` // 地图自动防守兵力比例(万分比)
  138. MapMonsterFlushHour int `json:"MapMonsterFlushHour"` // 地图怪物刷新时间(整点)
  139. MapSnatchWaitTime int64 `json:"MapSnatchWaitTime"` // 掠夺等待时间(秒)
  140. MapAssembleMemberNum int `json:"MapAssembleMemberNum"` // 集结成员数量
  141. MapMarkTitleLimit int32 `json:"MapMarkTitleLimit"` // 个人标记标题最大字符数
  142. LeagueMapMarkTitleLimit int32 `json:"LeagueMapMarkTitleLimit"` // 盟标标题最大字符数
  143. LeagueMapMarkDescLimit int32 `json:"LeagueMapMarkDescLimit"` // 盟标内容最大字符数
  144. MapMarkNumLimit int `json:"MapMarkNumLimit"` // 标记数量上限
  145. LeagueMapMarkNumLimit int `json:"LeagueMapMarkNumLimit"` // 盟标数量上限
  146. MapMarchEnergyCostCeo float32 `json:"MapMarchEnergyCostCeo"` // 行军体力消耗系数
  147. ReinforcePrepareTime int64 `json:"ReinforcePrepareTime"` // 主城加固准备时间(秒)
  148. ReinforceTime int64 `json:"ReinforceTime"` // 主城加固持续时间(秒)
  149. ReinforceCoolDown int64 `json:"ReinforceCoolDown"` // 主城加固冷却时间(秒)
  150. ReinforceAttrs types.Attrs `json:"ReinforceAttrs"` // 主城加固属性
  151. RectifyTime int64 `json:"RectifyTime"` // 主城整顿持续时间(秒)
  152. SelfStateComebackCoolDown int64 `json:"SelfStateComebackCoolDown"` // 主城本州再起冷却时间(秒)
  153. ChooseStateComebackCoolDown int64 `json:"ChooseStateComebackCoolDown"` // 主城选州再起冷却时间(秒)
  154. MapResOccupyLimit int `json:"MapResOccupyLimit"` // 地图资源占领上限
  155. BeginerInvincibleTime int64 `json:"BeginerInvincibleTime"` // 新手期免战分钟
  156. ComebackInvincibleTime int64 `json:"ComebackInvincibleTime"` // 再起免战分钟
  157. ChapterStaminaAddInterval int64 `json:"ChapterStaminaAddInterval"` // 探险精力恢复时间 单位秒
  158. ChapterStaminaAddValue types.Asset `json:"ChapterStaminaAddValue"` // 探险精力恢复值
  159. ChapterStaminaLimit int64 `json:"ChapterStaminaLimit"` // 探险精力上限
  160. ChapterTimesBuyCost types.Asset `json:"ChapterTimesBuyCost"` // 探险关卡次数购买消耗
  161. ChapterScouringStarLimit int32 `json:"ChapterScouringStarLimit"` // 探险解锁扫荡所需星级
  162. ChapterItemId int64 `json:"ChapterItemId"` // 探险界面显示道具id
  163. ChapterStaminaMin int64 `json:"ChapterStaminaMin"` // 探险精力最小消耗值
  164. LineupMemberLimit int32 `json:"LineupMemberLimit"` // 阵容上阵人数上限
  165. ResetTime int32 `json:"ResetTime"` // 系统功能刷新倒计时(整点时间)
  166. FeatRatio int32 `json:"FeatRatio"` // 功勋万分比(功勋=战斗内死兵*功勋万分比)
  167. PlayerInitLevel int32 `json:"PlayerInitLevel"` // 玩家初始等级
  168. LeagueInitItems types.Assets `json:"LeagueInitItems"` // 创建联盟后给的初始资源
  169. LeagueUnionMemberLimit int `json:"LeagueUnionMemberLimit"` // 联邦成员数量上限
  170. LeagueUmengCountLimit int `json:"LeagueUmengCountLimit"` // 联盟友盟数量上限
  171. LeagueUnionLeaveTime int64 `json:"LeagueUnionLeaveTime"` // 退出联邦冷却时间 单位秒
  172. ExchangeUnLockLv int32 `json:"ExchangeUnLockLv"` // 解锁交易行的领主等级
  173. ExchangeCatLimit int32 `json:"ExchangeCatLimit"` // 每个分类商品上限
  174. ExchangePageSize int32 `json:"ExchangePageSize"` // 每页商品数量(分页)
  175. ExchangeSellTimeLimit int64 `json:"ExchangeSellTimeLimit"` // 商品出售上架最大时间 单位:小时
  176. ExchangeWishTimeLimit int64 `json:"ExchangeWishTimeLimit"` // 商品求购上架最大时间 单位:小时
  177. ExchangeDailyWishLimit int32 `json:"ExchangeDailyWishLimit"` // 每日求购次数
  178. ExchangeDailyBuyLimit int32 `json:"ExchangeDailyBuyLimit"` // 每日购买次数
  179. ExchangeBuyLogSaveLimit int32 `json:"ExchangeBuyLogSaveLimit"` // 交易购买日志保存最大上限
  180. ExchangeSellLogSaveLimit int32 `json:"ExchangeSellLogSaveLimit"` // 交易出售日志保存最大上限
  181. ExchangeWishTimeReset int64 `json:"ExchangeWishTimeReset"` // 求购价格变化重置时间 单位:小时
  182. MapTroopsAddRatio int `json:"MapTroopsAddRatio"` // 城外征兵额外增加比例
  183. MapTroopsCheckInterval int64 `json:"MapTroopsCheckInterval"` // 城外自动征兵检测间隔
  184. MailDays types.List[int32] `json:"MailDays"` // 每日邮件 下标0是第1天 如此类推
  185. MailDaysOpenTime string `json:"MailDaysOpenTime"` // 每日邮件发放开始日期
  186. MapSeasonOpenTime string `json:"mapSeasonOpenTime"` // 赛季开启时间
  187. MapScoutMarchTime int64 `json:"MapScoutMarchTime"` // 地图侦察行军时间 单位秒
  188. MapScoutTime int64 `json:"MapScoutTime"` // 地图侦察时间 单位秒
  189. MapScoutCosts types.Assets `json:"MapScoutCosts"` // 地图侦察消耗
  190. EquipSingleGetLimit int64 `json:"EquipSingleGetLimit"` // 单次获得装备数量上限
  191. CrystalMineToConRatio int64 `json:"CrystalMineToConRatio"` // 沙盘经验转联盟贡献比例 万分比
  192. TileSiegeToConRatio int64 `json:"TileSiegeToConRatio"` // 攻城值转联盟贡献比例 万分比
  193. FacilityPrestigeToConRatio int64 `json:"FacilityPrestigeToConRatio"` // 城建繁荣度转联盟贡献比例 万分比
  194. ConToLeagueExpRatio int64 `json:"ConToLeagueExpRatio"` // 联盟贡献转联盟经验比例 万分比
  195. FeatToLeagueExpRatio int64 `json:"FeatToLeagueExpRatio"` // 功勋转联盟经验比例 万分比
  196. FeatToSeasonScoreRatio int64 `json:"FeatToSeasonScoreRatio"` // 功勋转赛季积分比例 万分比
  197. FeatToSeasonScoreLimit int32 `json:"FeatToSeasonScoreLimit"` // 功勋转赛季积分上限 赛季
  198. ConToSeasonScoreRatio int64 `json:"ConToSeasonScoreRatio"` // 联盟贡献转赛季积分比例 万分比
  199. ConToSeasonScoreLimit int32 `json:"ConToSeasonScoreLimit"` // 联盟贡献转赛季积分上限 赛季
  200. }
  201. constConfig struct {
  202. baseConfig
  203. ConstRow
  204. }
  205. )
  206. func (p *constConfig) Name() string {
  207. return "const"
  208. }
  209. func (p *constConfig) Init() {
  210. }
  211. func (p *constConfig) OnLoad(maps interface{}, reload bool) (int, error) {
  212. if reload && p.denyLoad {
  213. return 0, nil
  214. }
  215. err := DecodeData(maps, &p.ConstRow)
  216. return 1, err
  217. }
  218. // func (p *constConfig) OnAfterLoad(_ bool) {
  219. // }