prefabs/nightmarecreature.lua
10111213141516
return entity
end
local loot = {"nightmarefuel"}
local function CalcSanityAura(inst, observer)
return -TUNING.SANITYAURA_LARGE
1011121314151617181920
return entity
end
SetSharedLootTable( 'nightmare_creature',
{
{'nightmarefuel', 1.0},
{'nightmarefuel', 0.5},
})
local function CalcSanityAura(inst, observer)
return -TUNING.SANITYAURA_LARGE
8485868788899091
inst.components.combat:SetRetargetFunction(3, retargetfn)
inst:AddComponent("lootdropper")
inst.components.lootdropper:SetLoot(loot)
inst.components.lootdropper:AddChanceLoot("nightmarefuel", 0.5)
inst:ListenForEvent("attacked", OnAttacked)
-- if GetNightmareClock() then
88899091929394
inst.components.combat:SetRetargetFunction(3, retargetfn)
inst:AddComponent("lootdropper")
inst.components.lootdropper:SetChanceLootTable('nightmare_creature')
inst:ListenForEvent("attacked", OnAttacked)
-- if GetNightmareClock() then