diff options
Diffstat (limited to 'not/World.lua')
-rw-r--r-- | not/World.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/not/World.lua b/not/World.lua index 853d75b..f576fca 100644 --- a/not/World.lua +++ b/not/World.lua @@ -222,6 +222,12 @@ function World:getCloudsCount () end) end +function World:getCloudsCountFrom (generator) + return self:countEntities(function (entity) + return entity:is(Cloud) and entity.generator == generator + end) +end + function World:getNautsAll () return self:getEntities(function (entity) return entity:is(require("not.Hero")) and not entity.body:isDestroyed() |