Skip to content

Commit

Permalink
Adds FavoredEnemyFeat getter (#766)
Browse files Browse the repository at this point in the history
* ELC validation failure check on 4th level ability gain

Throws a validation failure if the PC did not gain an ability point every 4th level

* Adds FavoredEnemyFeat getter

Adds FavoredEnemyFeat getter

---------

Co-authored-by: Chim <chimaera.no.saki@mail.com>
Co-authored-by: Jhett Black <10942655+jhett12321@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 13, 2024
1 parent beddf0c commit 3330839
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions NWN.Anvil/src/main/API/Ruleset/NwRace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,14 @@ public bool IsFirstLevelGrantedFeat(NwFeat feat)
{
return raceInfo.IsFirstLevelGrantedFeat(feat.Id).ToBool();
}

/// <summary>
/// Gets that race favored enemy feat.
/// </summary>
/// <returns>The default favored enemy feat for that race, otherwise null.</returns>
public NwFeat? GetFavoredEnemyFeat()
{
return NwFeat.FromFeatId(raceInfo.m_nFavoredEnemyFeat);
}
}
}

0 comments on commit 3330839

Please sign in to comment.