阅读:1283回复:0
【源码修改】普通玩家显示怪物HP
--------------------------
wndworld.cpp -------------------------- if( g_pPlayer->IsAuthHigher( AUTH_GAMEMASTER ) ) { CString string; if( pMover->IsPlayer() ) #if __VER >= 8 // __S8_PK string.Format( prj.GetText( TID_GAME_SELECT_OBJECT_INFORMATION_PLAYER ), pMover->GetHitPoint(), pMover->GetMaxHitPoint(), pMover->GetGold(), (float)pMover->GetExpPercent()/100.0f, pMover->GetExp1(), pMover->GetMaxExp1() ); #else // __VER >= 8 // __S8_PK string.Format( "HP(%d/%d),Gold(%d),Karma(%d)", pMover->GetHitPoint(), pMover->GetMaxHitPoint(), pMover->GetGold(), pMover->GetKarma() ); #endif // __VER >= 8 // __S8_PK else string.Format( prj.GetText( TID_GAME_SELECT_OBJECT_INFORMATION_MONSTER ), pMover->GetHitPoint(), pMover->GetMaxHitPoint() ); strTemp += string; } 下面添加: else { CString string; if(!pMover->IsPlayer()) string.Format( "HP(%d/%d)", pMover->GetHitPoint(), pMover->GetMaxHitPoint() ); strTemp += string; } |
|
100% |