Mercurial > mm7
comparison UI/UIPopup.cpp @ 1459:2ca62c9e7b3c
Function names
author | Nomad |
---|---|
date | Wed, 21 Aug 2013 16:06:50 +0200 |
parents | 934074e7fcc1 |
children | c4ab816fcc5e |
comparison
equal
deleted
inserted
replaced
1458:934074e7fcc1 | 1459:2ca62c9e7b3c |
---|---|
549 } | 549 } |
550 else | 550 else |
551 { | 551 { |
552 if ( (inspect_item->uAttributes & 8) && (inspect_item->uSpecEnchantmentType || inspect_item->uEnchantmentType) ) | 552 if ( (inspect_item->uAttributes & 8) && (inspect_item->uSpecEnchantmentType || inspect_item->uEnchantmentType) ) |
553 { | 553 { |
554 sub_493F79(&v67, inspect_item->uExpireTime - pParty->uTimePlayed); | 554 init_summoned_item(&v67, inspect_item->uExpireTime - pParty->uTimePlayed); |
555 strcpy(pTmpBuf.data(), "Duration:"); | 555 strcpy(pTmpBuf.data(), "Duration:"); |
556 Str = (char *)(v67.field_18_expire_year - game_starting_year); | 556 Str = (char *)(v67.field_18_expire_year - game_starting_year); |
557 if (v67.field_18_expire_year != 1168 ) | 557 if (v67.field_18_expire_year != 1168 ) |
558 { | 558 { |
559 sprintf(v65, " %d:yr", v67.field_18_expire_year - game_starting_year); | 559 sprintf(v65, " %d:yr", v67.field_18_expire_year - game_starting_year); |
1685 break; | 1685 break; |
1686 case 14://Experience | 1686 case 14://Experience |
1687 v15 = pPlayers[uActiveCharacter]->uLevel; | 1687 v15 = pPlayers[uActiveCharacter]->uLevel; |
1688 do | 1688 do |
1689 { | 1689 { |
1690 if ( (signed __int64)pPlayers[uActiveCharacter]->uExperience < (unsigned int)sub_4B46F8(v15) ) | 1690 if ( (signed __int64)pPlayers[uActiveCharacter]->uExperience < (unsigned int)GetExperienceRequiredForLevel(v15) ) |
1691 break; | 1691 break; |
1692 ++v15; | 1692 ++v15; |
1693 } | 1693 } |
1694 while ( v15 <= 10000 ); | 1694 while ( v15 <= 10000 ); |
1695 pTmpBuf[0] = 0; | 1695 pTmpBuf[0] = 0; |
1696 pTmpBuf2[0] = 0; | 1696 pTmpBuf2[0] = 0; |
1697 if ( v15 > pPlayers[uActiveCharacter]->uLevel ) | 1697 if ( v15 > pPlayers[uActiveCharacter]->uLevel ) |
1698 sprintf(pTmpBuf.data(), pGlobalTXT_LocalizationStrings[147], v15); | 1698 sprintf(pTmpBuf.data(), pGlobalTXT_LocalizationStrings[147], v15); |
1699 v16 = sub_4B46F8(v15) - LODWORD(pPlayers[uActiveCharacter]->uExperience); | 1699 v16 = GetExperienceRequiredForLevel(v15) - LODWORD(pPlayers[uActiveCharacter]->uExperience); |
1700 sprintfex(pTmpBuf2.data(), pGlobalTXT_LocalizationStrings[538], v16, v15 + 1); | 1700 sprintfex(pTmpBuf2.data(), pGlobalTXT_LocalizationStrings[538], v16, v15 + 1); |
1701 strcat(pTmpBuf.data(), "\n"); | 1701 strcat(pTmpBuf.data(), "\n"); |
1702 strcat(pTmpBuf.data(), pTmpBuf2.data()); | 1702 strcat(pTmpBuf.data(), pTmpBuf2.data()); |
1703 sprintf(pTmpBuf2.data(), "%s\n \n%s", pPlayerExperienceAttributeDescription, pTmpBuf.data()); | 1703 sprintf(pTmpBuf2.data(), "%s\n \n%s", pPlayerExperienceAttributeDescription, pTmpBuf.data()); |
1704 if ( pGlobalTXT_LocalizationStrings[83] && pTmpBuf2.data() ) | 1704 if ( pGlobalTXT_LocalizationStrings[83] && pTmpBuf2.data() ) |