mirror of
https://github.com/t-affeldt/regional_weather.git
synced 2025-09-22 02:26:47 -04:00
Improve heavy snow performance, add pedology support, add documentation
This commit is contained in:
parent
acab95402a
commit
72716122d7
10 changed files with 72 additions and 25 deletions
|
@ -1,3 +1,11 @@
|
|||
--[[
|
||||
# Player Damage Effect
|
||||
Use this effect to damage a player during dangerous weather events.
|
||||
Expects a table as the parameter containing the following values:
|
||||
- ``value <number>``: The amount of damage to be applied per successful roll per cycle
|
||||
- ``chance <number>``: Defines a 1/x chance for the player to get damaged. Higher values result in less frequent damage.
|
||||
]]
|
||||
|
||||
if not minetest.is_yes(minetest.settings:get_bool("enable_damage"))
|
||||
or not regional_weather.settings.damage then return end
|
||||
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
--[[
|
||||
# Lightning Effect
|
||||
Use this effect to cause lightning strikes.
|
||||
Requires lightning mod in order to function.
|
||||
Uses default lightning configuration. Expects any non-nil parameter.
|
||||
]]
|
||||
|
||||
if not minetest.get_modpath("lightning") then return end
|
||||
|
||||
local EFFECT_NAME = "regional_weather:lightning"
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
--[[
|
||||
# Player Speed Effect
|
||||
Use this effect to modify a player's movement speed.
|
||||
Expects a numeric value that will be multiplied with the current speed physics.
|
||||
]]
|
||||
|
||||
local EFFECT_NAME = "regional_weather:speed_buff"
|
||||
|
||||
local function handle_effect(player_data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue