Mercurial > mm7
comparison mm7_1.cpp @ 262:2d6dda2e0405
m
author | Ritor1 |
---|---|
date | Mon, 18 Feb 2013 12:38:07 +0600 |
parents | 37dcbe8f3cca |
children | 8cf4fe6b4941 |
comparison
equal
deleted
inserted
replaced
261:c3bfe1eb3de7 | 262:2d6dda2e0405 |
---|---|
637 v1 = uPlayerID; | 637 v1 = uPlayerID; |
638 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); | 638 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); |
639 v3 = pIcons_LOD->LoadTexture("fr_award", TEXTURE_16BIT_PALETTE); | 639 v3 = pIcons_LOD->LoadTexture("fr_award", TEXTURE_16BIT_PALETTE); |
640 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v3 != -1 ? (int)&pIcons_LOD->pTextures[v3] : 0)); | 640 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v3 != -1 ? (int)&pIcons_LOD->pTextures[v3] : 0)); |
641 sprintf(pTmpBuf, "%s \f%05d", pGlobalTXT_LocalizationStrings[23], v2);// TODO check args | 641 sprintf(pTmpBuf, "%s \f%05d", pGlobalTXT_LocalizationStrings[23], v2);// TODO check args |
642 sprintf(Source, | 642 sprintf(Source, pGlobalTXT_LocalizationStrings[429], &pParty->pPlayers[v1-1].pName, pClassNames[pParty->pPlayers[v1-1].classType]); |
643 pGlobalTXT_LocalizationStrings[429], | |
644 &pParty->pPlayers[v1-1].pName, | |
645 pClassNames[pParty->pPlayers[v1-1].classType]); | |
646 strcat(pTmpBuf, Source); | 643 strcat(pTmpBuf, Source); |
647 strcat(pTmpBuf, "\xC" "00000"); | 644 strcat(pTmpBuf, "\xC" "00000"); |
648 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, 18, 0, pTmpBuf, 0, 0, 0); | 645 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, 18, 0, pTmpBuf, 0, 0, 0); |
649 result = dword_506528; | 646 result = dword_506528; |
650 a1.uFrameX = 12; | 647 a1.uFrameX = 12; |
3154 if ( v121->uNPC_ID ) | 3151 if ( v121->uNPC_ID ) |
3155 { | 3152 { |
3156 v37 = v112[6]; | 3153 v37 = v112[6]; |
3157 if ( v37 ) | 3154 if ( v37 ) |
3158 { | 3155 { |
3159 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[429], *v112, aNPCProfessionNames[(signed int)v37]); | 3156 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], *v112, aNPCProfessionNames[(signed int)v37]); |
3160 } | 3157 } |
3161 else | 3158 else |
3162 { | 3159 { |
3163 v77 = 2000; | 3160 v77 = 2000; |
3164 v72 = *v112; | 3161 v72 = *v112; |
3468 sprintf(pTmpBuf, "%s\f%05u\t080%s\n", pGlobalTXT_LocalizationStrings[18], 0, v95[v121->pMonsterInfo.uAttack1Type]); | 3465 sprintf(pTmpBuf, "%s\f%05u\t080%s\n", pGlobalTXT_LocalizationStrings[18], 0, v95[v121->pMonsterInfo.uAttack1Type]); |
3469 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); | 3466 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); |
3470 a4 = &a4[LOBYTE(v56->uFontHeight) - 3]; | 3467 a4 = &a4[LOBYTE(v56->uFontHeight) - 3]; |
3471 v57 = v121->pMonsterInfo.uAttack1DamageBonus; | 3468 v57 = v121->pMonsterInfo.uAttack1DamageBonus; |
3472 if ( v57 ) | 3469 if ( v57 ) |
3473 sprintf( | 3470 sprintf(pTmpBuf, "%s\f%05u\t080%dd%d+%d\n", pGlobalTXT_LocalizationStrings[53], 0, v121->pMonsterInfo.uAttack1DamageDiceRolls, |
3474 pTmpBuf, | 3471 v121->pMonsterInfo.uAttack1DamageDiceSides, v57); |
3475 "%s\f%05u\t080%dd%d+%d\n", | |
3476 pGlobalTXT_LocalizationStrings[53], | |
3477 0, | |
3478 v121->pMonsterInfo.uAttack1DamageDiceRolls, | |
3479 v121->pMonsterInfo.uAttack1DamageDiceSides, | |
3480 v57); | |
3481 else | 3472 else |
3482 sprintf( | 3473 sprintf(pTmpBuf, "%s\f%05u\t080%dd%d\n", pGlobalTXT_LocalizationStrings[53], 0, v121->pMonsterInfo.uAttack1DamageDiceRolls, |
3483 pTmpBuf, | |
3484 "%s\f%05u\t080%dd%d\n", | |
3485 pGlobalTXT_LocalizationStrings[53], | |
3486 0, | |
3487 v121->pMonsterInfo.uAttack1DamageDiceRolls, | |
3488 v121->pMonsterInfo.uAttack1DamageDiceSides); | 3474 v121->pMonsterInfo.uAttack1DamageDiceSides); |
3489 } | 3475 } |
3490 else | 3476 else |
3491 { | 3477 { |
3492 sprintf(pTmpBuf, "%s\f%05u\t080%s\n", pGlobalTXT_LocalizationStrings[18], 0, pGlobalTXT_LocalizationStrings[630]); | 3478 sprintf(pTmpBuf, "%s\f%05u\t080%s\n", pGlobalTXT_LocalizationStrings[18], 0, pGlobalTXT_LocalizationStrings[630]); |