-
Notifications
You must be signed in to change notification settings - Fork 8
Covens Factions
Slashscreen edited this page May 21, 2023
·
1 revision
Much of the built-in AI behavior and the built-in crime system rely on the concept of Factions, or as they are called here, Covens, which is an artifact of the game this codebase was originally for. CovenComponent
is required for an entity to be part of a coven.
Covens are resources that contain many properties that determine its behavior.
-
coven_id
- The ID for this coven used in translations and getting covens from the singleton. -
other_coven_opinions
- This coven's "opinion" of other covens, used for the NPC opinion system. -
hidden_from_player
- Whether this should be hidden form the player in a theoretical "reputations" list, even if the player is a part of the coven. -
ranks
- A dictionary containing int keys and translation key strings for ranks of this coven. -
ignore_crimes_against_others
- Whether this coven ignores crimes against non-members. -
ignore_crimes_against_members
- Whether this coven ignores crimes against its own members. -
track_crime
- Whether this tracks crime at all.
Ranks are not necessary, but are intended for organizations the player can join and ascend, such as a Fighter's Guild analogue. NPCs should have a CovenRankData
resource attacked to each coven they are a part of. This may be deprecated in the future in favor of a dictionary.