游戏达人
![Rank: 7](static/image/common/star_level3.gif) ![Rank: 7](static/image/common/star_level2.gif) ![Rank: 7](static/image/common/star_level1.gif)
- 贡献度
- 80
- 金元
- 18897
- 积分
- 2220
- 精华
- 1
- 注册时间
- 2010-11-27
|
渊小乖 发表于 2013-9-8 19:31 ![](static/image/common/back.gif)
如何修改掉挖坟全部宝石落几率 杀狗全部宝石掉落几率?????????想要杀狗挖矿都有几率掉落全部宝石
...
一.挖坟有机会挖到全品种宝石
用记事本打开游戏目录\data\scripts\prefabs\mound.lua文件,将bluegem = 5,替换为以下内容:
bluegem = 5,
orangegem = 5,
yellowgem = 5,
greengem = 5,
二.杀狗有机会掉落全品种宝石
用记事本打开游戏目录\data\scripts\prefabs\hound.lua文件,
1.将inst.components.lootdropper:AddChanceLoot("redgem", 0.2)替换为以下内容:
inst.components.lootdropper:AddChanceLoot("bluegem", 0.5)
inst.components.lootdropper:AddChanceLoot("redgem", 0.5)
inst.components.lootdropper:AddChanceLoot("orangegem", 0.5)
inst.components.lootdropper:AddChanceLoot("yellowgem", 0.5)
inst.components.lootdropper:AddChanceLoot("greengem", 0.5)
2.将inst.components.lootdropper:AddChanceLoot("bluegem", 0.2)替换为以下内容:
inst.components.lootdropper:AddChanceLoot("bluegem", 0.5)
inst.components.lootdropper:AddChanceLoot("redgem", 0.5)
inst.components.lootdropper:AddChanceLoot("orangegem", 0.5)
inst.components.lootdropper:AddChanceLoot("yellowgem", 0.5)
inst.components.lootdropper:AddChanceLoot("greengem", 0.5)
|
|