Skip to content

RequirementFaction ​

Inherits: Requirement < Resource

Requires entity to have a minimum reputation with a faction

Properties ​

intfaction_id0
intminimum_reputation0
Stringstanding_name""

Methods ​

boolcheck( entity: Entity )
Array[Dictionary]validate()
Stringget_failure_message( entity: Entity )
Stringget_summary()

Property descriptions ​

int faction_id = 0 ​

ID of the faction (leave empty to use FactionDefinition directly)

int minimum_reputation = 0 ​

Minimum reputation value required

String standing_name = "" ​

Named reputation level (e.g., "Friendly", "Allied")

Method descriptions ​

bool check( entity: Entity ) ​

Does the entity meet the requirement?

Array[Dictionary] validate() ​

No faction chosen means the requirement asks nothing

String get_failure_message( entity: Entity ) ​

The reason shown when the entity does not meet the requirement.

String get_summary() ​

A short text about the requirement and its settings.