Skip to content

Commit 9949129

Browse files
committed
Allow negative values in saving throw adjustments.
1 parent c607e56 commit 9949129

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NWN.Toolbox/src/Features/ToolWindows/CreatureTools/CreaturePropertiesStatsWindowController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ private void SaveChanges()
151151

152152
selectedCreature.BaseAC = sbyte.Parse(Token.GetBindValue(View.NaturalAC)!);
153153

154-
selectedCreature.SetBaseSavingThrow(SavingThrow.Fortitude, (sbyte)byte.Parse(Token.GetBindValue(View.FortitudeBase)!));
155-
selectedCreature.SetBaseSavingThrow(SavingThrow.Reflex, (sbyte)byte.Parse(Token.GetBindValue(View.ReflexBase)!));
156-
selectedCreature.SetBaseSavingThrow(SavingThrow.Will, (sbyte)byte.Parse(Token.GetBindValue(View.WillBase)!));
154+
selectedCreature.SetBaseSavingThrow(SavingThrow.Fortitude, sbyte.Parse(Token.GetBindValue(View.FortitudeBase)!));
155+
selectedCreature.SetBaseSavingThrow(SavingThrow.Reflex, sbyte.Parse(Token.GetBindValue(View.ReflexBase)!));
156+
selectedCreature.SetBaseSavingThrow(SavingThrow.Will, sbyte.Parse(Token.GetBindValue(View.WillBase)!));
157157

158158
selectedCreature.MaxHP = int.Parse(Token.GetBindValue(View.BaseHitPoints)!);
159159
selectedCreature.MovementRate = (MovementRate)Token.GetBindValue(View.MovementRate);

0 commit comments

Comments
 (0)