Changed: Disable help phrase in a special case

storyline/s2e1
Ulukyn 5 years ago
parent 4709e766b9
commit e3cef8803e

@ -2129,8 +2129,9 @@ static void setupEnchantedItem(CSheetHelpSetup &setup, ucstring &itemText)
const CItemSheet *pIS= ctrl->asItemSheet(); const CItemSheet *pIS= ctrl->asItemSheet();
if(pIS && pIS->Family == ITEMFAMILY::CRYSTALLIZED_SPELL) if(pIS && pIS->Family == ITEMFAMILY::CRYSTALLIZED_SPELL)
pPM->buildPhraseDesc(enchantInfo, itemInfo.Enchantment, 0, false, "uihelpPhraseCrystalSpellFormat"); pPM->buildPhraseDesc(enchantInfo, itemInfo.Enchantment, 0, false, "uihelpPhraseCrystalSpellFormat");
else else if(!pIS || pIS->Family != ITEMFAMILY::JEWELRY) {
pPM->buildPhraseDesc(enchantInfo, itemInfo.Enchantment, 0, false, "uihelpPhraseEnchantmentFormat"); pPM->buildPhraseDesc(enchantInfo, itemInfo.Enchantment, 0, false, "uihelpPhraseEnchantmentFormat");
}
// replace // replace
strFindReplace(itemText, enchantTag, enchantInfo ); strFindReplace(itemText, enchantTag, enchantInfo );

Loading…
Cancel
Save