游戏达人
  
- 贡献度
- 80
- 金元
- 19062
- 积分
- 2236
- 精华
- 1
- 注册时间
- 2010-11-27
|
寂寞中搖曳 发表于 2013-12-28 21:23 
怎么让猪人掉多点肉啊,在加点曼德拉草
猪人掉3块大肉、1个曼德拉草、1个猪皮
用记事本打开游戏目录\data\scripts\prefabs\pigman.lua文件,将下列内容:
inst.components.sleeper:SetSleepTest(NormalShouldSleep)
inst.components.sleeper:SetWakeTest(DefaultWakeTest)
inst.components.lootdropper:SetLoot({})
inst.components.lootdropper:AddRandomLoot("meat",3)
inst.components.lootdropper:AddRandomLoot("pigskin",1)
inst.components.lootdropper.numrandomloot = 1
替换为:
inst.components.sleeper:SetSleepTest(NormalShouldSleep)
inst.components.sleeper:SetWakeTest(DefaultWakeTest)
inst.components.lootdropper:SetLoot({})
inst.components.lootdropper:AddRandomLoot("meat",1)
inst.components.lootdropper:AddRandomLoot("meat",1)
inst.components.lootdropper:AddRandomLoot("meat",1)
inst.components.lootdropper:AddRandomLoot("mandrake",1)
inst.components.lootdropper:AddRandomLoot("pigskin",1)
inst.components.lootdropper.numrandomloot = 5
|
|