thirsty.default.conf 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. --[[
  2. Thirsty configuration
  3. -----------------------------
  4. To modify the configuration without fear of it being overwritten
  5. by an update of this mod, copy this file to
  6. thirsty.conf
  7. in the mod directory or the directory of a specific world, and
  8. modify away. The mod will read configuration first from the
  9. default file, then from the mod directory copy, and finally from
  10. the world directory copy.
  11. The settings from these locations will be merged together in an
  12. intelligent fashion. Normal entries in the config table will get
  13. overwritten. Table entries (those with {} at the left of the =)
  14. will get merged together, unless the special table entry 'CLEAR'
  15. is given, with a true value. This merging does not go deeper than
  16. one level, but this should be sufficient.
  17. ]]
  18. thirsty.config = {
  19. --[[ The period, in seconds, in which this mod updates values.
  20. Changing this will not directly affect other values, but
  21. may change computation load or accuracy.
  22. ]]
  23. tick_time = 0.5,
  24. -------------------------------------------
  25. -- Tier 0: basics, and standing in water --
  26. -------------------------------------------
  27. -- Thirst per second (full hydration is 20 hydro points)
  28. thirst_per_second = 1.0 / 20.0,
  29. -- Damage per second if completely thirsty / out of hydration
  30. damage_per_second = 1.0 / 10.0,
  31. --[[ How long in seconds you have to remain still to drink
  32. from standing in water
  33. ]]
  34. stand_still_for_drink = 1.0,
  35. --[[ How long in seconds of not moving before a player is deemed
  36. AFK (away from keyboard), such players no longer get thirsty
  37. or damaged
  38. ]]
  39. stand_still_for_afk = 120.0, -- 2 Minutes
  40. --[[ regen_from_node is a table defining, for each node type, the
  41. amount of hydro per second a player drinks by standing in it.
  42. Assign 0 to stop a player from drinking from this node type.
  43. ]]
  44. regen_from_node = {
  45. ['default:water_source'] = 0.5,
  46. ['default:water_flowing'] = 0.5,
  47. ['default:river_water_source'] = 0.5,
  48. ['default:river_water_flowing'] = 0.5,
  49. },
  50. ---------------------------------
  51. -- Tier 1: drinking with bowls --
  52. ---------------------------------
  53. --[[ node_drinkable: which nodes can we drink from, given a
  54. container (a cup, a bowl etc.)
  55. ]]
  56. node_drinkable = {
  57. ['default:water_source'] = true,
  58. ['default:water_flowing'] = true,
  59. ['default:river_water_source'] = true,
  60. ['default:river_water_flowing'] = true,
  61. ['thirsty:drinking_fountain'] = true,
  62. },
  63. --[[ drink_from_container: the hydration you drink to when
  64. using each container. Remember that "full hydration" is
  65. 20 points; these should be more to reward using them.
  66. ]]
  67. drink_from_container = {
  68. ['thirsty:wooden_bowl'] = 25,
  69. ['thirsty:steel_canteen'] = 25,
  70. ['thirsty:bronze_canteen'] = 25,
  71. },
  72. ----------------------
  73. -- Tier 2: canteens --
  74. ----------------------
  75. --[[ container_capacity: how much hydration each container
  76. (canteens) can hold. Remember that "full hydration" is
  77. 20 points
  78. ]]
  79. container_capacity = {
  80. ['thirsty:steel_canteen'] = 40,
  81. ['thirsty:bronze_canteen'] = 60,
  82. },
  83. --------------------------------
  84. -- Tier 3: drinking fountains --
  85. --------------------------------
  86. --[[ drink_from_node: if you use one of these node
  87. (i.e. fountains), even without cups or bowls, how full
  88. will you get?
  89. ]]
  90. drink_from_node = {
  91. ['thirsty:drinking_fountain'] = 30,
  92. },
  93. -------------------------------------
  94. -- Tier 4: free-standing fountains --
  95. -------------------------------------
  96. --[[ fountain_type: when scanning the surroundings of fountains,
  97. which nodes are "fountains" and which are "water"? You need
  98. at least one "fountain" and one "water" per fountain level.
  99. ]]
  100. fountain_type = {
  101. ['thirsty:water_fountain'] = 'f',
  102. ['thirsty:water_extender'] = 'f',
  103. ['default:water_source'] = 'w',
  104. ['default:water_flowing'] = 'w',
  105. ['default:river_water_source'] = 'w',
  106. ['default:river_water_flowing'] = 'w',
  107. },
  108. --[[ Regeneration from being within a fountain's radius; see also
  109. regen_from_node (it's as if you're standing in water)
  110. ]]
  111. regen_from_fountain = 0.5,
  112. -- How far should the fountain scanning pyramid go?
  113. fountain_height = 4,
  114. -- The max level of a fountain
  115. fountain_max_level = 20,
  116. --[[ How many nodes away can you still benefit from a fountain,
  117. per fountain level
  118. ]]
  119. fountain_distance_per_level = 5,
  120. ---------------------
  121. -- Tier 5: amulets --
  122. ---------------------
  123. --[[ How much hydration does a given item *extract*
  124. (pull out of the air)
  125. ]]
  126. extraction_for_item = {
  127. ['thirsty:extractor']= 0.6,
  128. },
  129. --[[ How much hydration does a given item *inject*
  130. (fill you up with)
  131. ]]
  132. injection_for_item = {
  133. ['thirsty:injector'] = 0.5,
  134. },
  135. ---------------------------------------
  136. -- Toggle node and craft definitions --
  137. ---------------------------------------
  138. --[[ These flags enable or disable the predefined components
  139. included in this mod. They do *not* enable or disable
  140. the functionality.
  141. ]]
  142. -- Should we augment the vessels from the "vessels" mod?
  143. register_vessels = true,
  144. -- Add the wooden bowl and crafting recipe?
  145. register_bowl = true,
  146. -- Add the canteens and crafting recipes?
  147. register_canteens = true,
  148. -- Add the drinking fountain and crafting recipes?
  149. register_drinking_fountain = true,
  150. -- Add the fountain and extenders and crafting recipes?
  151. register_fountains = true,
  152. -- Add the amulets (extractor / injector) and crafting recipes?
  153. register_amulets = true,
  154. }