Don't Starve Revision History Viewer

Comparing Six Feet Under (Rev 86935) to All's Well That Maxwell (Rev 88237)

prefabs/tentacle.lua

111213141516
"tentaclespots", } local function retargetfn(inst) return FindEntity(inst, TUNING.TENTACLE_ATTACK_DIST, function(guy) if guy.components.combat and guy.components.health and not guy.components.health:IsDead() then
1112131415161718192021222324
"tentaclespots", } SetSharedLootTable( 'tentacle', { {'monstermeat', 1.0}, {'monstermeat', 1.0}, {'tentaclespike', 0.5}, {'tentaclespots', 0.2}, }) local function retargetfn(inst) return FindEntity(inst, TUNING.TENTACLE_ATTACK_DIST, function(guy) if guy.components.combat and guy.components.health and not guy.components.health:IsDead() then
656667686970717273
inst:AddComponent("inspectable") inst:AddComponent("lootdropper") inst.components.lootdropper:SetLoot({"monstermeat", "monstermeat"}) inst.components.lootdropper:AddChanceLoot("tentaclespike", 0.5) inst.components.lootdropper:AddChanceLoot("tentaclespots", 0.2) inst:SetStateGraph("SGtentacle")
73747576777879
inst:AddComponent("inspectable") inst:AddComponent("lootdropper") inst.components.lootdropper:SetChanceLootTable('tentacle') inst:SetStateGraph("SGtentacle")