move log function to common

This commit is contained in:
Lilian Jónsdóttir 2020-08-08 16:09:07 -07:00
parent 1ad59ef496
commit 4fb102d694
2 changed files with 3 additions and 1 deletions

View file

@ -12,4 +12,6 @@ this.cellTypes = {
match = 3 match = 3
} }
this.log = function(...) mwse.log("[%s] %s", this.modName, string.format(...)) end
return this return this

View file

@ -8,7 +8,7 @@ local cells = {}
local ogDestination local ogDestination
-- {{{ helper functions -- {{{ helper functions
local function log(...) if config.debug then mwse.log("[%s] %s", common.modName, string.format(...)) end end local function log(...) if config.debug then common.log(...) end end
local function isZero(spot) local function isZero(spot)
return spot.position.x == 0 and return spot.position.x == 0 and