找回密码
 注册/Sign up
搜索
查看: 3041|回复: 2

[LUA] 15级技能扩展

[复制链接]
发表于 2021-12-23 20:56:12 | 显示全部楼层 |阅读模式
  1. ---模块类, 15级技能设定
  2. local Tech15 = ModuleBase:createModule('tech15')
  3. --- 加载模块钩子
  4. function Tech15:onLoad()
  5.   self:logInfo('load')
  6.   Skill.SetMaxLevel(15)
  7.   local skillExpTable = {
  8.     { 0, 1100000, 1200000, 1300000, 1400000, 1500000 },
  9.     { 1, 1100000, 1200000, 1300000, 1400000, 1500000 },
  10.     { 2, 1100000, 1200000, 1300000, 1400000, 1500000 },
  11.     { 3, 1100000, 1200000, 1300000, 1400000, 1500000 },
  12.     { 4, 1100000, 1200000, 1300000, 1400000, 1500000 },
  13.     { 5, 1100000, 1200000, 1300000, 1400000, 1500000 },
  14.     { 6, 1100000, 1200000, 1300000, 1400000, 1500000 },
  15.   }
  16.   for i, v in pairs(skillExpTable) do
  17.     for i = 1, 5 do
  18.       Skill.SetExpForLv(v[1], 10 + i, v[i + 1])
  19.     end
  20.   end
  21. end
  22. --- 卸载模块钩子
  23. function Tech15:onUnload()
  24.   self:logInfo('unload')
  25. end
  26. return Tech15;
复制代码
15级技能扩展Module,需要更多等级自行扩展,TechId限制在cg要自己解决
基于自用lua框架v0.1.22 https://github.com/Muscipular/cgmsv-lua/releases/tag/v0.1.22

大概测试了一下可用,有bug 私信或者github 提issue


发表于 2021-12-24 22:29:48 | 显示全部楼层
神一般的存在

发表于 2021-12-25 13:34:40 | 显示全部楼层
这个厉害了,试试看
您需要登录后才可以回帖 登录 | 注册/Sign up

本版积分规则

手机版|cgmsv引擎论坛

GMT+8, 2026-6-5 09:12 , Processed in 0.027974 second(s), 2 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表