diff options
author | Paul Gilbert | 2018-03-25 22:07:17 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-25 22:07:17 -0400 |
commit | ed7505aae765f68216e769cd93689344b3372275 (patch) | |
tree | 20364ba3a1629cd061ef7d803218e68943dfc204 /engines/xeen/dialogs/dialogs_char_info.cpp | |
parent | f7aa39987d29f79f5004d2c2d3cd9aee754cbd99 (diff) | |
download | scummvm-rg350-ed7505aae765f68216e769cd93689344b3372275.tar.gz scummvm-rg350-ed7505aae765f68216e769cd93689344b3372275.tar.bz2 scummvm-rg350-ed7505aae765f68216e769cd93689344b3372275.zip |
XEEN: Fix giving temple blessings, display in char info
Diffstat (limited to 'engines/xeen/dialogs/dialogs_char_info.cpp')
-rw-r--r-- | engines/xeen/dialogs/dialogs_char_info.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/engines/xeen/dialogs/dialogs_char_info.cpp b/engines/xeen/dialogs/dialogs_char_info.cpp index 7285e4f78c..08b9aed8b1 100644 --- a/engines/xeen/dialogs/dialogs_char_info.cpp +++ b/engines/xeen/dialogs/dialogs_char_info.cpp @@ -522,14 +522,22 @@ bool CharacterInfo::expandStat(int attrib, const Character &c) { ++total; } - if (party._blessed) + if (party._blessed) { lines[16] = Common::String::format(Res.BLESSED, party._blessed); - if (party._powerShield) + ++total; + } + if (party._powerShield) { lines[17] = Common::String::format(Res.POWER_SHIELD, party._powerShield); - if (party._holyBonus) + ++total; + } + if (party._holyBonus) { lines[18] = Common::String::format(Res.HOLY_BONUS, party._holyBonus); - if (party._heroism) + ++total; + } + if (party._heroism) { lines[19] = Common::String::format(Res.HEROISM, party._heroism); + ++total; + } msg = Common::String::format("\x2\x3""c%s\x3l%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\x1", Res.CONSUMABLE_NAMES[3], lines[0].c_str(), lines[1].c_str(), |