Talk:Minigun/Incorrect maximum DPS/reply (4)

From RimWorld Wiki
< Talk:Minigun‎ | Incorrect maximum DPS
Revision as of 23:18, 7 August 2016 by Theaetetus (talk | contribs) (Reply to Incorrect maximum DPS)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I agree that it would be nice to see a likely max DPS readout than a theoretical max DPS based on astronomical odds (50% chance adds up quickly, especially with a 30-round burst).

That said, I can't figure out an easy way to actually make it happen. The best strategy would probably be to calculate probable DPS at each range by multiplying burstCount * rangeXAccuracy * damage, then compare them to determine which of the 4 ranges has the highest DPS and set that value. Problem is, I'm not aware of a MediaWiki parserFunction that you can ask "which of these 4 variable is largest?" with the extensions we have installed. After all, you can't just assume touch range has the highest DPS (see: Sniper Rifle). It could still be done, but it would require a rather large if-statement branch that would probably take more server power than it's worth.

I'd prefer to settle for just renaming the hovertext to indicate that it's "Max theoretical DPS" (or something of the sort) and call it a day.