mirror of https://gitlab.com/echoes91/spears.git
Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Echoes | 32d0ee567a | |
Echoes | 5c7ef471ca | |
Echoes | dd5c92c0bc |
|
@ -1,3 +1,6 @@
|
|||
Update 3.1.1
|
||||
- Fix all initial settings values and completely deprecate defaults.lua
|
||||
|
||||
Version 3.1:
|
||||
- Initial l18n translations support
|
||||
- Replace stereo sounds with mono
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
-- minetest.settings:set("spears_throw_speed", 13)
|
||||
--end
|
||||
|
||||
if minetest.settings:get("spears_drag_coeff") == nil then
|
||||
--[[ if minetest.settings:get("spears_drag_coeff") == nil then
|
||||
minetest.settings:set("spears_drag_coeff", 0.1)
|
||||
end
|
||||
end ]]
|
||||
|
||||
-- if minetest.settings:get("spears_node_cracky_limit") == nil then
|
||||
-- minetest.settings:set("spears_node_cracky_limit", 3)
|
||||
|
|
|
@ -131,7 +131,7 @@ function spears_set_entity(spear_type, base_damage, toughness)
|
|||
end
|
||||
else -- Get drag
|
||||
local viscosity = minetest.registered_nodes[node.name].liquid_viscosity
|
||||
local drag_coeff = tonumber(minetest.settings:get("spears_drag_coeff"))
|
||||
local drag_coeff = tonumber(minetest.settings:get("spears_drag_coeff") or 0.1)
|
||||
local drag = math.max(viscosity, drag_coeff)
|
||||
local acceleration = vector.multiply(velocity, -drag)
|
||||
acceleration.y = acceleration.y - 10 * ((7 - drag) / 7)
|
||||
|
|
Loading…
Reference in New Issue