mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-07-07 07:10:27 -04:00
Improvements to steering
This commit is contained in:
parent
d539f9bea5
commit
5b4b5e7331
3 changed files with 43 additions and 10 deletions
4
api.lua
4
api.lua
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue