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

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



一一一.矿工灯无限使用

	用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/hats.lua文件,将下列内容:

			inst.components.fueled:StartConsuming()
			inst.SoundEmitter:PlaySound("dontstarve/common/minerhatAddFuel")

	替换为:

			inst.components.fueled:StopConsuming()
			inst.SoundEmitter:PlaySound("dontstarve/common/minerhatAddFuel")

	即可让矿工灯无限使用