So, in a completely pristine 1.87 install, I added the following script file:
Code: Select all
"use strict";
this.name = "TestOXP";
this.startUpComplete = function() {
player.ship.manifest["gold"] += 50;
}
this.$test = function() {
player.ship.manifest["gold"] -= 50;
}
Then, using the debug console, run this command to execute the
$test
function:
Code: Select all
worldScripts.TestOXP.$test()
Let's change this up a bit. Adjust the script file so it looks like this:
Code: Select all
"use strict";
this.name = "TestOXP";
this.startUpComplete = function() {
player.ship.manifest["minerals"] += 1;
player.ship.manifest["gold"] += 50;
}
this.$test = function() {
player.ship.manifest["gold"] -= 50;
}
$test
function via the debug console. This time it's different: now the gold has been successfully removed, leaving just the minerals.
I've tested this with a number of different "t" commodities, and with other "kg" or "g" variations, and in all cases, the "kg"/"g" types will not get removed if there is zero amount of any "t" type commodities on board.
Can someone else confirm this behaviour, or am I going mad? Or maybe it's a feature...