Skip to content

Commit

Permalink
[#13] fix(Npc): set native list lengths correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis authored Oct 18, 2024
1 parent 221e12b commit f94d565
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ZenKit/Vobs/Npc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ public void SetAttribute(int i, int v)
Native.ZkNpc_setAttribute(Handle, (ulong)i, v);
}

public const int HitChanceCount = 8;
public const int HitChanceCount = 4;

public List<int> HitChance
{
Expand Down Expand Up @@ -924,7 +924,7 @@ public void SetHitChance(int i, int v)
Native.ZkNpc_setHitChance(Handle, (ulong)i, v);
}

public const int MissionCount = 8;
public const int MissionCount = 5;

public List<int> Missions
{
Expand Down Expand Up @@ -964,7 +964,7 @@ public int[] AiVars
set => Native.ZkNpc_setAiVars(Handle, value, (ulong)value.Length);
}

public const int PackedCount = 8;
public const int PackedCount = 9;

public List<string> Packed
{
Expand Down

0 comments on commit f94d565

Please sign in to comment.