bjorn 10 anos atrás
pai
commit
0d93a4e8e8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      person.lua

+ 1 - 1
person.lua

@@ -93,7 +93,7 @@ end
 function Person:hop(direction)
   self.body:applyLinearImpulse(30 * direction, -45)
 
-  if ctx.map.name == 'dinoland' and self.gender == 'male' then
+  if ctx.map.name == 'dinoland' and self.gender == 'male' and love.math.random() < .1 and self:distanceTo(ctx.pigeon) < 500 then
     ctx.sound:play('grunt')
   end
 end