diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2015-05-04 23:00:33 -0700 |
---|---|---|
committer | Auke Kok <auke-jan.h.kok@intel.com> | 2015-05-04 23:00:33 -0700 |
commit | 177244f9bb57ce07c226fa257766389ded75922c (patch) | |
tree | 0364eac4a4b4275ce77a6f980401f03c71e1fa47 /init.lua | |
parent | a25d61bc7589162fc0beaa7e54de2b08ffaf8efb (diff) |
Make the act of growing cost extra water.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -75,6 +75,8 @@ crops.can_grow = function(pos) return false end end + -- growing costs water! + meta:set_int("crops_water", math.max(0, water - 10)) -- allow the plant to grow return true |