代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。
原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html
1
2八十七.蜂箱容量增加10倍(最多可采60个蜂蜜)
3
4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/beebox.lua文件,
5
6 1.将下列内容:
7
8 { amount=6, idle="honey3", hit="hit_honey3" },
9 { amount=3, idle="honey2", hit="hit_honey2" },
10 { amount=1, idle="honey1", hit="hit_honey1" },
11
12 替换为:
13
14 { amount=60, idle="honey3", hit="hit_honey3" },
15 { amount=30, idle="honey2", hit="hit_honey2" },
16 { amount=10, idle="honey1", hit="hit_honey1" },
17
18
19 2.将inst.components.harvestable:SetUp("honey", 6, nil, onharvest, updatelevel)替换为inst.components.harvestable:SetUp("honey", 60, nil, onharvest, updatelevel)
20
21 即可让蜂箱容量增加10倍,可减少照管的时间