From b72b8942c6b6462e940186530901bd16d379d64d Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 20 Mar 2024 15:36:08 -0500 Subject: [PATCH] added game arg to mapPopulate --- lua_scripts/map.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua_scripts/map.lua b/lua_scripts/map.lua index 42906ba..6a48e05 100644 --- a/lua_scripts/map.lua +++ b/lua_scripts/map.lua @@ -52,14 +52,15 @@ local map = { -- end end, -- Map Populate / check if map exists - populate = function(self, map) + populate = function(self, map, game) for h = 1, 10 do for i = 1, 10 do local tile = map:create({ x = h, y = i, occupied_by_type = self:mapCrypt(self.map_tiles[h][i]), - occupied_by_id = "" + occupied_by_id = "", + game_ref = game }) end end