Anvil
|
A creature/character class definition. More...
Public Member Functions | |
byte | GetRecommendedAbilityScore (Ability ability) |
Gets the ability score for the specified ability that is shown during character creation. More... | |
IReadOnlyList< byte > | GetSavingThrowTable (SavingThrow savingThrow) |
Gets a list containing the saving throw progression granted by this class. The list is 0-indexed, with level 1 starting at element 0. More... | |
Static Public Member Functions | |
static ? NwClass | FromClassId (int classId) |
Resolves a NwClass from a class id. More... | |
static ? NwClass | FromClassType (ClassType classType) |
Resolves a NwClass from a Anvil.API.ClassType. More... | |
static implicit | operator NwClass? (ClassType classType) |
Properties | |
IReadOnlyList< ClassAbilityGainList > | AbilityGainTable [get] |
Gets a list containing the ability score progression granted by this class (e.g. Dragon Disciple). The list is 0-indexed, with level 1 starting at element 0. More... | |
int | ArcaneSpellUsePerDayLevel [get] |
If positive, this specifies the number of levels in this class that together add one level to an arcane class when determining the spell slots based on class level. More... | |
IReadOnlyList< byte > | AttackBonusTable [get] |
Gets a list containing the base attack bonus progression for this class. The list is 0-indexed, with level 1 starting at element 0. More... | |
IReadOnlyList< byte > | BonusFeatsTable [get] |
Gets a list containing the bonus feat progression for this class (e.g. Fighters). The list is 0-indexed, with level 1 starting at element 0. More... | |
bool | CanCastSpontaneously [get] |
Gets if this class can spontaneously cast certain domain spells (e.g. Cleric). More... | |
bool | CanLearnFromScrolls [get] |
Gets if this class can learn spells from reading scrolls (e.g. Wizards) More... | |
float | CasterLevelMultiplier [get] |
Gets the Caster Level multiplier for this class. More... | |
ClassType | ClassType [get] |
Gets the associated Id for this class. More... | |
StrRef | Description [get] |
Gets the description name of this class. More... | |
int | DivineSpellUsePerDayLevel [get] |
If positive, this specifies the number of levels in this class that together add one level to a divine class when determining the spell slots based on class level. More... | |
IReadOnlyList< byte > | EffectiveCRTable [get] |
Gets a list containing the CR progression for this class. This value is used for purposes of encounter challenge rating calculations. The list is 0-indexed, with level 1 starting at element 0. More... | |
byte | EpicLevel [get] |
Gets the maximum amount of levels that can be taken into this class pre-epic (before level 21). More... | |
IReadOnlyList< ClassFeat > | Feats [get] |
Gets a list of the feats associated with this class. More... | |
bool | HasArcaneSpellFailure [get] |
Gets if this class is subject to the effects of arcane spell failure. More... | |
bool | HasDomains [get] |
Gets if this class can choose divine domains as a part of their class (e.g. Clerics) More... | |
bool | HasMemorizedSpells [get] |
Gets if this class gains spells by memorization (e.g. Wizards) More... | |
bool | HasMulticlassPenalty [get] |
Gets if this class counts towards the muliclass penalty for experience. More... | |
bool | HasSpecialization [get] |
Gets if this class can choose a spell specialization/school as a part of their class (e.g. Wizards) More... | |
byte | HitDie [get] |
Gets what size of die is used to roll hit points on level-up. (4, 6, 8, 10, 12, etc.) More... | |
string? | IconResRef [get] |
Gets the ResRef specifying the icon displayed in the game for this class More... | |
byte | Id [get] |
Gets the id of this class. More... | |
bool | InvertRestrictions [get] |
Gets if the alignments specified in Restrictions and RestrictionTypes are the only alignments allowed to gain levels in this class (true), rather than being the alignments prohibited from gaining them (false). More... | |
bool | IsArcaneCaster [get] |
Gets if this class is considered an arcane caster. False indicates that the caster is considered a divine caster. More... | |
bool | IsPlayerClass [get] |
Gets if this class may be selected by a player. More... | |
bool | IsSpellbookRestricted [get] |
Gets if this class is restricted to selecting spells from a spell book (e.g. Wizards) More... | |
bool | IsSpellCaster [get] |
Gets if this class is a s More... | |
byte | MaxLevel [get] |
Gets the maximum amount of levels that can be taken into this class. 0 means there is no limit. More... | |
byte | MinAssociateLevel [get] |
Gets the minimum level required to receive the associate for the class. More... | |
int | MinCastingLevel [get] |
Gets the minimum level required before this class may cast spells. (e.g. Paladin/Ranger) More... | |
StrRef | Name [get] |
Gets the name of this class as shown on the character sheet. More... | |
StrRef | NameLower [get] |
Gets the name of this class, in lowercase. More... | |
StrRef | NamePlural [get] |
Gets the name of this class, in plural form. More... | |
IReadOnlyList< sbyte > | NaturalACGainTable [get] |
Gets a list containing the natural AC progression granted by this class (e.g. Pale Masters). The list is 0-indexed, with level 1 starting at element 0. More... | |
uint | PackageIndex [get] |
Gets the associated packages.2da row index for this class. More... | |
TwoDimArray< ClassPreReqTableEntry >? | PreReqTable [get] |
Gets the 2da table defining the prerequisites for this class (making this class a prestige class). More... | |
Ability | PrimaryAbility [get] |
Gets the primary ability score for this class. Not used for spellcasting. See SpellCastingAbility. More... | |
ClassRestrictions | Restrictions [get] |
Gets the alignment restrictions that must be met to take this class. This acts as a black/whitelist depending on RestrictionTypes and InvertRestrictions. More... | |
ClassRestrictionTypes | RestrictionTypes [get] |
Gets the type of restrictions that Restrictions applies to. More... | |
byte | SkillPointBase [get] |
Gets the number of skill points gained per level from this class before modifiers. More... | |
IReadOnlyList< ClassSkill > | Skills [get] |
Gets the list of skills available to this class. More... | |
Ability | SpellCastingAbility [get] |
Gets the ability score used for spell casting - save DCs, extra spell slots. More... | |
IReadOnlyList< ClassSpellGainList > | SpellGainTable [get] |
Gets a list containing the spell slot progression for this class. The list is 0-indexed, with level 1 starting at element 0. More... | |
IReadOnlyList< ClassSpellGainList > | SpellKnownTable [get] |
Gets a list containing the known spell progression for this class. The list is 0-indexed, with level 1 starting at element 0. More... | |
string? | SpellTableColumn [get] |
Gets the name of the column that this class references in spells.2da More... | |
A creature/character class definition.
|
inlinestatic |
|
inline |
Gets the ability score for the specified ability that is shown during character creation.
ability | The ability score to query. |
|
inline |
Gets a list containing the saving throw progression granted by this class.
The list is 0-indexed, with level 1 starting at element 0.
savingThrow | The saving throw to query. SavingThrow.All is not supported. |
byte reflexSaveLevel15 = nwClass.GetSavingThrowTable(SavingThrow.Reflex)[14];
|
get |
Gets a list containing the ability score progression granted by this class (e.g. Dragon Disciple).
The list is 0-indexed, with level 1 starting at element 0.
|
get |
If positive, this specifies the number of levels in this class that together add one level to an arcane class when determining the spell slots based on class level.
|
get |
Gets a list containing the base attack bonus progression for this class.
The list is 0-indexed, with level 1 starting at element 0.
byte babLevel15 = nwClass.AttackBonusTable[14];
|
get |
Gets a list containing the bonus feat progression for this class (e.g. Fighters).
The list is 0-indexed, with level 1 starting at element 0.
|
get |
Gets if this class can spontaneously cast certain domain spells (e.g. Cleric).
|
get |
Gets if this class can learn spells from reading scrolls (e.g. Wizards)
|
get |
Gets the Caster Level multiplier for this class.
|
get |
Gets the associated Id for this class.
|
get |
Gets the description name of this class.
|
get |
If positive, this specifies the number of levels in this class that together add one level to a divine class when determining the spell slots based on class level.
|
get |
Gets a list containing the CR progression for this class.
This value is used for purposes of encounter challenge rating calculations.
The list is 0-indexed, with level 1 starting at element 0.
|
get |
Gets the maximum amount of levels that can be taken into this class pre-epic (before level 21).
|
get |
Gets a list of the feats associated with this class.
|
get |
Gets if this class is subject to the effects of arcane spell failure.
|
get |
Gets if this class can choose divine domains as a part of their class (e.g. Clerics)
|
get |
Gets if this class gains spells by memorization (e.g. Wizards)
|
get |
Gets if this class counts towards the muliclass penalty for experience.
|
get |
Gets if this class can choose a spell specialization/school as a part of their class (e.g. Wizards)
|
get |
Gets what size of die is used to roll hit points on level-up. (4, 6, 8, 10, 12, etc.)
|
get |
Gets the ResRef specifying the icon displayed in the game for this class
|
get |
Gets the id of this class.
|
get |
Gets if the alignments specified in Restrictions and RestrictionTypes are the only alignments allowed to gain levels in this class (true), rather than being the alignments prohibited from gaining them (false).
|
get |
Gets if this class is considered an arcane caster. False indicates that the caster is considered a divine caster.
|
get |
Gets if this class may be selected by a player.
|
get |
Gets if this class is restricted to selecting spells from a spell book (e.g. Wizards)
|
get |
Gets if this class is a s
|
get |
Gets the maximum amount of levels that can be taken into this class.
0 means there is no limit.
|
get |
Gets the minimum level required to receive the associate for the class.
|
get |
Gets the minimum level required before this class may cast spells. (e.g. Paladin/Ranger)
|
get |
Gets the name of this class as shown on the character sheet.
|
get |
Gets the name of this class, in lowercase.
|
get |
Gets the name of this class, in plural form.
|
get |
Gets a list containing the natural AC progression granted by this class (e.g. Pale Masters).
The list is 0-indexed, with level 1 starting at element 0.
|
get |
Gets the associated packages.2da row index for this class.
|
get |
Gets the 2da table defining the prerequisites for this class (making this class a prestige class).
|
get |
Gets the primary ability score for this class.
Not used for spellcasting. See SpellCastingAbility.
|
get |
Gets the alignment restrictions that must be met to take this class.
This acts as a black/whitelist depending on RestrictionTypes and InvertRestrictions.
|
get |
Gets the type of restrictions that Restrictions applies to.
|
get |
Gets the number of skill points gained per level from this class before modifiers.
|
get |
Gets the list of skills available to this class.
|
get |
Gets the ability score used for spell casting - save DCs, extra spell slots.
|
get |
Gets a list containing the spell slot progression for this class.
The list is 0-indexed, with level 1 starting at element 0.
|
get |
Gets a list containing the known spell progression for this class.
The list is 0-indexed, with level 1 starting at element 0.
|
get |
Gets the name of the column that this class references in spells.2da