diff options
| author | Giuseppe Gadola <giusgadola@gmail.com> | 2023-03-14 08:52:18 +0100 |
|---|---|---|
| committer | Giuseppe Gadola <giusgadola@gmail.com> | 2023-03-14 08:52:18 +0100 |
| commit | 207bfb97158b578a6d10bff13e4feeb0882485e2 (patch) | |
| tree | c5c84ee4ae298b75acd4d707d65b15181dbbf6e9 /lua/pets/pet.lua | |
| parent | feat(pets): add split_die animation for slime (diff) | |
feat(commands): added `PetsRemove` and `PetsRemoveAll`
Diffstat (limited to 'lua/pets/pet.lua')
| -rw-r--r-- | lua/pets/pet.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/pets/pet.lua b/lua/pets/pet.lua index 2cc6cfc..6540b1d 100644 --- a/lua/pets/pet.lua +++ b/lua/pets/pet.lua @@ -55,6 +55,11 @@ function M.Pet:kill() end end +function M.Pet:remove() + self.animation:stop() + self.popup:unmount() +end + function M.Pet:set_paused(paused) self.animation:set_state({ paused = paused, |