Atrinik Server  4.0
Data Fields
faction_parent Struct Reference

Data Fields

union {
   shstr *   name
 Parent faction name.
 
   faction_t   ptr
 Pointer to the parent faction.
 
faction
 
int16_t spill
 
int16_t attention
 
bool spill_force:1
 

Detailed Description

Faction parent structure. Holds information about the parent faction, data like spill percentage, etc.

Definition at line 44 of file faction.c.

Field Documentation

int16_t faction_parent::attention

Percentage of how much reputation from this parent affects friendliness checks.

Definition at line 66 of file faction.c.

union { ... } faction_parent::faction

The actual faction parent. During factions file reading, 'name' is used, and afterwards faction_assign_names() is called which sets the ptr instead (by looking up the faction pointer from the name.

int16_t faction_parent::spill

When a player's reputation with this faction changes, how much reputation spills over to this parent (as a percentage, eg, 50 for half of the reputation).

Definition at line 60 of file faction.c.

bool faction_parent::spill_force

If true, will force spill value usage.

Definition at line 71 of file faction.c.


The documentation for this struct was generated from the following file: