Thank you, everyone, for your replies, ya all been very helpful!!
The lame way to do it
public setTables(any: any void
{
this.tableData = any;
//
// Reduce construction times
//
const constructionTimeDivider = 8;
this.tableData.hideout.areas.forEach(hideoutArea =>
{
for (const stage of Object.values(hideoutArea.stages))
{
if (stage.constructionTime > 0)
stage.constructionTime /= constructionTimeDivider;
}
});
//
// Reduce crafting time
//
const productionTimeDivider = 8;
this.tableData.hideout.production.forEach(production =>
{
production.productionTime /= productionTimeDivider;
});
}