mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-07-17 19:56:48 -04:00
cat: Fix trust increase after playing
`add_trust` was hard capped at 5. As both feeding and playing with the cat used `add_trust` it was not possible to reach trust > 5. But for following orders, trust > 5 is required. We allow to pass the max achievable trust as parameter to `add_trust`, and tune playing with the cat to allow reaching trust 10. This allows (by feeding and afterwards playing with it) to reach a trust > 5 for a cat. Then, the cat will follow orders.
This commit is contained in:
parent
259e741282
commit
d099d55d98
2 changed files with 3 additions and 3 deletions
|
@ -636,7 +636,7 @@ function animalia.action_play(self, target)
|
|||
|
||||
if stage == 2
|
||||
and dist < mob.width + 1 then
|
||||
animalia.add_trust(mob, target, 1)
|
||||
animalia.add_trust(mob, target, 1, 10)
|
||||
|
||||
stage = 3
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue