Posted by: imaginary
« on: October 10, 2020, 03:04:08 PM »Quote from: Iceranger link=topic=11709. msg139846#msg139846 date=1597191698
Quote from: Dutchling link=topic=11709. msg139834#msg139834 date=1597171705Thanks, this looks like a great tool!
I have one issue though, it suggested a missile with 330% Engine Power Modifier despite me having setCode: [Select]calcContext.maxPowerFactor = 2
See this image:
Am I doing something wrong or is this a bug?
Also, I have suggestion: currently it looks like you can set a range for damage with only a set size. However, due to square damage being optimal, it might be useful to allow the user to choose for a set damage and a range in size.
I guess it depends on how the maxPowerFactor is defined. If it is the same as in game, i. e. , you engine boost tech, then 2x max boost for ships means 4x max boost for missiles.
Yes, you have to fix the size. You can choose the sort order though, for example:
Code: [Select]
topMissiles = example.printTopMissiles(sortFn = lambda m:m.getRange())
Code: [Select]
topMissiles = example.printTopMissiles(sortFn = lambda m:m.engineSetup.ep)
Code: [Select]
topMissiles = example.printTopMissiles(sortFn = lambda m:m.getSpeed())
instead of just
Code: [Select]
topMissiles = example.printTopMissiles()
Usually I fix the range and first figure out the damage and then I tweak the speed/Cth.
Ordering by ep usually gives a good result regarding speed/cth.