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

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



八十七.蜂箱容量增加10倍(最多可采60个蜂蜜)

	用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/beebox.lua文件,

	1.将下列内容:

	{ amount=6, idle="honey3", hit="hit_honey3" },
	{ amount=3, idle="honey2", hit="hit_honey2" },
	{ amount=1, idle="honey1", hit="hit_honey1" },

	替换为:

	{ amount=60, idle="honey3", hit="hit_honey3" },
	{ amount=30, idle="honey2", hit="hit_honey2" },
	{ amount=10, idle="honey1", hit="hit_honey1" },


	2.将inst.components.harvestable:SetUp("honey", 6, nil, onharvest, updatelevel)替换为inst.components.harvestable:SetUp("honey", 60, nil, onharvest, updatelevel)

	即可让蜂箱容量增加10倍,可减少照管的时间