From: Jaka K. <lyn...@us...> - 2011-01-15 21:50:20
|
gemrb: Infinity Engine emulator The branch master has been updated via 7ab414a133c421ad58b50ad047dd47fb2f277ff1 (commit) Summary of changes: gemrb/core/Scriptable/ActorBlock.cpp | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) from 066bf05274615594aaca6d04d84d1e1c2181fa04 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://gemrb.git.sourceforge.net/git/gitweb.cgi?p=gemrb/gemrb;a=commitdiff;h=7ab414a133c421ad58b50ad047dd47fb2f277ff1 commit 7ab414a133c421ad58b50ad047dd47fb2f277ff1 Author: Jaka Kranjc <lyn...@us...> Date: Sat Jan 15 22:54:14 2011 +0100 unhardcoded the "saving throw mod" surge diff --git a/gemrb/core/Scriptable/ActorBlock.cpp b/gemrb/core/Scriptable/ActorBlock.cpp index 46c3ffd..7a0adc9 100644 --- a/gemrb/core/Scriptable/ActorBlock.cpp +++ b/gemrb/core/Scriptable/ActorBlock.cpp @@ -714,6 +714,14 @@ void Scriptable::CreateProjectile(const ieResRef SpellResRef, ieDword tgt, bool default: //0 - do nothing break; } + + // apply the saving throw mod + if (caster->wildSurgeMods.saving_throw_mod) { + seh = &spl->ext_headers[SpellHeader]; + for (i=0; i < seh->FeatureCount; i++) { + seh->features[i].SavingThrowBonus += caster->wildSurgeMods.saving_throw_mod; + } + } } if (tgt) { ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- gemrb: Infinity Engine emulator |