Difference between revisions of "Magic Effect"

268 bytes removed ,  18:04, 7 April 2012
imported>Evil4Zerggin
imported>Evil4Zerggin
Line 33: Line 33:
* '''Taper Duration:''' How long the effect continues.
* '''Taper Duration:''' How long the effect continues.
* '''Taper Weight:''' How strong the effect is at the beginning of the taper duration. For example, a value of 0.5 will make the effect half as strong at the moment the duration expires.
* '''Taper Weight:''' How strong the effect is at the beginning of the taper duration. For example, a value of 0.5 will make the effect half as strong at the moment the duration expires.
* '''Taper Curve:''' Controls how quickly the effect magnitude decreases during the taper duration. (Negative values cause the effect magnitude to increase.)
* '''Taper Curve:''' Controls how quickly the effect magnitude decreases during the taper duration. (Negative values cause the effect magnitude to increase.)


Specifically, the magnitude at some taper time (time since the duration expired) is approximately
Specifically, the magnitude at some taper time (time since the duration expired) is
  magnitude = effect magnitude * Taper Weight * exp(taper time * Taper Curve / 600)
  magnitude = effect magnitude * Taper Weight * (1 - taper time / Taper Duration)<sup>Taper Curve</sup>
 
For damage spells, the total damage is approximately
total damage = effect damage * Taper Weight * (600 / Taper Curve) * (1 - exp(Taper Duration * Taper Curve / 600))
 
If Taper Curve is 0, the total damage is
total damage = effect damage * Taper Weight * Taper Duration


====Flags====
====Flags====
Anonymous user