Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Actor: added explanation and todo on how saving throws work

  • Loading branch information...
commit 581a4e204c5d8f7be2e9d5a339fd7b218677df10 1 parent 33d886f
@lynxlynxlynx lynxlynxlynx authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 gemrb/core/Scriptable/Actor.cpp
View
4 gemrb/core/Scriptable/Actor.cpp
@@ -3220,6 +3220,10 @@ void Actor::RollSaves()
//3 reflex 8 1
//4 will 16 2
+// in adnd, the stat represents the limit (DC) that the roll with all the boni has to pass
+// since it is a derived stat, we also store the direct effect bonus/malus in it, but make sure to do it negated
+// FIXME: in 3ed, the stat is added to the roll and boni (not negated), then compared to some predefined value (DC)
+
#define SAVECOUNT 5
static int savingthrows[SAVECOUNT]={IE_SAVEVSSPELL, IE_SAVEVSBREATH, IE_SAVEVSDEATH, IE_SAVEVSWANDS, IE_SAVEVSPOLY};
Please sign in to comment.
Something went wrong with that request. Please try again.