From ed16d208863944f64ce42298132597345cb749bb Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 13 Sep 2017 04:37:07 +0200 Subject: Clouds are now counted, their number is limited and can be configured --- not/World.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'not/World.lua') diff --git a/not/World.lua b/not/World.lua index e0febb7..853d75b 100644 --- a/not/World.lua +++ b/not/World.lua @@ -101,7 +101,9 @@ function World:buildMap () if type(animations) == "string" then animations = require("config.animations." .. animations) end - self:insertEntity(CloudGenerator(op.clouds, animations, self)):run(6, true) + local cg = CloudGenerator(op.clouds, animations, op.count, self) + self:insertEntity(cg) + cg:run(op.count, true) end end end -- cgit v1.1