Jump to content

Welcome to the Forum!

The best place to exchange builds and ideas! Vote for the best ideas and suggestions here.

Join the Avorion Discord!

Connect with other passionate players and talk about the latest news.

Update 2.0 Out Now!

Update 2.0 now available! Check out the ton of QoL Features, improvements, captains, new commands and reworked UI!

.31.1 Player owned Smuggler's Market does not pay for bought 'stolen goods'


Recommended Posts

Also deletes most types of the goods in process.


Beta 0.31.1 r20541 c086bef81cdc

Occurs when seller and station belongs to same faction.


smugglersmarket.lua: 430

    -- give money to ship faction
    self:transferMoney(stationFaction, stationFaction, seller, price, fromDescription, toDescription)

    -- remove goods from ship
    ship:removeCargo(good, amount)

    -- add goods to station
    self:increaseGoods(good.name, amount)

First function detects that buyer and seller belongs to same faction and therefore no money should be transferred.

Second function removes goods from player inventory.

Third function attempts to add bough goods to station's inventory. But, since station can actually buy only specific subset of goods, anything that doesn't belong to it - gets filtered out and therefore  deleted.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...