Atrinik Server  4.0
Data Fields
faction Struct Reference

Data Fields

shstr * name
 Name of the faction.
 
UT_hash_handle hh
 UT hash handle.
 
faction_parent_tparents
 Array of the faction's parents.
 
size_t parents_num
 Number of entries in ::parents.
 
faction_enemy_tenemies
 Array of the faction's enemies.
 
size_t enemies_num
 Number of entries in ::enemies.
 
struct faction ** children
 Pointers to child factions.
 
size_t children_num
 Number of entries in ::children.
 
int16_t modifier
 
double penalty
 
double threshold
 
bool alliance:1
 

Detailed Description

The faction structure.

Definition at line 92 of file faction.c.

Field Documentation

bool faction::alliance

Whether this faction is an alliance.

Definition at line 126 of file faction.c.

int16_t faction::modifier

Percentage modifier of reputation gains/losses that spill from children to this faction.

Definition at line 110 of file faction.c.

double faction::penalty

Penalty for killing an NPC that belongs to this faction.

Definition at line 115 of file faction.c.

double faction::threshold

When below this threshold, NPCs that belong to this faction will attack on sight.

Definition at line 121 of file faction.c.


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