游戏达人
![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
- 金元
- 18912
- 积分
- 2221
- 精华
- 1
- 注册时间
- 2010-11-27
|
alskyiy 发表于 2013-10-9 00:28 ![](static/image/common/back.gif)
其实。主要就是想要露西的斧头能开石头而已。其他的不需要,这样,可玩性还是很高的。不会破坏游戏的平衡 ...
露西的斧头可照明、挖石头,攻击力提高10倍
用记事本打开游戏目录\data\scripts\prefabs\lucy.lua文件,
1.在local function onequip(inst, owner) 的下一行插入下列内容:
inst.Light:Enable(true)
2.在local function onunequip(inst, owner) 的下一行插入下列内容:
inst.Light:Enable(false)
3.在MakeInventoryPhysics(inst)的下一行插入下列内容:
local light = inst.entity:AddLight()
light:SetFalloff(0.4)
light:SetIntensity(.7)
light:SetRadius(2.5)
light:SetColour(180/255, 195/255, 150/255)
light:Enable(true)
4.在inst:AddComponent("tool")的下一行插入inst.components.tool:SetAction(ACTIONS.MINE, 15)
5.将inst.components.weapon:SetDamage(TUNING.AXE_DAMAGE)替换为inst.components.weapon:SetDamage(TUNING.AXE_DAMAGE*10)
6.将下列内容:
inst:AddComponent("sentientaxe")
inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "woodie" then inst:Remove() end end)
替换为:
--inst:AddComponent("sentientaxe")
--inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "woodie" then inst:Remove() end end)
|
|