View Single Post
  #148  
Old 04-11-2021, 09:15 AM
magicfest2 magicfest2 is offline
Aviak


Join Date: Jan 2015
Posts: 50
Default

Pacify was typo'd as 7, should actually be *70*, that's correct. The duration formula is ... not always obvious, as it differs per spell. This is fixed in my fork. I put a PR up yesterday that includes that fix, among a few other features -- though not sure if nomns/Mirox is still working on this, or if patches to the 0.5.x line are still accepted.

For more on the duration calculation:

Here you can see that column 17 (they are zero-indexed, so 16+1) is the "duration formula", and column 18 (17+1) is the duration: https://github.com/nomns/nparse/blob...s.py#L461-L463
Then, just below that here, you can see how the different formulas affect the calculation: https://github.com/nomns/nparse/blob...s.py#L480-L535

Since Pacify is formula 8, the `duration` column is really just acting as a "max ticks", so the actual duration is `min(level + 10, duration)`. At level 60 that's `min(70, 70)`, which makes sense.
Last edited by magicfest2; 04-11-2021 at 09:31 AM..
Reply With Quote