Revert to old sap recharge

ryzomclassic-develop
kaetemi 5 years ago
parent 52d8304659
commit 6d5eb14d4f

@ -2525,10 +2525,15 @@ void CCharacter::createCrystallizedActionItem(const std::vector<NLMISC::CSheetId
// **************************************************************************** // ****************************************************************************
void CCharacter::createRechargeItem(uint32 sapRecharge) void CCharacter::createRechargeItem(uint32 sapRecharge)
{ {
#ifndef RYZOM_FORGE
static const CSheetId rechargeSheetId("item_sap_recharge.sitem");
#endif
if (!EnchantSystemEnabled) if (!EnchantSystemEnabled)
return; return;
/*** OLD METHOD ********************************************** #ifndef RYZOM_FORGE
if (!enterTempInventoryMode(TEMP_INV_MODE::Crystallize)) if (!enterTempInventoryMode(TEMP_INV_MODE::Crystallize))
return; return;
@ -2537,7 +2542,9 @@ void CCharacter::createRechargeItem(uint32 sapRecharge)
{ {
item->setSapLoad(sapRecharge); item->setSapLoad(sapRecharge);
addItemToInventory(INVENTORIES::temporary, item); addItemToInventory(INVENTORIES::temporary, item);
}******/ }
#else
CInventoryPtr handlingInv = getInventory(INVENTORIES::handling); CInventoryPtr handlingInv = getInventory(INVENTORIES::handling);
if (handlingInv == NULL) if (handlingInv == NULL)
@ -2573,6 +2580,8 @@ void CCharacter::createRechargeItem(uint32 sapRecharge)
params[1].Int = rightHandItem->sapLoad(); params[1].Int = rightHandItem->sapLoad();
params[2].Int = rightHandItem->maxSapLoad(); params[2].Int = rightHandItem->maxSapLoad();
sendDynamicSystemMessage(_EntityRowId, "ITEM_IS_RECHARGED", params); sendDynamicSystemMessage(_EntityRowId, "ITEM_IS_RECHARGED", params);
#endif
} }
// check if enchant or recharge an item // check if enchant or recharge an item

Loading…
Cancel
Save