Adjusted the comment. And, hey, it made you ask the question, so it
was better than nothing
Thanks, it worked perfectly! Are the MonthlyReport and FDNode objects transient? Is it safe to retrieve them once for the industry and store it, or should I retrieve them every time I want to update the values? I noticed you did the latter.
You should do the latter since the "current" report will change when the month ticks over.
("Transient", at least in terms of Starsector API stuff, generally means "does not end up in the savefile", btw, which isn't what we're talking abut here. I get what you mean, though, and it's not wrong to say it the way you did; just pointing out it could be a point of confusion at some later time.)
Also, I followed your code to retrieve the node for a particular industry and created this monstrosity:
FDNode iNode = report.getNode(report.getNode(report.getNode(report.getNode(MonthlyReport.OUTPOSTS), market.getId()), "industries"), getId());
Is there any way to truncate or is it just a tree you have to traverse?
It is a tree, but this construction looks wrong. getNode() returns an FDNode but takes a String as a parameter so you couldn't chain it like this.