aboutsummaryrefslogtreecommitdiff
path: root/plugins/inanimate.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/inanimate.lua')
-rw-r--r--plugins/inanimate.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/inanimate.lua b/plugins/inanimate.lua
new file mode 100644
index 0000000..90e3625
--- /dev/null
+++ b/plugins/inanimate.lua
@@ -0,0 +1,8 @@
+local View = require "core.view"
+
+function View:move_towards(t, k, dest)
+ if type(t) ~= "table" then
+ return self:move_towards(self, t, k, dest)
+ end
+ t[k] = dest
+end