this.updateGeneralCommodityDefinition = function(goodDefinition, station, system) {
//only change the primary market and don't touch alien items.
if (station || goodDefinition.key === "alien_items") {
return goodDefinition;
}
And later on a logger that triggers when the script is being executed. For some reason the script gets triggered twice per system and it seems that it triggers for a hermit. The quantities seem to match a hermit. The station parameter is null though. According to the wiki the script should be run once with null station when the system is created and later on with station as a parameter.
Is there something wrong somewhere or am I missing something?