1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2025-07-20 09:20:29 +02:00

Fix MTG warning, add configurability for lightning chances, nerf movement penalties

This commit is contained in:
Till Affeldt
2020-05-16 16:20:47 +02:00
parent e6f0067f3b
commit ffdbdf792e
4 changed files with 17 additions and 7 deletions

View File

@ -58,7 +58,7 @@ local function generate_effects(params)
movement_direction = vector.normalize(movement)
end
local vector_product = vector.dot(movement_direction, wind)
local movement_penalty = climate_api.utility.sigmoid(vector_product, 1.6, 0.2, 0.8) + 0.2
local movement_penalty = climate_api.utility.sigmoid(vector_product, 1.5, 0.15, 0.9) + 0.2
override["regional_weather:speed_buff"] = movement_penalty
return override
end