Modding Help How do you get the value of ship tier with Lua?

Discussion in 'Starbound Modding' started by xaliber, Nov 19, 2017.

  1. xaliber

    xaliber Scruffy Nerf-Herder

    I've been trying to find out what tier the player's ship is.

    I know there is world.getProperty("ship.fuelEfficiency") to get the fuel efficiency. How to get the value of ship tier? Is there any page I can take a look at?
  2. xaliber

    xaliber Scruffy Nerf-Herder

    Got it. It's player.shipUpgrades().shipLevel

    It can be found in player.lua and ship.lua. Can't find an useful page in the wiki though.

Share This Page