Skip to content

Commit

Permalink
Update APIs (NWNX: 28406e89, NWN: 8193.30).
Browse files Browse the repository at this point in the history
  • Loading branch information
jhett12321 committed Sep 7, 2021
1 parent d23facf commit ef4128e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NWNX/Plugins/CreaturePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -780,14 +780,15 @@ public static void SetSkillRank(uint creature, int skill, int rank)
/// <param name="skill">The skill id.</param>
/// <param name="level">The level they gained skill ranks.</param>
/// <returns>The rank in a skill assigned at a level (-1 on error).</returns>
public static void GetSkillRankByLevel(uint creature, int skill, int level)
public static int GetSkillRankByLevel(uint creature, int skill, int level)
{
const string sFunc = "GetSkillRankByLevel";
VM.NWNX.SetFunction(NWNX_Creature, sFunc);
VM.NWNX.StackPush(level);
VM.NWNX.StackPush(skill);
VM.NWNX.StackPush(creature);
VM.NWNX.Call();
return VM.NWNX.StackPopInt();
}

/// Set the ranks in a skill for creature assigned at a level.
Expand Down

0 comments on commit ef4128e

Please sign in to comment.