Talk:NPC ship

From Starbounder - Starbound Wiki
Jump to: navigation, search

Note on Spawn Chances

I added some notes regarding the spawn chances to each ship section on the page. The source/reference is the game file assets/systemworld.config. Considering that I can't really quote this on the page, I just put this note here in the discussion section.

The spawn weights for NPC Ships and Anomalies are the following:

"objectSpawnPool" : [
  [0.25, "pirateship"],
  [0.02, "cultistship"],
  [0.1, "researchship"],
  [0.02, "penguinship"],
  [0.08, "merchantindustrialship"],
  [0.08, "merchantastroship"],
  [1.0, "anomaly"]
]

So, for example, the chance of a hostile ship being a cultistship is 0.02/(0.25+0.02) = 2/27 = 0.074 = 7.4%.