Treexter Posted December 7, 2017 Share Posted December 7, 2017 So, I was wandering around in scripts folder, looking for clues for some stuff i want to do and i found that in Avorion\data\scripts\systems\miningsystem.lua function getBonuses(seed, rarity) <...> local range = 200 -- base value -- add flat range based on rarity range = range + (rarity.value + 1) * 40 -- add 0 (worst rarity) to +240 (best rarity) -- add randomized range, span is based on rarity range = range + math.random() * ((rarity.value + 1) * 20) -- add random value between 0 (worst rarity) and 120 (best rarity) <...> function onPreRenderHud() <...> local sphere = Sphere(shipPos, 500) local nearby = {Sector():getEntitiesByLocation(sphere)} <...> So it seems that variable "range" is only used for tooltips and price values, while actual range is always hardcoded to be 500. Update: Yep, tested it with 2 different ranges systems. Both highlight radius are the same and ~ 5 km (500 value) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now