From 2a917ede2791cceaccd4f0e7e16816b277efc099 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 18 Nov 2019 12:05:56 +0800 Subject: [PATCH] Register crystallize log context for ryzomclassic/#14 --- .../phrase_manager/magic_phrase.cpp | 2 +- code/ryzom/server/src/server_share/log_item_gen.cpp | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/code/ryzom/server/src/entities_game_service/phrase_manager/magic_phrase.cpp b/code/ryzom/server/src/entities_game_service/phrase_manager/magic_phrase.cpp index ef740fb53..e2aa08769 100644 --- a/code/ryzom/server/src/entities_game_service/phrase_manager/magic_phrase.cpp +++ b/code/ryzom/server/src/entities_game_service/phrase_manager/magic_phrase.cpp @@ -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 ); diff --git a/code/ryzom/server/src/server_share/log_item_gen.cpp b/code/ryzom/server/src/server_share/log_item_gen.cpp index 975b32104..38348ca69 100644 --- a/code/ryzom/server/src/server_share/log_item_gen.cpp +++ b/code/ryzom/server/src/server_share/log_item_gen.cpp @@ -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