Anonymous

Module:Sandbox/GauTest/Township: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 408: Line 408:
local biomename = GameData.getEntityByID(Township.biomes, biomeid).name
local biomename = GameData.getEntityByID(Township.biomes, biomeid).name
-- Optional hidden bonus/penalty for building
-- Optional hidden bonus/penalty for building
local modifier = GameData.getEntityByProperty(building.biomeModifiers, 'biomeID', biome)
local modifier = GameData.getEntityByProperty(building.biomeModifiers, 'biomeID', biomeid)
if modifier ~= nil then
if modifier ~= nil then
local color = modifier.value < 0 and 'red' or 'green'
local color = modifier.value < 0 and 'red' or 'green'
572

edits