代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。

原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html



四十三.一斧砍倒一棵树、一镐开掉一块石

	1.用MT管理器打开游戏目录/assets/scripts/prefabs/axe.lua文件,将inst.components.tool:SetAction(ACTIONS.CHOP)替换为inst.components.tool:SetAction(ACTIONS.CHOP, 15)

	2.用MT管理器打开游戏目录/assets/scripts/prefabs/pickaxe.lua文件,将inst.components.tool:SetAction(ACTIONS.MINE)替换为inst.components.tool:SetAction(ACTIONS.MINE, 15)

	即可一斧砍倒一棵树、一镐开掉一块石