I was noticing that with version 1.7.3 the function sortOutTooltip does not appear to parse gems or the shoulder enchants eg: Tooltip line of
+5 Mana Regen
+13 Healing
+7 Healing Spells & 1 Mana per 5 seconds
none of these are captured.
My own profile at
http://anarchyalliance.no-ip.info/roste ... er=Khadgar
has a few of these examples. The details in the footer of the character sheet misses the following expressions :
+X Healing
+X Healing Spells
+X Mana Per 5 sec.
+X Healing Spells & +Y Mana per 5 Seconds
the "+X Mana Per 5 sec." from the ring's base stats (not an enchant) is the one with the oddest capitalisation and foreshorting of seconds."
The following code fragment added to the end of the function sortOutTooltip fixes most of these problems (it needs properly localised of course) :
else if (ereg('^.*Healing Spells$', $line) or ereg('^.*Healing$', $line) ){
$newline = 'Equip: Increases healing done by spells and effects by up to ' . getModifier( $line) . '.';
setBonus( getModifier( $newline), getString( $newline), $item_name, $item_color);
}
else if (ereg('^.*Mana Regen$', $line)){
$newline = 'Equip: Restores '. getModifier( $line) .' mana per 5 sec.';
setBonus( getModifierMana( $newline), getModifierString( $newline), $item_name, $item_color);
}
else if (ereg('^.*Healing Spells & ', $line)){
// we have a +X Healing Spells & +Y Mana per 5 secs.
list($line1, $line2) = explode('&', $line);
// first add healing bonus
$newline = 'Equip: Increases healing done by spells and effects by up to ' . getModifier( $line1) . '.';
setBonus( getModifier( $newline), getString( $newline), $item_name, $item_color);
// now add mana bonus
$newline = 'Equip: Restores '. getModifierMana( $line2) .' mana per 5 sec.';
setBonus( getModifierMana( $newline), getModifierString( $newline), $item_name, $item_color);
}
else if (ereg('^.*Mana Per 5 sec\.', $line) ){
$newline = 'Equip: Restores '. getModifierMana( $line) .' mana per 5 sec.';
setBonus( getModifierMana( $newline), getModifierString( $newline), $item_name, $item_color);
}