Dirtyredz Posted July 1, 2017 Share Posted July 1, 2017 When building an unarmed turret at a turret factory, with the rarity type of "Exceptional" building the turret would not produce a turret matching the turret tooltip shown in the turret factory ui. after spending a couple hours looking at the "turretfactory.lua" ive narrowed it down to only unarmed turrets, and that the local additions = math.max(ingredient.minimum - ingredient.default, math.min(ingredient.maximum - ingredient.default, ingredient.amount - ingredient.default)) in the `makeTurret()` function was producing a negative value, pushed the `value = value + ingredient.statDelta * additions` to produce lower dps then expected. to fix this temporarily I have added a small if statment to recalc the `additions` variable to match the `ingredients.amount` local additions = math.max(ingredient.minimum - ingredient.default, math.min(ingredient.maximum - ingredient.default, ingredient.amount - ingredient.default)) --Dirtyredz | David McClain, Temporary fix for unamred turrets at the turret factory. if weaponType == WeaponType.MiningLaser or weaponType == WeaponType.SalvagingLaser then additions = ingredient.amount end I hope this helps anyone with the same issue, as well as helps you Koon narrow the issue down. Thxs again. 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