Ejemplo n.º 1
0
        /// <summary>
        /// Gets the override that is set for the creature's damage level.<br/>
        /// </summary>
        public DamageLevelEntry?GetDamageLevelOverride(NwCreature creature)
        {
            InternalVariableInt damageLevelOverride = InternalVariables.DamageLevelOverride(creature);

            if (damageLevelOverride.HasValue)
            {
                return(NwGameTables.DamageLevelTable[damageLevelOverride.Value]);
            }

            return(null);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the override that is set for the creature's damage level.<br/>
 /// </summary>
 public void SetDamageLevelOverride(NwCreature creature, DamageLevelEntry damageLevel)
 {
     InternalVariables.DamageLevelOverride(creature).Value = damageLevel.RowIndex;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Clears any override that is set for the creature's damage level.<br/>
 /// </summary>
 public void ClearDamageLevelOverride(NwCreature creature)
 {
     InternalVariables.DamageLevelOverride(creature).Delete();
 }