Endurance

From Nodeka Wiki
Jump to navigation Jump to search

From the helpfile:

Endurance is your energy or stamina remaining. Almost every skill requires
at least some portion of endurance to use and using basic movement commands
like north, east, south, west, up or down almost always 
drain endurance points.

Agility is the main factor in regenerating endurance.

Endurance also affects your damage and accuracy in battle. If your current 
endurance is low, you may suffer a damage and hit penalty. If your current 
endurance is high, you may gain a damage and hit bonus (fighters only).

The penalty algorithm for endurance affects in combat is as follows:

  bonus = 10 + log(maximum endurance * maximum endurance)
  threshold = (maximum endurance * (50 - bonus)) / 100

  if (current endurance < threshold)
  {
     percent = current endurance / threshold
     if (percent < 0.75) percent = 0.75
     hit = hit * percent
     dam = dam * percent
  }

Here are some examples of the endurance penalty algorithm:

Example #1: Decreased damage at 30% endurance with 1000 endurance

  Nijlo has 1000 maximum endurance and 300 current endurance.
  Nijlo has 100 hit and 100 dam.

  bonus = 10 + log(1000 * 1000) = 16
  threshold = (1000 * (50 - 16)) / 100 = 1000 * .34 = 340

  if (300 < 340)
  {
     percent = 300 / 340 = .88
     hit = 100 * .88 = 88
     dam = 100 * .88 = 88
  }
Example #2: Decreased damage at 30% endurance with 10,000 endurance

  Nijlo has 10,000 maximum endurance and 3000 current endurance.
  Nijlo has 100 hit and 100 damage/dam.

  bonus = 10 + log(10000 * 10000) = 18
  threshold = (10000 * (50 - 18)) / 100 = 10000 * .32 = 3200

  if (3000 < 3200)
  {
     percent = 3000 / 3200 = .94
     hit = 100 * .94 = 94
     dam = 100 * .94 = 94
  }
The bonus algorithm for endurance only benefits fighters. It is as follows:

  bonus = log(maximum endurance * maximum endurance)
  threshold = (maximum endurance * (100 - bonus)) / 100

  if (current endurance > threshold)
  {
     percent = current endurance / threshold
     if (percent > 1.15) percent = 1.15
     hit = hit * percent
     dam = dam * percent
  }

Here are some examples of the endurance bonus algorithm:

Example #1: Increased damage at 100% endurance with 1000 endurance

  Nijlo has 1000 maximum endurance and 1000 current endurance.
  Nijlo has 100 hit and 100 dam.

  bonus = log(1000 * 1000) = 6
  threshold = (1000 * (100 - 6)) / 100 = 1000 * .94 = 940

  if (1000 > 940)
  {
     percent = 1000 / 940 = 1.06
     hit = 100 * 1.06 = 106
     dam = 100 * 1.06 = 106
  }
Example #2: Increased damage at 100% endurance with 10,000 endurance

  Nijlo has 10,000 maximum endurance and 10,000 current endurance.
  Nijlo has 100 hit and 100 dam.

  bonus = log(10000 * 10000) = 8
  threshold = (1000 * (100 - 8)) / 100 = 1000 * .92 = 9200

  if (10000 > 9200)
  {
     percent = 10000 / 9200 = 1.09
     hit = 100 * 1.09 = 109
     dam = 100 * 1.09 = 109
  }
The above algorithm is logrithmic. This means as you grow in endurance, the 
benefit you receive from the added endurance decreases.

However, as shown above, the greater your total endurance, the greater the
greater the threshold you have for reduced endurance. In both above examples 
when Nijlo is losing damage he has 30% of his total endurance. 

However, in the first example, he loses 12% of his damage and hit. In the 
second example, he loses only 6% of his damage and hit. This is because the 
algorithm has greater benefit for those who have higher endurance totals.

Nijlo has 100% endurance in both cases of bonus damage. In the first example,
he gains 6% damage/hit. In the second example, he gains 9% damage/hit. This 
further solidifies the point that a higher endurance maximum helps gain more
damage.

The maximum damage/hit penalty is -25%. The maximum damage/hit bonus is +15%.

Finally, new players with very low damage and hit are free of suffering 
endurance penalties. However, they are granted favor of increased damage from
endurance bonuses.

For more info, see: help agility

Score Sheet Topic[edit]

Score Sheet Topic: Endurance

This field represents the current and maximum endurance you have. Endurance
is used each time you move and varies depending on the area you are in. 
Endurance is also used for almost every skill (with the exception of some
automatic skills).

For more information, see: help endurance

Categories[edit]