Don't Starve Revision History Viewer

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

prefabs/hound.lua

17181920212223
"redgem", "bluegem", } local WAKE_TO_FOLLOW_DISTANCE = 8 local SLEEP_NEAR_HOME_DISTANCE = 10 local SHARE_TARGET_DIST = 30
17181920212223242526272829303132333435363738394041424344454647
"redgem", "bluegem", } SetSharedLootTable( 'hound', { {'monstermeat', 1.000}, {'houndstoot', 0.125}, }) SetSharedLootTable( 'hound_fire', { {'monstermeat', 1.0}, {'houndstooth', 1.0}, {'houndfire', 1.0}, {'houndfire', 1.0}, {'houndfire', 1.0}, {'redgem', 0.2}, }) SetSharedLootTable( 'hound_cold', { {'monstermeat', 1.0}, {'houndstooth', 1.0}, {'houndstooth', 1.0}, {'bluegem', 0.2}, }) local WAKE_TO_FOLLOW_DISTANCE = 8 local SLEEP_NEAR_HOME_DISTANCE = 10 local SHARE_TARGET_DIST = 30
169170171172173174175176
inst.components.combat:SetKeepTargetFunction(KeepTarget) inst:AddComponent("lootdropper") inst.components.lootdropper:SetLoot({"monstermeat"}) inst.components.lootdropper:AddChanceLoot("houndstooth", 0.125) inst:AddComponent("inspectable")
193194195196197198199
inst.components.combat:SetKeepTargetFunction(KeepTarget) inst:AddComponent("lootdropper") inst.components.lootdropper:SetChanceLootTable('hound') inst:AddComponent("inspectable")
213214215216217218219220
inst.components.combat:SetAttackPeriod(TUNING.FIREHOUND_ATTACK_PERIOD) inst.components.locomotor.runspeed = TUNING.FIREHOUND_SPEED inst.components.health:SetMaxHealth(TUNING.FIREHOUND_HEALTH) inst.components.lootdropper:SetLoot({"monstermeat","houndstooth","houndfire","houndfire","houndfire"}) inst.components.lootdropper:AddChanceLoot("redgem", 0.2) inst:ListenForEvent("death", function(inst) inst.SoundEmitter:PlaySound("dontstarve/creatures/hound/firehound_explo", "explosion")
236237238239240241242
inst.components.combat:SetAttackPeriod(TUNING.FIREHOUND_ATTACK_PERIOD) inst.components.locomotor.runspeed = TUNING.FIREHOUND_SPEED inst.components.health:SetMaxHealth(TUNING.FIREHOUND_HEALTH) inst.components.lootdropper:SetChanceLootTable('hound_fire') inst:ListenForEvent("death", function(inst) inst.SoundEmitter:PlaySound("dontstarve/creatures/hound/firehound_explo", "explosion")
233234235236237238239240
inst.components.combat:SetAttackPeriod(TUNING.ICEHOUND_ATTACK_PERIOD) inst.components.locomotor.runspeed = TUNING.ICEHOUND_SPEED inst.components.health:SetMaxHealth(TUNING.ICEHOUND_HEALTH) inst.components.lootdropper:SetLoot({"monstermeat","houndstooth","houndstooth"}) inst.components.lootdropper:AddChanceLoot("bluegem", 0.2) inst:ListenForEvent("death", function(inst) inst.SoundEmitter:PlaySound("dontstarve/creatures/hound/icehound_explo", "explosion")
255256257258259260261
inst.components.combat:SetAttackPeriod(TUNING.ICEHOUND_ATTACK_PERIOD) inst.components.locomotor.runspeed = TUNING.ICEHOUND_SPEED inst.components.health:SetMaxHealth(TUNING.ICEHOUND_HEALTH) inst.components.lootdropper:SetChanceLootTable('hound_cold') inst:ListenForEvent("death", function(inst) inst.SoundEmitter:PlaySound("dontstarve/creatures/hound/icehound_explo", "explosion")