Permalink
Browse files

EffectQueue: added STAT_ADD_PCF for mostly iwd2 use

  • Loading branch information...
1 parent 8397a0a commit 2a2a3bf322b9b7f0b51abd90ef63e3e85cefe054 @lynxlynxlynx lynxlynxlynx committed Dec 29, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 gemrb/core/EffectQueue.h
View
@@ -114,6 +114,7 @@ class StringBuffer;
//these macros should work differently in permanent mode (modify base too)
#define STAT_GET(stat) (target->Modified[ stat ])
#define STAT_ADD(stat, mod) target->SetStat( stat, STAT_GET( stat ) + ( mod ), 0 )
+#define STAT_ADD_PCF(stat, mod) target->SetStat( stat, STAT_GET( stat ) + ( mod ), 1 )
#define STAT_SUB(stat, mod) target->SetStat( stat, STAT_GET( stat ) - ( mod ), 0 )
#define STAT_BIT_OR(stat, mod) target->SetStat( stat, STAT_GET( stat ) | ( mod ), 0 )
#define STAT_SET(stat, mod) target->SetStat( stat, ( mod ), 0 )

0 comments on commit 2a2a3bf

Please sign in to comment.