Jump to content

Upgrade stations - number of items sold


LordHavoc

Recommended Posts

I'm trawling through the lua files and trying to find out exactly where the # of items sold in upgrade stations are.

It's specifically the quantities I'm looking to change. (So that instead of 1x of turret X is made...6x is sold)

 

Would anyone know where I could find it?

 

I'm a tiny be ocd and like to have multiple versions of the same turret on my ship, even if they're crappy white ones.

Link to comment
Share on other sites

Nevermind - found it in the Shop.lua

 

function add(item_in, amount)
    amount = amount or 1

    local item = Shop.ItemWrapper(item_in)

    item.name = item.name or ""
    item.price = item.price or 0
    item.amount = amount * 5 --make shops sell 5x as many of everything

    table.insert(soldItems, item)

end

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...