代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。
原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html
1
2三六四.无限挖坟刷宝物
3
4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/mound.lua文件,将下列内容:
5
6 inst.AnimState:PlayAnimation("dug")
7 inst:RemoveComponent("workable")
8
9 替换为:
10
11 --inst.AnimState:PlayAnimation("dug")
12 inst.components.workable:SetWorkLeft(1)
13
14 即可无限挖坟刷宝物