I've hit another issue which I'm not sure is a bug or if I'm doing something wrong. I want to change the definition for narcotics to be illegal to import in all systems, to be inline with the rest of this OXP. So I created a "trade-goods.plist" file and copied the narcotics definition in and changed it slightly. Here's what it looks like now:
Code: Select all
/* We're making narcotics illegal to import here, to be consistent with the rest of the illegal goods. */
"narcotics" = {
"name" = "[commodity-name narcotics]";
"classes" = ("oolite-consumer","oolite-dangerous","oolite-restricted","oolite-medical");
"quantity_unit" = 0;
"peak_export" = 0;
"peak_import" = 0;
"price_average" = 512;
"price_economic" = 0;
"price_random" = 1.0;
"quantity_average" = 32;
"quantity_economic" = 0;
"quantity_random" = 1.0;
"legality_export" = 0;
"legality_import" = 2;
"trumble_opinion" = 1.05;
"sort_order" = 700;
"comment" = "[oolite-commodity-illegal]";
};
You'll notice that narcotics has "Ex" on it's description, even though I changed it from "legality_export" to "legality_import". Also, on the F8F8 screen it says it's illegal to export, not import.
Curiously, the commodity I didn't change is slaves. It shows as "Im", even though the definition in standard Oolite says "legality_export = 1". And again, on the F8F8 screen it says it's illegal to export.
So have I broken something here, or is this a bug?
Edit: I just tested a strict-mode game, and again, slaves, narcotics and firearms show up as "Im", when I think they should be "Ex". I'm starting to think this is a bug.