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 | |
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')
-rw-r--r-- | engines/xeen/dialogs/dialogs_char_info.cpp | 16 | ||||
-rw-r--r-- | engines/xeen/locations.cpp | 4 |
2 files changed, 14 insertions, 6 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(), diff --git a/engines/xeen/locations.cpp b/engines/xeen/locations.cpp index b81c87e2b3..df28f0c2f6 100644 --- a/engines/xeen/locations.cpp +++ b/engines/xeen/locations.cpp @@ -907,9 +907,9 @@ Character *TempleLocation::doOptions(Character *c) { if (_donation && party.subtract(CONS_GOLD, _donation, WHERE_PARTY, WT_LOC_WAIT)) { sound.stopSound(); sound.playSound("coina.voc", 1); - _dayOfWeek = (_dayOfWeek + 1) / 10; + _dayOfWeek = (_dayOfWeek + 1) % 10; - if (_dayOfWeek == (party._day / 10)) { + if (_dayOfWeek == (party._day % 10)) { party._clairvoyanceActive = true; party._lightCount = 1; |