diff options
| author | Giuseppe Gadola <giusgadola@gmail.com> | 2023-02-13 19:56:54 +0100 |
|---|---|---|
| committer | Giuseppe Gadola <giusgadola@gmail.com> | 2023-02-14 19:17:20 +0100 |
| commit | 9ce6ae9d28c0cfe200f70e26e99c4d9abf8c250a (patch) | |
| tree | 132d2452337989672b741fff6f7ba9eea0f90798 /lua/pets/pet.lua | |
| parent | refactor(popup): the popup is now passed as a whole to the animation (diff) | |
feat(pets): pets now play a death animation when killed
Diffstat (limited to 'lua/pets/pet.lua')
| -rw-r--r-- | lua/pets/pet.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/pets/pet.lua b/lua/pets/pet.lua index 175e51d..a132a1e 100644 --- a/lua/pets/pet.lua +++ b/lua/pets/pet.lua @@ -47,8 +47,7 @@ end -- delete the pet :( function M.Pet:kill() - self.popup:unmount() - self.animation:stop() + self.animation.dying = true end return M |