A deed template defines the attributes of a deed that the DeedReporter can report to the FactionManager. More...
Public Member Functions | |
DeedTemplate (string tag, string description, float impact, float aggression, float[] traits, bool requiresSight, float radius, PermittedEvaluators permittedEvaluators=PermittedEvaluators.Everyone, float minAffinityEffect=-100, float maxAffinityEffect=100, float noRepeatDuration=0) | |
Initializes a new instance of the PixelCrushers.LoveHate.DeedTemplate struct. | |
Public Attributes | |
DeedCategory | category |
Optional category this deed template belongs to. | |
string | tag = string.Empty |
The tag unique to the type of deed (e.g., "attack"). | |
string | description = string.Empty |
An optional description for the designer's use. | |
float | impact = 0 |
The impact of the deed to targets (e.g., attack might be -3, heal +1). | |
float | aggression |
How aggressive or submissive the deed is, where -100 is the most submissive and +100 is the most aggressive. | |
float[] | traits = new float[0] |
The objective traits of the deed. | |
bool | requiresSight = false |
Set true if witnesses must be able to see the deed being committed. | |
float | radius = 10 |
The maximum radius at which the deed can be witnessed. | |
PermittedEvaluators | permittedEvaluators = PermittedEvaluators.Everyone |
float | minAffinityEffect = -100 |
Evaluating this deed will never cause faction's affinity to go below this value. | |
float | maxAffinityEffect = -100 |
Evaluating this deed will never cause faction's affinity to go below above value. | |
float | noRepeatDuration = 0 |
Faction members will ignore deeds that are repeated within this duration. | |
A deed template defines the attributes of a deed that the DeedReporter can report to the FactionManager.
|
inline |
Initializes a new instance of the PixelCrushers.LoveHate.DeedTemplate struct.
tag | Tag unique to the type of deed (e.g., "attack"). |
impact | Impact of the deed to targets (e.g., attack might be -3, heal +1). |
aggression | Aggressiveness of the deed [-100,+100]. |
traits | Objective traits of the deed. |
mustSee | If set to true must be seen to be witnessed. |
radius | Maximum radius at which the deed can be witnessed. |
permittedEvaluators | Who is allowed to evaluate the deed. |
float PixelCrushers.LoveHate.DeedTemplate.aggression |
How aggressive or submissive the deed is, where -100 is the most submissive and +100 is the most aggressive.
DeedCategory PixelCrushers.LoveHate.DeedTemplate.category |
Optional category this deed template belongs to.
string PixelCrushers.LoveHate.DeedTemplate.description = string.Empty |
An optional description for the designer's use.
float PixelCrushers.LoveHate.DeedTemplate.impact = 0 |
The impact of the deed to targets (e.g., attack might be -3, heal +1).
float PixelCrushers.LoveHate.DeedTemplate.maxAffinityEffect = -100 |
Evaluating this deed will never cause faction's affinity to go below above value.
float PixelCrushers.LoveHate.DeedTemplate.minAffinityEffect = -100 |
Evaluating this deed will never cause faction's affinity to go below this value.
float PixelCrushers.LoveHate.DeedTemplate.noRepeatDuration = 0 |
Faction members will ignore deeds that are repeated within this duration.
PermittedEvaluators PixelCrushers.LoveHate.DeedTemplate.permittedEvaluators = PermittedEvaluators.Everyone |
float PixelCrushers.LoveHate.DeedTemplate.radius = 10 |
The maximum radius at which the deed can be witnessed.
bool PixelCrushers.LoveHate.DeedTemplate.requiresSight = false |
Set true
if witnesses must be able to see the deed being committed.
string PixelCrushers.LoveHate.DeedTemplate.tag = string.Empty |
The tag unique to the type of deed (e.g., "attack").
float [] PixelCrushers.LoveHate.DeedTemplate.traits = new float[0] |
The objective traits of the deed.