aboutsummaryrefslogtreecommitdiff
path: root/lua/pets/pet.lua
diff options
context:
space:
mode:
authorKyle Mendes <pink@hey.com>2023-02-16 09:51:52 -0500
committerKyle Mendes <pink@hey.com>2023-02-16 09:51:52 -0500
commitf61dff6f8f008ad7928986938f2c8d9195ee684a (patch)
tree9410c14872a32fa81ee0c98624c02bcae204ebcf /lua/pets/pet.lua
parentdocs(help): auto generate docs (diff)
Adding the ability to sleep pets, stopping their movement
Diffstat (limited to 'lua/pets/pet.lua')
-rw-r--r--lua/pets/pet.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/pets/pet.lua b/lua/pets/pet.lua
index 5f5dbc4..411efa6 100644
--- a/lua/pets/pet.lua
+++ b/lua/pets/pet.lua
@@ -72,4 +72,8 @@ function M.Pet:toggle_hide()
end
end
+function M.Pet:toggle_sleep()
+ self.animation.sleeping = not self.animation.sleeping
+end
+
return M