Prototype/ProducePerHourAchievement: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added prototype type to page)
(0.17)
Line 4: Line 4:
This prototype definition is used for receiving an achievement when the player crafts a specified item a certain amount, in an hour. This is an extension of [[Prototype/Achievement]].
This prototype definition is used for receiving an achievement when the player crafts a specified item a certain amount, in an hour. This is an extension of [[Prototype/Achievement]].
== Mandatory properties ==
== Mandatory properties ==
=== amount ===
'''Type''': [[Types/MaterialAmountType]]
This is how much the player has to craft in an hour, to receive the achievement.
  amount = 1000,
== Optional properties ==
At least one and only one of fluid_product or item_product must exist.
=== item_product ===
=== item_product ===
'''Type''': [[Types/string]]
'''Type''': [[Types/string]]


This defines what the player needs to craft, to earn the achievement.
This will tell the achievement what item the player needs to craft, to get the achievement.


   item_product = "landfill",
   item_product = "landfill",
=== amount ===
'''Type''': [[Types/MaterialAmountType]]


This is how much the player has to craft in an hour, to receive the achievement.  
=== fluid_product ===
'''Type''': [[Types/string]]
 
This will tell the achievement what fluid the player needs to craft, to get the achievement.


   amount = 1000,
   fluid_product = "light-oil",

Revision as of 17:55, 31 March 2019

Basics

Prototype type: produce-per-hour-achievement

This prototype definition is used for receiving an achievement when the player crafts a specified item a certain amount, in an hour. This is an extension of Prototype/Achievement.

Mandatory properties

amount

Type: Types/MaterialAmountType

This is how much the player has to craft in an hour, to receive the achievement.

 amount = 1000,

Optional properties

At least one and only one of fluid_product or item_product must exist.

item_product

Type: Types/string

This will tell the achievement what item the player needs to craft, to get the achievement.

 item_product = "landfill",

fluid_product

Type: Types/string

This will tell the achievement what fluid the player needs to craft, to get the achievement.

 fluid_product = "light-oil",