Improvements to steering

This commit is contained in:
ElCeejo 2022-09-08 01:51:12 -07:00
parent d539f9bea5
commit 5b4b5e7331
3 changed files with 43 additions and 10 deletions

View file

@ -481,10 +481,10 @@ function creatura.basic_punch_func(self, puncher, tflp, tool_caps, dir)
tool:add_wear(wear)
puncher:set_wielded_item(tool)
end
if random(4) < 2 then
if random(2) < 2 then
self:play_sound("hurt")
end
if tflp > 0.5 then
if (tflp or 0) > 0.5 then
self:play_sound("hit")
end
self:indicate_damage()