Compare commits

...

3 Commits

Author SHA1 Message Date
Sys Quatre fd00b7844f Merge branch 'master' of yunohost.local:mtcontrib/moognu into nalc-1.2-dev 2019-12-22 14:01:11 +01:00
Panquesito7 ff36211011 Use "mod.conf" for dependencies and description (#2) 2019-08-28 07:33:17 +02:00
clavinet 35191a3dc9 Actually respect height limits (#1)
This patch makes moognu actually appear within the limits set by height_min and height_max.
We're now getting the upper and lower possible positions from the y_min and y_max variables calculated before.

By doing this, the frequency of spawned moognus will stay the same, while respecing the height limits.
2019-08-26 20:02:48 +02:00
4 changed files with 3 additions and 3 deletions

View File

@ -1 +0,0 @@
default

View File

@ -1 +0,0 @@
This mod adds a free alternative to the removed Nyan Cats: The MooGNU.

View File

@ -68,7 +68,7 @@ function moognu.generate(minp, maxp, seed)
for i = 1, max_num_moognus do
if pr:next(0, 1000) == 0 then
local x0 = pr:next(minp.x, maxp.x)
local y0 = pr:next(minp.y, maxp.y)
local y0 = pr:next(y_min, y_max)
local z0 = pr:next(minp.z, maxp.z)
local p0 = {x = x0, y = y0, z = z0}
moognu.place(p0, pr:next(0, 3), pr:next(3, 15))

View File

@ -1 +1,3 @@
name = moognu
depends = default
description = This mod adds a free alternative to the removed Nyan Cats: The MooGNU.