Skip to content

Simplify cargo pods #13

@JensAyton

Description

@JensAyton

Cargo pods have an internal cargoType property, which can be RANDOM, SLAVES, ALLOY, MINERALS, THARGOID or SCRIPTED_ITEM. RANDOM actually contains a fixed item determined by commodityType and commodityAmount. The other values, except SCRIPTED_ITEM, each represent one unit of a fixed commodity.

This reflects the cargo information stored in shipdata.plist for ships, but representing it this way for cargo pods seems entirely pointless. Pods should either be scripted or contain some quantity of a commodity. This information should be exposed to scripts. Scripted pods should also be able to set nominal contents, either as a string or a commodity with the extra option of none/null. (A script that wishes to display pod contents should represent null as “Unknown” or similar.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions