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

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



一四六.睡草席卷可补血

	用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/bedroll_straw.lua文件,在sleeper.sg:GoToState("wakeup")的下一行插入以下内容:

		if sleeper.components.health then
			sleeper.components.health:DoDelta(TUNING.HEALING_MED, false, "tent", true)
		end

	即可睡草席卷可补血,补血量小于毛皮铺盖和帐篷