572
edits
No edit summary |
No edit summary |
||
Line 404: | Line 404: | ||
local workers = GameData.getEntityByID(building.provides.workers, job).quantity | local workers = GameData.getEntityByID(building.provides.workers, job).quantity | ||
-- Sourced from township.js -> Township.computeTownResourceGain() | -- Sourced from township.js -> Township.computeTownResourceGain() | ||
local production = | local production = resource.quantity*100*(Township.tickLength/10) | ||
local resource_data = GameData.getEntityByID(resources, resource.id) | local resource_data = GameData.getEntityByID(resources, resource.id) | ||
table.insert(retProduction, '<span style="color:green">'..Icons.Icon(p._GetResourceIcon(resource.id))..' +'..production..'</span>') | table.insert(retProduction, '<span style="color:green">'..Icons.Icon(p._GetResourceIcon(resource.id))..' +'..production..'</span>') |
edits