Register crystallize log context for ryzomclassic/#14

ryzomclassic-develop
kaetemi 5 years ago
parent 31a819f254
commit 2a917ede27

@ -1857,7 +1857,7 @@ void CMagicPhrase::setPrimaryTarget( const TDataSetRow &entityRowId ) // virtual
void CMagicPhrase::enchantPhrase(CCharacter * user,float successFactor)
{
H_AUTO(CMagicPhrase_enchantPhrase);
TLogContext_Item_EnchantPhrase(user->getId());
TLogContext_Item_EnchantPhrase logItemContext(user->getId());
MBEHAV::CBehaviour behav;
uint moneyCost = uint( getSabrinaCost() * CristalMoneyFactor );

@ -52,7 +52,7 @@ public:
CItemDesc()
: _NoContextCount(0)
{
_LogDefs.resize(34);
_LogDefs.resize(35);
{
LGS::TLogDefinition &logDef = _LogDefs[0];
@ -549,6 +549,15 @@ public:
logDef.getParams()[1].setType(LGS::TSupportedParamType::spt_entityId);
}
{
LGS::TLogDefinition &logDef = _LogDefs[34];
logDef.setLogName("Item_EnchantPhrase");
logDef.setLogText("Player character crystallizes a spell phrase");
logDef.setContext(true);
}
// Register the log definitions

Loading…
Cancel
Save