Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

IWDOpcodes: added basic fx_barbarian_rage (no fatigue or greater rage)

  • Loading branch information...
commit a9a0ac3da66cff3d6b899c80ad1767a5763000ca 1 parent 2a2a3bf
@lynxlynxlynx lynxlynxlynx authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 gemrb/plugins/IWDOpcodes/IWDOpcodes.cpp
View
11 gemrb/plugins/IWDOpcodes/IWDOpcodes.cpp
@@ -3314,10 +3314,17 @@ int fx_heroic_inspiration (Scriptable* /*Owner*/, Actor* target, Effect* fx)
//same as BG2 OffscreenAIModifier
//440 BarbarianRage
-int fx_barbarian_rage (Scriptable* /*Owner*/, Actor* /*target*/, Effect* fx)
+int fx_barbarian_rage (Scriptable* /*Owner*/, Actor* target, Effect* fx)
{
if(0) print("fx_barbarian_rage(%2d) Amount:%d", fx->Opcode, fx->Parameter1);
- //TODO: implement this
+ //TODO: is Greater rage handled in the same effect? It increases the boni to 6/3, while not affecting penalties
+ STAT_ADD_PCF( IE_CON, 4 );
+ STAT_ADD_PCF( IE_STR, 4 );
+ HandleBonus(target, IE_ARMORCLASS, -2, fx->TimingMode);
+ HandleBonus(target, IE_SAVEWILL, 2, fx->TimingMode);
+
+ // TODO: after 5 rounds (expiry?) apply the "Fatigued" effect, whereby the barbarian is weakened
+
return FX_APPLIED;
}
Please sign in to comment.
Something went wrong with that request. Please try again.