Merge remote-tracking branch 'upstream/master'

This commit is contained in:
bri cassa 2024-09-15 09:43:11 +02:00
commit daf92c43e3

View File

@ -40,9 +40,10 @@ mymod.speed_monoid = player_monoids.make_monoid({
end,
fold = function(tab)
local res = 1
for _, speed in pairs(tab) do
for _, speed in pairs(tab) do
res = res * speed
end
end
return res
end,
identity = 1,
apply = function(speed, player)
@ -108,9 +109,10 @@ newmod.speed_boosts = player_monoids.make_monoid({
end,
fold = function(tab)
local res = 1
for _, speed in pairs(tab) do
for _, speed in pairs(tab) do
res = math.max(res, speed)
end
end
return res
end,
identity = 1,
apply = ???