minetest_physio_stress/physio_stress
A. Demant 73114e7697 works only with minetest >= 5 2019-02-18 06:17:08 +01:00
..
locale add german translation 2019-02-14 10:45:51 +01:00
sound rebuild of code: check if submodules are enabled 2019-01-14 08:08:12 +01:00
textures colorize hudbar 2019-01-04 05:46:04 +01:00
README.md works only with minetest >= 5 2019-02-18 06:17:08 +01:00
abm.lua missing local S 2019-02-14 13:58:54 +01:00
api.lua adjust hp calculation; recreates exhaustion 2019-02-06 14:53:20 +01:00
armor.lua rebuild of code: check if submodules are enabled 2019-01-14 08:08:12 +01:00
chat_commands.lua sunburn protection / correction for cracky node dig 2019-01-03 07:22:31 +01:00
config.lua during death-respawn the hunger/thirst must be disabled 2019-02-13 14:34:55 +01:00
depends.txt compat to 0.4.17 2019-01-10 05:21:28 +01:00
hunger.lua rebuild of code: check if submodules are enabled 2019-01-14 08:08:12 +01:00
init.lua add german translation 2019-02-14 10:45:51 +01:00
interop.lua add german translation 2019-02-14 10:45:51 +01:00
intllib.lua add german translation 2019-02-14 10:45:51 +01:00
license.txt add license.txt/Readme 2019-01-03 15:59:42 +01:00
mod.conf add playereffects with reduced digging/speed/building 2019-01-03 19:11:04 +01:00
overrides.lua add playereffects with reduced digging/speed/building 2019-01-03 19:11:04 +01:00
playereffects.lua during death-respawn the hunger/thirst must be disabled 2019-02-13 14:34:55 +01:00
register.lua during death-respawn the hunger/thirst must be disabled 2019-02-13 14:34:55 +01:00
settingtypes.txt during death-respawn the hunger/thirst must be disabled 2019-02-13 14:34:55 +01:00

README.md

License: MIT

Minetest Mod: Physio_Stress

See license.txt for license information.

Works only with Minetest >= 5.0

Minetest <= 0.4.17 does not support the mechanism for handling player related meta data.

Short Description

Physio-Stress is a mod providing following physiological enhancements:

  • Sunburn
  • Nyctophoby (Angst of darkness)
  • hunger
  • thirst
  • exhaustion due to fast working

A main feature compared with other mods is the storage of relevant information in the player metadata not in mod space. For this the API of the mod xpfw is used, providing functions to handle player relevant data.

Sunburn/Nyctophoby:

Each player can adjust to the actual light. Too fast changes in light leads to a kind of shock. With the actual light amount a rolling mean value is calculated. Is the actual light level too high or too low compared with the rolling mean value, a shock is produced, leading to decreasing hit points. The threshold is bigger if the player has at least one armor (from 3d_armor) as sun protection. New player joining the game has a delay time, where sunburn/nyctophoby has no harm. In this time the rolling mean value establish.

hunger/thirst:

Similar to other mods hunger (saturation) and thirst is implemented using the player metadata for storing. The item_eat routine is rewritten to give the hp to field saturation instead HP. If an item has the definition value "drink_hp" this value will be added to the thirst value. An item like an apple can increase saturation and thirst level at the same time. Saturation and thirst will decrease by time, walking, swimming, digging, crafting and building. For this the statistics from xpfw is used. Per time step the changes are used to calculate a decreasing of saturation and thirst. For digging a correction is applied: A kind of hardness of the node is estimated from the value of the groups "choppy", "crumbly", "snappy" and "cracky". Digging harder nodes (higher values) lead to higher drain of saturation and thirst. Also digging a cracky node lead to highest drain, while digging other nodes lead to less drain.

Exhaustion:

By mod xpfw several speeds are measured: Walking, Swimming, Digging, building and crafting. Out of this speed a kind of exhaustion is calculated.

Authors of source code

ademant (MIT)

Authors of media (textures)

Created by ademant (CC BY 3.0):

Authors of media (sound)

eat_generic: copied from mod hbhunger (https://github.com/creatively-survival/hbhunger)