We don't have light_sap_recharge.sitem, so remove it

ryzomclassic-develop
kaetemi 5 years ago
parent 6d5eb14d4f
commit 71c7e31806

@ -2590,7 +2590,6 @@ void CCharacter::enchantOrRechargeItem(INVENTORIES::TInventory invId, uint32 slo
{
static const CSheetId crystalSheetId("crystalized_spell.sitem");
static const CSheetId rechargeSheetId("item_sap_recharge.sitem");
static const CSheetId lightRechargeSheetId("light_sap_recharge.sitem");
if (!EnchantSystemEnabled)
return;
@ -2610,7 +2609,7 @@ void CCharacter::enchantOrRechargeItem(INVENTORIES::TInventory invId, uint32 slo
{
enchantItem(invId, slot);
}
else if ((item->getSheetId() == rechargeSheetId) || (item->getSheetId() == lightRechargeSheetId))
else if (item->getSheetId() == rechargeSheetId)
{
rechargeItem(invId, slot);
}
@ -2624,7 +2623,6 @@ bool CCharacter::checkSlotsForEnchantOrRecharge(INVENTORIES::TInventory invId, u
{
static const CSheetId crystalSheetId("crystalized_spell.sitem");
static const CSheetId rechargeSheetId("item_sap_recharge.sitem");
static const CSheetId lightRechargeSheetId("light_sap_recharge.sitem");
if (!EnchantSystemEnabled)
return false;
@ -2668,7 +2666,7 @@ bool CCharacter::checkSlotsForEnchantOrRecharge(INVENTORIES::TInventory invId, u
else
{
// check if the item is a recharge
if ((item->getSheetId() != rechargeSheetId) && (item->getSheetId() != lightRechargeSheetId))
if (item->getSheetId() != rechargeSheetId)
{
SM_STATIC_PARAMS_1(params, STRING_MANAGER::item);
params[0].SheetId = item->getSheetId();

Loading…
Cancel
Save