用记事本打开 scripts\prefabs\amulet.lua,找到以下代码:
local function yellow(inst)
local inst = commonfn(inst)
inst.AnimState:PlayAnimation("yellowamulet")
inst.components.equippable:SetOnEquip( onequip_yellow )
inst.components.equippable:SetOnUnequip( onunequip_yellow )
inst.components.equippable.walkspeedmult = 1.2
inst.entity:AddLight()
inst.Light:Enable(false)
inst.Light:SetRadius(2)
inst.Light:SetFalloff(0.7)
inst.Light:SetIntensity(.65)
inst.Light:SetColour(223/255, 208/255, 69/255)
inst:AddComponent("fueled")
inst.components.fueled.fueltype = "MAGIC"
inst.components.fueled:InitializeFuelLevel(TUNING.YELLOWAMULET_FUEL)
inst.components.fueled:SetDepletedFn(onfinished)
把最后④行修改成:
--inst:AddComponent("fueled")
--inst.components.fueled.fueltype = "MAGIC"
--inst.components.fueled:InitializeFuelLevel(TUNING.YELLOWAMULET_FUEL)
--inst.components.fueled:SetDepletedFn(onfinished)
这样,做出来的项链就无耐久.
照明范围修改:
inst.Light:SetRadius(2) 这一行的"(2)"就是照明范围,矿帽为(2.5).
照明范围的"值"越大范围越大,100倍可行,照明范围按自己喜好修改即可.
local function yellow(inst)
local inst = commonfn(inst)
inst.AnimState:PlayAnimation("yellowamulet")
inst.components.equippable:SetOnEquip( onequip_yellow )
inst.components.equippable:SetOnUnequip( onunequip_yellow )
inst.components.equippable.walkspeedmult = 1.2
inst.entity:AddLight()
inst.Light:Enable(false)
inst.Light:SetRadius(2)
inst.Light:SetFalloff(0.7)
inst.Light:SetIntensity(.65)
inst.Light:SetColour(223/255, 208/255, 69/255)
inst:AddComponent("fueled")
inst.components.fueled.fueltype = "MAGIC"
inst.components.fueled:InitializeFuelLevel(TUNING.YELLOWAMULET_FUEL)
inst.components.fueled:SetDepletedFn(onfinished)
把最后④行修改成:
--inst:AddComponent("fueled")
--inst.components.fueled.fueltype = "MAGIC"
--inst.components.fueled:InitializeFuelLevel(TUNING.YELLOWAMULET_FUEL)
--inst.components.fueled:SetDepletedFn(onfinished)
这样,做出来的项链就无耐久.
照明范围修改:
inst.Light:SetRadius(2) 这一行的"(2)"就是照明范围,矿帽为(2.5).
照明范围的"值"越大范围越大,100倍可行,照明范围按自己喜好修改即可.














