|
NwClass | Class [get] |
| Gets the associated class. More...
|
|
IArray< NwDomain?> | Domains [get] |
| Gets the 2 domains set for this class.
Domains can be modified by editing the contents of this array. More...
|
|
IReadOnlyList< IList< NwSpell > > | KnownSpells [get] |
| Gets a mutable list of known spells.
The returned array is indexed by spell level, 0 = cantrips, 1 = level 1 spells, etc. More...
|
|
byte | Level [get] |
| Gets the amount of levels in this class. More...
|
|
byte | NegativeLevels [get] |
| Gets any negative levels applied to this class (e.g. through level drain). More...
|
|
SpellSchool | School [get] |
| Gets the spell school for this class. More...
|
|
◆ ClearMemorizedKnownSpells()
void Anvil.API.CreatureClassInfo.ClearMemorizedKnownSpells |
( |
NwSpell |
spell | ) |
|
|
inline |
Clears the specified spell from the creature's spellbook.
- Parameters
-
◆ GetMemorizedSpellSlotCountByLevel()
int Anvil.API.CreatureClassInfo.GetMemorizedSpellSlotCountByLevel |
( |
byte |
spellLevel | ) |
|
|
inline |
Gets the number of spell slots available for a specific spell level.
- Parameters
-
spellLevel | The spell level to query. |
- Returns
- An integer representing the number of spell slots available.
◆ GetMemorizedSpellSlots()
IReadOnlyList<MemorizedSpellSlot> Anvil.API.CreatureClassInfo.GetMemorizedSpellSlots |
( |
byte |
spellLevel | ) |
|
|
inline |
Gets a list of spell slots available at the given spell level. The returned slots can be modified to change and remove spells.
- Parameters
-
spellLevel | The spell level to query. |
- Returns
- A list containing the creature's current spell slots.
◆ GetRemainingSpellSlots()
byte Anvil.API.CreatureClassInfo.GetRemainingSpellSlots |
( |
byte |
spellLevel | ) |
|
|
inline |
Gets the number of remaining, unspent spell slots for the given spell level.
- Parameters
-
spellLevel | The spell level to query. |
- Returns
◆ SetRemainingSpellSlots()
void Anvil.API.CreatureClassInfo.SetRemainingSpellSlots |
( |
byte |
spellLevel, |
|
|
byte |
slotsRemaining |
|
) |
| |
|
inline |
Sets the number of unspent spell slots for the given spell level.
- Parameters
-
spellLevel | The spell level to modify. |
slotsRemaining | The new amount of spell slot remaining. |
◆ Class
NwClass Anvil.API.CreatureClassInfo.Class |
|
get |
Gets the associated class.
◆ Domains
Gets the 2 domains set for this class.
Domains can be modified by editing the contents of this array.
By default, a non-domain class will be populated with Domain.Air and Domain.Animal (index 0 and 1 respectively).
◆ KnownSpells
IReadOnlyList<IList<NwSpell> > Anvil.API.CreatureClassInfo.KnownSpells |
|
get |
◆ Level
byte Anvil.API.CreatureClassInfo.Level |
|
get |
Gets the amount of levels in this class.
◆ NegativeLevels
byte Anvil.API.CreatureClassInfo.NegativeLevels |
|
get |
Gets any negative levels applied to this class (e.g. through level drain).
◆ School
SpellSchool Anvil.API.CreatureClassInfo.School |
|
get |
Gets the spell school for this class.
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/API/Objects/CreatureClassInfo.cs