# HG changeset patch # User Grumpy7 # Date 1373672693 -7200 # Node ID 8baf20c8f8056af8396dd1b344c6b110d8f38149 # Parent e721754db8eef5cdadaa535711d65a3a481bf8a0 Player::GetTempleHealCostModifier simplified diff -r e721754db8ee -r 8baf20c8f805 Player.cpp --- a/Player.cpp Sat Jul 13 01:30:40 2013 +0200 +++ b/Player.cpp Sat Jul 13 01:44:53 2013 +0200 @@ -283,22 +283,19 @@ } conditionTimeMultiplier = GetConditionDayOfWeek(conditionIdx); } - else if (conditionIdx < 14) - { - baseConditionMultiplier = 1; - conditionTimeMultiplier = 0; - for (int i = 0; i <= 13; i++) - { - v6 = GetConditionDayOfWeek(i); - if ( v6 > conditionTimeMultiplier ) - conditionTimeMultiplier = v6; - } - if ( !conditionTimeMultiplier ) - conditionTimeMultiplier = 1; - } - else{ + else + { conditionTimeMultiplier = 1; baseConditionMultiplier = 1; + if (conditionIdx < 14) + { + for (int i = 0; i <= 13; i++) + { + v6 = GetConditionDayOfWeek(i); + if ( v6 > conditionTimeMultiplier ) + conditionTimeMultiplier = v6; + } + } } result = (int)((double)conditionTimeMultiplier * (double)baseConditionMultiplier * a2); if ( result < 1 )