Difference between revisions of "Types/Resistances"

From Official Factorio Wiki
Jump to: navigation, search
(Created page with "==Basics== Resistances to certain types of attacks from enemy, and physical damage. == Mandatory properties == === type === '''Type''': Types/string Specification of th...")
 
Line 13: Line 13:
 
     "fire"
 
     "fire"
  
=== decrease ===
+
==== decrease ====
 
'''type''': [[Types/double]]
 
'''type''': [[Types/double]]
  
 
The amount of resistance the type of incoming damage deals. (Lower is better)
 
The amount of resistance the type of incoming damage deals. (Lower is better)
  
=== percent ===
+
==== percent ====
 
'''type''': [[Types/double]]
 
'''type''': [[Types/double]]
  

Revision as of 05:53, 15 July 2017

Basics

Resistances to certain types of attacks from enemy, and physical damage.


Mandatory properties

type

Type: Types/string

Specification of the type. Values are:

   "physical"
   "explosion"
   "acid"
   "fire"

decrease

type: Types/double

The amount of resistance the type of incoming damage deals. (Lower is better)

percent

type: Types/double

The percentage of resistance the type of resistance has. (Higher is better)

Example

   resistances =
   {
     {
       type = "physical",
       decrease = 6,
       percent = 30
     },
     {
       type = "explosion",
       decrease = 20,
       percent = 30
     },
     {
       type = "acid",
       decrease = 3,
       percent = 30
     },
     {
       type = "fire",
       decrease = 0,
       percent = 30
     }
   }