forked from minetest-mods/player_monoids
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
daf92c43e3
@ -43,6 +43,7 @@ mymod.speed_monoid = player_monoids.make_monoid({
|
|||||||
for _, speed in pairs(tab) do
|
for _, speed in pairs(tab) do
|
||||||
res = res * speed
|
res = res * speed
|
||||||
end
|
end
|
||||||
|
return res
|
||||||
end,
|
end,
|
||||||
identity = 1,
|
identity = 1,
|
||||||
apply = function(speed, player)
|
apply = function(speed, player)
|
||||||
@ -111,6 +112,7 @@ newmod.speed_boosts = player_monoids.make_monoid({
|
|||||||
for _, speed in pairs(tab) do
|
for _, speed in pairs(tab) do
|
||||||
res = math.max(res, speed)
|
res = math.max(res, speed)
|
||||||
end
|
end
|
||||||
|
return res
|
||||||
end,
|
end,
|
||||||
identity = 1,
|
identity = 1,
|
||||||
apply = ???
|
apply = ???
|
||||||
|
Loading…
Reference in New Issue
Block a user