In other languages: Deutsch Español Français 日本語 한국어 Русский Українська 简体中文

Damage: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(Cleanup, added some more info)
Line 1: Line 1:
{{Languages}}
{{Languages}}
== Overview ==
In Factorio, entities have health, can die/be destroyed, and have resistances. ''Damage'' is defined as the concept of lowering an entity's health by using an attack, such as a gun firing at it, or a biter chewing on it. An entity's resistances will define exactly how much damage the entity will take off of an arbitrary attack.


== Achievements ==
== Achievements ==
{{Main|Achievements}}
{{Main|Achievements}}
The concept of damage is directly connected to the following achievements:
The concept of damage is directly connected to the following achievements:
; Golem
* Golem
: Take 500 damage in one hit and survive.
Take 500 damage in one hit and survive.
; Pyromaniac
 
: Destroy 10k trees with fire.
* Pyromaniac
; Run forrest run
 
: Destroy 100 trees by impact.
Destroy 10k trees with fire.
; Steamrolled
* Run Forrest run
: Destroy 10 spawners by impact.
 
; Watch your step
Destroy 100 trees by impact.
: Get killed by moving [[Diesel locomotive|locomotive]].
* Steamrolled
 
Destroy 10 spawners by impact.
* Watch your step
 
Get killed by a moving [[Diesel locomotive|locomotive]].
 
== Damage Types ==
== Damage Types ==
{|class="wikitable"
{|class="wikitable"
Line 27: Line 37:
| Poison || [[Poison capsule]]
| Poison || [[Poison capsule]]
|-
|-
| Explosion || [[Rocket|Rockets]], [[Explosive rocket|Explosive Rockets]]
| Explosion || [[Rocket|Rockets]], [[Explosive rocket|Explosive Rockets]], [[Grenade]], [[Cluster grenade]]
|-
|-
| Laser || [[Turret#Laser Turrets|Laser turrets]], [[Distractor capsule|distraction]]/[[Destroyer capsule|destroyer robots]], [[personal laser defense]]
| Laser || [[Turret#Laser Turrets|Laser turrets]], [[Distractor capsule|distraction]]/[[Destroyer capsule|destroyer robots]], [[personal laser defense]]
Line 33: Line 43:
== Resistance ==
== Resistance ==
Resistance has two aspects:
Resistance has two aspects:
=== Percentual resistance ===
* Percentile resistance
Is applied first and will just reduce the damage by the specified amount of percent. If the percentage is 100%, the entity is immune to the damage.
Percentile resistance is ''applied first'' and will just reduce the damage by the specified percent. If the percentage is 100%, the entity is immune to the damage. As an example, an entity having 25% resistance to 100 bullet damage would take 75 damage instead.
=== Decrease resistance ===
 
It decreases the damage by specified number as long as the result damage wouldn't be less than zero.
* Decrease, or "flat" resistance
When the result damage would get less than 0, the extra resistance is used as denominator in the fraction of damage that is going to be dealt
Decrease resistance decreases the damage by specified number as long as the result damage wouldn't be less than zero. If the result damage would be less than 0, the extra resistance is used as denominator in the fraction of damage that is going to be dealt.
=== Formulas ===
 
==== Decrease < Damage ====
=== Display of resistances ===
 
In Factorio, resistances are displayed as such:
 
Decrease resistance/Percent resistance
 
So, an entity displaying 10/20% resistance to fire means that that entity has 10 flat resistance and 20% percentile resistance to fire. So, if said entity were to take 30 fire damage, they would instead take 14 damage, after resistances were applied.
 
== Formulas ==
 
=== Decrease < Damage ===
Result damage = (Damage - Decrease) * (1 - Percentage)
Result damage = (Damage - Decrease) * (1 - Percentage)
==== Decrease >= Damage ====
=== Decrease >= Damage ===
Result damage = 1 / (2 + Decrease - Damage) * (1 - Percentage)
Result damage = 1 / (2 + Decrease - Damage) * (1 - Percentage)
An example table of different resistances and what the result damage would be:


{| class="wikitable"
{| class="wikitable"

Revision as of 03:17, 27 January 2017


Overview

In Factorio, entities have health, can die/be destroyed, and have resistances. Damage is defined as the concept of lowering an entity's health by using an attack, such as a gun firing at it, or a biter chewing on it. An entity's resistances will define exactly how much damage the entity will take off of an arbitrary attack.

Achievements

Main article: Achievements

The concept of damage is directly connected to the following achievements:

  • Golem

Take 500 damage in one hit and survive.

  • Pyromaniac

Destroy 10k trees with fire.

  • Run Forrest run

Destroy 100 trees by impact.

  • Steamrolled

Destroy 10 spawners by impact.

  • Watch your step

Get killed by a moving locomotive.

Damage Types

Damage type Used by
Physical Bullets (regular/piercing), shotgun (regular/piercing), biters, axe (iron/steel), collision (of train/car)
Fire Flamethrower
Acid Worm Turrets, Spitters
Poison Poison capsule
Explosion Rockets, Explosive Rockets, Grenade, Cluster grenade
Laser Laser turrets, distraction/destroyer robots, personal laser defense

Resistance

Resistance has two aspects:

  • Percentile resistance

Percentile resistance is applied first and will just reduce the damage by the specified percent. If the percentage is 100%, the entity is immune to the damage. As an example, an entity having 25% resistance to 100 bullet damage would take 75 damage instead.

  • Decrease, or "flat" resistance

Decrease resistance decreases the damage by specified number as long as the result damage wouldn't be less than zero. If the result damage would be less than 0, the extra resistance is used as denominator in the fraction of damage that is going to be dealt.

Display of resistances

In Factorio, resistances are displayed as such:

Decrease resistance/Percent resistance

So, an entity displaying 10/20% resistance to fire means that that entity has 10 flat resistance and 20% percentile resistance to fire. So, if said entity were to take 30 fire damage, they would instead take 14 damage, after resistances were applied.

Formulas

Decrease < Damage

Result damage = (Damage - Decrease) * (1 - Percentage)

Decrease >= Damage

Result damage = 1 / (2 + Decrease - Damage) * (1 - Percentage)

An example table of different resistances and what the result damage would be:

Damage Resistance Result damage (0% damage loss)
5 0 5
5 1 4
5 2 3
5 3 2
5 4 1
5 5 1/2
5 6 1/3
5 7 1/4
5 8 1/5
... ... ...