第130页:眼睛炮塔建在地上后可搬运
展开一三零.眼睛炮塔建在地上后可搬运
用记事本打开游戏目录\data\scripts\prefabs\eyeturret.lua文件,
1.在inst:AddComponent("inventoryitem")的下一行插入以下内容:
inst:AddComponent("stackable")
inst.components.stackable.maxsize = TUNING.STACK_SIZE_SMALLITEM
2.将下列内容:
inst.components.health:SetMaxHealth(TUNING.EYETURRET_HEALTH)
inst.components.health:StartRegen(TUNING.EYETURRET_REGEN, 1)
inst:AddComponent("combat")
inst.components.combat:SetRange(TUNING.EYETURRET_RANGE)
inst.components.combat:SetDefaultDamage(TUNING.EYETURRET_DAMAGE)
替换为:
inst.components.health:SetMaxHealth(TUNING.EYETURRET_HEALTH*10)
inst.components.health:StartRegen(TUNING.EYETURRET_REGEN*10, 1)
inst:AddComponent("combat")
inst.components.combat:SetRange(TUNING.EYETURRET_RANGE)
inst.components.combat:SetDefaultDamage(TUNING.EYETURRET_DAMAGE*10)
local function turnon(inst)
inst.components.machine.ison = true
inst:Remove()
SpawnPrefab("eyeturret_item").Transform:SetPosition(inst.Transform:GetWorldPosition())
end
inst:AddComponent("machine")
inst.components.machine.turnonfn = turnon
即可在眼睛炮塔建在地上后仍能搬运,对其按鼠标右键即可解除部署,再按鼠标左键即可带走,到别处重新部署吧。另外将眼睛炮塔的生命值、回血效率、攻击力均提高了10倍,并且可堆叠
更多相关内容请关注:饥荒专区
责任编辑:Shy夏夏