Jump to content

Headhunters spawn bug when getting nearest faction


Rinart73

Recommended Posts

Avorion: 0.25.2

 

When finding enemy faction script checks the same coordinates 3 times in a row ignoring "coords" pair from "locations" table:

File: data\scripts\player\headhunter.lua - Line 71:

local f = Galaxy():getNearestFaction(x, y)

should be replaced with

local f = Galaxy():getNearestFaction(coords.x, coords.y)

 

UPD: Even though in 0.26 that file was completely changed, it has the same bug on lines 120 and 134.

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