Commit Graph

41 Commits (master)

Author SHA1 Message Date
Ben Deutsch 72014ec938 Configuration now with overriding mechanism 2015-11-01 22:40:05 +01:00
Ben Deutsch 49cea792bc Replace stash with persistent player attributes mixin.
Warning: will reset your thirst.
2015-08-15 21:20:47 +02:00
Ben Deutsch 45b2894ea5 Added "thirst_factor" per player, with setter and getter
Determines how fast (relative) each player gets thirsty.
2015-07-14 07:08:26 +02:00
Ben Deutsch 835824576e Moved functions and components to their own files 2015-05-28 07:02:21 +02:00
Ben Deutsch e066519c6d Move configuration and hud to their own files. 2015-05-27 06:49:22 +02:00
Ben Deutsch 425c87f1d4 Detected fountains expire and need to be redetected
Generally, the ABM will reset them before this time.
2015-05-18 06:59:22 +02:00
Ben Deutsch b792e1aedd Moved configuration parameters to 'thirsty.config' 2015-05-13 07:06:50 +02:00
Ben Deutsch dc19ed4f31 Bugfix: normal drinking had become dependent on amulets! 2015-05-12 07:07:52 +02:00
Ben Deutsch 372d6fa2e3 Only call amulet code if inventory contains an amulet 2015-05-11 06:54:32 +02:00
Ben Deutsch 9deaf1585f Textures for injectors and extractors 2015-05-07 07:02:14 +02:00
Ben Deutsch 62ef28ae87 WIP: extractors and injectors (wrong textures) 2015-05-06 07:14:59 +02:00
Ben Deutsch 7da2f6e0b4 Water fountains now update themselves "staggered"
(ABM has a chance of 1 in 5 to run)
2015-04-29 07:06:21 +02:00
Ben Deutsch e3538c3aff Crafting recipes for water fountains. 2015-04-29 07:06:06 +02:00
Ben Deutsch 4ef51d6857 Water fountains (without crafting recipes) 2015-04-28 23:28:51 +02:00
Ben Deutsch bfdc9139af Refactored to new drink_handler and setting tables
No more closures over capacity or max hydro level; it's all in
(globally accessible) item-name-to-value tables now.
2015-04-26 22:53:09 +02:00
Ben Deutsch 9a823a861a Simple crafting recipe for drinking fountain 2015-04-25 22:21:30 +02:00
Ben Deutsch 89922dc87c Right-clicking a drinking fountain drinks. 2015-04-25 22:12:47 +02:00
Ben Deutsch 3a820a3b26 First (non-functional) version of the drinking fountain 2015-04-25 22:02:26 +02:00
Ben Deutsch 4a0dc28dd9 Fixed recipe for bronze canteen. 2015-04-24 21:54:38 +02:00
Ben Deutsch c343d027a4 Configuration from/for Better HUD mod 2015-04-24 21:41:19 +02:00
Ben Deutsch f37648ea65 Rearranges code and adds more comments 2015-04-23 07:08:51 +02:00
Ben Deutsch 1157a4d683 Added canteens (steel canteen and bronze canteen) 2015-04-22 23:06:53 +02:00
Ben Deutsch 7f6b67be3d "bowl" is now "wooden_bowl", uses 16x16 texture by default 2015-04-22 23:06:08 +02:00
Ben Deutsch 0d3b103f07 On-Use handler: update HUD, always call original, test for node 2015-04-22 22:42:17 +02:00
Ben Deutsch dfd2a8fad8 "Standard" recipe for wooden bowl 2015-04-21 22:30:17 +02:00
Ben Deutsch 32c777488d Added wooden bowl; vessels dependency now optional 2015-04-20 22:40:11 +02:00
Ben Deutsch 2de733e3a5 augment_node_for_drinking uses minetest.override_item 2015-04-20 22:32:06 +02:00
Ben Deutsch 97cf57b632 Stop getting thirsty when dead, respawn full 2015-04-20 22:23:30 +02:00
Ben Deutsch c1ef32af73 Drinking with a cup gets you 125% full 2015-04-20 07:01:11 +02:00
Ben Deutsch 1b7d8d1c8a Added handling of "Better HUD" mod, "Hudbars" now optional 2015-04-18 21:42:36 +02:00
Ben Deutsch e91ec3fe72 Standard HUD statbar added, with 24px icons 2015-04-17 06:56:19 +02:00
Ben Deutsch f792b31ae8 Mod 'hudbars' is now an optional dependency 2015-04-16 21:39:43 +02:00
Ben Deutsch d887d15082 Drinking containers (Tier 1) from "vessels" mod 2015-04-15 23:41:39 +02:00
Ben Deutsch d1c1698ebd Change "thirst" to "hydration", and new stash format
The new stash format (and file name) avoids conflicts with the
new term "hydration" / "hydro", which replaces "thirst" as
"what you gain when you drink".
2015-04-13 23:11:50 +02:00
Ben Deutsch e00d2d9aac Bugfix: AFK should disable damage, too 2015-04-13 21:55:49 +02:00
Ben Deutsch c1891563e6 Damage players who get completely thirsty 2015-04-12 22:12:48 +02:00
Ben Deutsch cc3a6da550 Unpack stash key by key
Safeguard against new stash keys in future.
2015-04-12 22:11:55 +02:00
Ben Deutsch d46fffdc84 Persistance: file read on startup, written on shutdown 2015-04-12 21:37:29 +02:00
Ben Deutsch ac7ac2b7f9 Code refactoring: module table instead of local vars 2015-04-11 23:06:31 +02:00
Ben Deutsch be83903813 Movement detection: stand still to drink, AFK detection
Two minutes of standing still will cause the mod to assume
you're Away From Keyboard, and will no longer make you
thirsty.
2015-04-11 22:21:09 +02:00
Ben Deutsch 08b9c3c079 First version of code: actually thirst 2015-04-07 22:01:43 +02:00