Prototype/Achievement: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added prototype type to page)
m (typo)
Line 40: Line 40:
'''Default''': true
'''Default''': true


If this is set to false, ite is not possible to complete the achievement on the peaceful difficulty setting or when the enemy base generation settings have been changed.
If this is set to false, it is not possible to complete the achievement on the peaceful difficulty setting or when the enemy base generation settings have been changed.


=== hidden ===
=== hidden ===

Revision as of 17:55, 3 June 2019

Basics

Prototype type: achievement

This Prototype definition is used for the in-game achievements.

Extensions

Mandatory properties

Inherits all properties from Prototype.

icons, icon, icon_size (IconSpecification)

Type: Types/IconSpecification

Optional properties

steam_stats_name

Type: Types/string

Default: ""

Unusable by mods, as this refers to unlocking the achievement through Steam.

allowed_without_fight

Type: Types/bool

Default: true

If this is set to false, it is not possible to complete the achievement on the peaceful difficulty setting or when the enemy base generation settings have been changed.

hidden

Type: Types/bool

Default: false

Example

{
    type = "achievement",
    name = "so-long-and-thanks-for-all-the-fish",
    order = "g[secret]-a[so-long-and-thanks-for-all-the-fish]",
    icon = "__base__/graphics/achievement/so-long-and-thanks-for-all-the-fish.png",
    icon_size = 128
  }