diff options
| author | Kyle Mendes <pink@hey.com> | 2023-02-16 09:51:52 -0500 |
|---|---|---|
| committer | Kyle Mendes <pink@hey.com> | 2023-02-16 09:51:52 -0500 |
| commit | f61dff6f8f008ad7928986938f2c8d9195ee684a (patch) | |
| tree | 9410c14872a32fa81ee0c98624c02bcae204ebcf /lua/pets.lua | |
| parent | docs(help): auto generate docs (diff) | |
Adding the ability to sleep pets, stopping their movement
Diffstat (limited to 'lua/pets.lua')
| -rw-r--r-- | lua/pets.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/pets.lua b/lua/pets.lua index 30f3ef7..ac53551 100644 --- a/lua/pets.lua +++ b/lua/pets.lua @@ -100,4 +100,10 @@ function M.toggle_hide() end end +function M.toggle_sleep() + for _, pet in pairs(M.pets) do + pet:toggle_sleep() + end +end + return M |