Damage Equation: Difference between revisions

From Project Nomads Unofficial Wiki
No edit summary
No edit summary
Line 15: Line 15:
Let {{#tag:math|\Delta}} be your game's delta frame time, as {{#tag:math|\Delta = \frac 1 {fps} }}.<br>
Let {{#tag:math|\Delta}} be your game's delta frame time, as {{#tag:math|\Delta = \frac 1 {fps} }}.<br>


Then, let {{#tag:math|V_{dr} = A_d \times \Delta - V_a * \Delta}} be the victim's dealt damage.
Then, let {{#tag:math|V_{dr} = A_d \times \Delta - V_a \times \Delta}} be the victim's dealt damage.


For example, a level 3 John Guntower shooting one "fire" bullet with a damage of {{#tag:math|40}} at a John Navigation Tower with a "fire" armor of {{#tag:math|3}}, and a framerate of 60fps:<br>
For example, a level 3 John Guntower shooting one "fire" bullet with a damage of {{#tag:math|40}} at a John Navigation Tower with a "fire" armor of {{#tag:math|3}}, and a framerate of 60fps:<br>

Revision as of 10:19, 13 June 2022

To know how much damage an attacker (guntower, aircraft, ...) will do to a victim entity, you need to know the attacker's damage and damage type, the victim's armor against this damage type and your framerate[1].

Damage Type

Project Nomads uses two damage types:

  • coll: used for collisions
  • fire: catch-all type for any attack, explosion, skrit cloud, etc...

At the current moment, this wiki only lists "fire" type armor/damage for buildings.

Equation

Let be the attacker's damage of any type.
Let be the victim's armor against the same type of damage.
Let be your game's framerate. Typically it is your monitor's refresh rate.
Let be your game's delta frame time, as .

Then, let be the victim's dealt damage.

For example, a level 3 John Guntower shooting one "fire" bullet with a damage of at a John Navigation Tower with a "fire" armor of , and a framerate of 60fps:
First,
Then,
Thus, damage will be dealt to the John Navigation Tower.

  1. TODO: Check fps' relation in multiplayer