From 9bd90c47c4c59df4856abd6783f065c89e6d01bf Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 5 Jul 2021 18:54:01 +0800 Subject: [PATCH] Print out average dodge factor --- .../egs_sheets/egs_static_success_table.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ryzom/server/src/entities_game_service/egs_sheets/egs_static_success_table.cpp b/ryzom/server/src/entities_game_service/egs_sheets/egs_static_success_table.cpp index 51ae3a021..9860e1546 100644 --- a/ryzom/server/src/entities_game_service/egs_sheets/egs_static_success_table.cpp +++ b/ryzom/server/src/entities_game_service/egs_sheets/egs_static_success_table.cpp @@ -95,6 +95,12 @@ bool CStaticSuccessTable::_Init = false; float CStaticSuccessTable::_AverageDodgeFactor = 0.0f; const CStaticSuccessTable* CStaticSuccessTable::_Tables[SUCCESS_TABLE_TYPE::NB_TABLE_TYPES]; +NLMISC_DYNVARIABLE( float, AverageDodgeFactor, "Average dodge factor used in creature damage calculation" ) +{ + if (get) + *pointer = CStaticSuccessTable::getAverageDodgeFactor(); +} + //-------------------------------------------------------------- // initTables //--------------------------------------------------------------