added game arg to mapPopulate

This commit is contained in:
Jonathan 2024-03-20 15:36:08 -05:00
parent 40afb93d61
commit b72b8942c6

View File

@ -52,14 +52,15 @@ local map = {
-- end -- end
end, end,
-- Map Populate / check if map exists -- Map Populate / check if map exists
populate = function(self, map) populate = function(self, map, game)
for h = 1, 10 do for h = 1, 10 do
for i = 1, 10 do for i = 1, 10 do
local tile = map:create({ local tile = map:create({
x = h, x = h,
y = i, y = i,
occupied_by_type = self:mapCrypt(self.map_tiles[h][i]), occupied_by_type = self:mapCrypt(self.map_tiles[h][i]),
occupied_by_id = "" occupied_by_id = "",
game_ref = game
}) })
end end
end end