Item.cpp
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:21k
- /******************************************************************************************************************
-
- 葛碘疙:
-
- 累己磊:
- 累己老:
-
- [老磊][荐沥磊] : 荐沥 郴侩
-
- *******************************************************************************************************************/
- #include "StdAfx.h"
- CItem::CItem()
- {
- m_shCellNum = 0;
- m_bAttr = 0;
- ZeroMemory(&m_stItemInfo, sizeof(CLIENTITEMRCD));
- }
- CItem::~CItem()
- {
- }
- BOOL CItem::SetItem(CLIENTITEMRCD stItemInfo, SHORT shInventoryNum)
- {
- m_stItemInfo = stItemInfo;
- m_shCellNum = shInventoryNum;
- /*
- a:公扁
- b:渴
- c:馆瘤 迫骂 格吧捞
- g:扁鸥
- */
- /*
- #define _U_DRESS 0
- #define _U_WEAPON 1
- #define _U_RIGHTHAND 2
- #define _U_NECKLACE 3
- #define _U_HELMET 4
- #define _U_ARMRINGL 5
- #define _U_ARMRINGR 6
- #define _U_RINGL 7
- #define _U_RINGR 8
- #define _U_CHARM 9
- #define _U_UNEQUIP 100
- */
- switch ( m_stItemInfo.stStdItem.bStdMode )
- {
- // 公扁.
- case 5:
- case 6:
- m_bAttr = _U_WEAPON;
- break;
- // 渴.
- case 10:
- case 11:
- m_bAttr = _U_DRESS;
- break;
- case 15:
- m_bAttr = _U_HELMET;
- break;
- case 19:
- case 20:
- case 21:
- m_bAttr = _U_NECKLACE;
- break;
- case 22:
- case 23:
- m_bAttr = _U_RINGL;
- break;
- case 24:
- case 26:
- m_bAttr = _U_ARMRINGL;
- break;
- // 檬, 榷阂.
- case 30:
- m_bAttr = _U_RIGHTHAND;
- break;
- // 刀啊风, 何利.
- case 25:
- m_bAttr = _U_ARMRINGL;
- break;
- }
- return TRUE;
- }
- BOOL CItem::DrawItem(INT nX, INT nY, BYTE bItemType)
- {
- CWHWilImageData* pxItemImg;
- BOOL bDrawItem = FALSE;
- switch ( bItemType )
- {
- case _ITEM_TYPE_INVENTORY:
- pxItemImg = &g_xGameProc.m_xImage.m_xImageList[_IMAGE_ITEM_INVENTORY];
- bDrawItem = pxItemImg->NewSetIndex(m_stItemInfo.stStdItem.wLooks);
- if ( bDrawItem )
- {
- nX = nX+_INVENTORY_CELL_WIDTH/2-pxItemImg->m_lpstNewCurrWilImageInfo->shWidth/2;
- nY = nY+_INVENTORY_CELL_HEIGHT/2-pxItemImg->m_lpstNewCurrWilImageInfo->shHeight/2;
- }
- break;
- case _ITEM_TYPE_EQUIP:
- pxItemImg = &g_xGameProc.m_xImage.m_xImageList[_IMAGE_ITEM_EQUIP];
- bDrawItem = pxItemImg->NewSetIndex(m_stItemInfo.stStdItem.wLooks);
- if ( bDrawItem )
- {
- nX += g_xGameProc.m_xImage.m_xImageList[_IMAGE_ITEM_EQUIP].m_lpstNewCurrWilImageInfo->shPX;
- nY += g_xGameProc.m_xImage.m_xImageList[_IMAGE_ITEM_EQUIP].m_lpstNewCurrWilImageInfo->shPY;
- }
- break;
- }
-
- if ( bDrawItem )
- {
- g_xMainWnd.DrawWithImageForCompClipRgn(
- nX,
- nY,
- pxItemImg->m_lpstNewCurrWilImageInfo->shWidth,
- pxItemImg->m_lpstNewCurrWilImageInfo->shHeight,
- (WORD*)pxItemImg->m_pbCurrImage, _CLIP_WIDTH, 600);
- }
- return TRUE;
- }
- VOID CItem::ShowItemStatus(INT nX, INT nY)
- {
- CHAR szLineBuf[3][MAX_PATH];
- CHAR szName[MAX_PATH];
- SIZE sizeLen;
- BOOL bUseAble = TRUE;
- const INT nLineGap = 14;
- ZeroMemory(szName, MAX_PATH);
- ZeroMemory(szLineBuf, 3*MAX_PATH);
- if ( m_stItemInfo.stStdItem.szName )
- {
- switch ( m_stItemInfo.stStdItem.bStdMode )
- {
- // 巢磊渴, 咯磊渴.
- case 10:
- case 11:
- {
- bUseAble = FALSE;
- // 霉掳临.
- if ( m_stItemInfo.stStdItem.szName[20] )
- g_xMainWnd.StringPlus(szName, &m_stItemInfo.stStdItem.szName[20], " ", &m_stItemInfo.stStdItem.szName[0], "");
- else
- strcpy(szName, m_stItemInfo.stStdItem.szName);
- g_xMainWnd.PutsHan(NULL, nX, nY, RGB(250, 250, 0), RGB(0, 0, 0), szName);
- sizeLen = g_xMainWnd.GetStrLength(NULL, NULL, szName);
- sprintf(szLineBuf[0], " 公霸%d 郴备%d/%d", (m_stItemInfo.stStdItem.bWeight), (m_stItemInfo.nDura/1000), (m_stItemInfo.nDuraMax)/1000);
- g_xMainWnd.PutsHan(NULL, nX+sizeLen.cx, nY, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[0]);
-
- // 笛掳临.
- if ( m_stItemInfo.stStdItem.wAC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "规绢%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wAC), HIBYTE(m_stItemInfo.stStdItem.wAC));
- if ( m_stItemInfo.stStdItem.wMAC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "付亲%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wMAC), HIBYTE(m_stItemInfo.stStdItem.wMAC));
- if ( m_stItemInfo.stStdItem.wDC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "颇鲍%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wDC), HIBYTE(m_stItemInfo.stStdItem.wDC));
- if ( m_stItemInfo.stStdItem.wMC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "付过%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wMC), HIBYTE(m_stItemInfo.stStdItem.wMC));
- if ( m_stItemInfo.stStdItem.wSC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "档仿%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wSC), HIBYTE(m_stItemInfo.stStdItem.wSC));
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- // 技掳临.
- switch ( m_stItemInfo.stStdItem.bNeed )
- {
- case 0:
- {
- if ( g_xGameProc.m_xMyHero.m_stAbility.bLevel >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸饭骇%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- case 1:
- {
- if ( HIBYTE(g_xGameProc.m_xMyHero.m_stAbility.wDC) >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸颇鲍仿%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- case 2:
- {
- if ( HIBYTE(g_xGameProc.m_xMyHero.m_stAbility.wMC) >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸付过仿%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- case 3:
- {
- if ( HIBYTE(g_xGameProc.m_xMyHero.m_stAbility.wSC) >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸档仿%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- }
- if ( bUseAble )
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[2]);
- else
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 0, 0), RGB(0, 0, 0), szLineBuf[2]);
- }
- break;
- // 公扁.
- case 5:
- case 6:
- {
- bUseAble = FALSE;
- // 霉掳临.
- if ( (m_stItemInfo.stStdItem.bNeedIdentify & 0X01) != 0 )
- {
- if ( m_stItemInfo.stStdItem.szName[20] )
- g_xMainWnd.StringPlus(szName, "(*)", &m_stItemInfo.stStdItem.szName[20], " ", &m_stItemInfo.stStdItem.szName[0], "");
- else
- strcpy(szName, m_stItemInfo.stStdItem.szName);
- }
- else
- {
- if ( m_stItemInfo.stStdItem.szName[20] )
- g_xMainWnd.StringPlus(szName, &m_stItemInfo.stStdItem.szName[20], " ", &m_stItemInfo.stStdItem.szName[0], "");
- else
- strcpy(szName, m_stItemInfo.stStdItem.szName);
- }
- g_xMainWnd.PutsHan(NULL, nX, nY, RGB(250, 250, 0), RGB(0, 0, 0), szName);
- sizeLen = g_xMainWnd.GetStrLength(NULL, NULL, szName);
- sprintf(szLineBuf[0], " 公霸%d 郴备%d/%d", (m_stItemInfo.stStdItem.bWeight), (m_stItemInfo.nDura/1000), (m_stItemInfo.nDuraMax)/1000);
- g_xMainWnd.PutsHan(NULL, nX+sizeLen.cx, nY, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[0]);
- // 笛掳临.
- if ( m_stItemInfo.stStdItem.wDC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "颇鲍%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wDC), HIBYTE(m_stItemInfo.stStdItem.wDC));
- if ( m_stItemInfo.stStdItem.wMC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "付过%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wMC), HIBYTE(m_stItemInfo.stStdItem.wMC));
- if ( m_stItemInfo.stStdItem.wSC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "档仿%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wSC), HIBYTE(m_stItemInfo.stStdItem.wSC));
- if ( m_stItemInfo.stStdItem.sSpecialPower > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "碍档%d ", m_stItemInfo.stStdItem.sSpecialPower);
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- // 技掳临.
- if ( HIBYTE(m_stItemInfo.stStdItem.wAC) > 0 )
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "沥犬+%d ", HIBYTE(m_stItemInfo.stStdItem.wAC));
- if ( HIBYTE(m_stItemInfo.stStdItem.wMAC) > 0 )
- {
- if ( HIBYTE(m_stItemInfo.stStdItem.wMAC) > 10 )
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "傍拜加档+%d ", HIBYTE(m_stItemInfo.stStdItem.wMAC)-10);
- else
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "傍拜加档-%d ", HIBYTE(m_stItemInfo.stStdItem.wMAC));
- }
- if ( LOBYTE(m_stItemInfo.stStdItem.wAC) > 0 )
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "青款+%d ", LOBYTE(m_stItemInfo.stStdItem.wAC));
- if ( LOBYTE(m_stItemInfo.stStdItem.wMAC) > 0 )
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "历林+%d ", LOBYTE(m_stItemInfo.stStdItem.wMAC));
- switch ( m_stItemInfo.stStdItem.bNeed )
- {
- case 0:
- {
- if ( g_xGameProc.m_xMyHero.m_stAbility.bLevel >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸饭骇%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- case 1:
- {
- if ( HIBYTE(g_xGameProc.m_xMyHero.m_stAbility.wDC) >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸颇鲍仿%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- case 2:
- {
- if ( HIBYTE(g_xGameProc.m_xMyHero.m_stAbility.wMC) >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸付过仿%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- case 3:
- {
- if ( HIBYTE(g_xGameProc.m_xMyHero.m_stAbility.wSC) >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸档仿%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- }
- if ( bUseAble )
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[2]);
- else
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 0, 0), RGB(0, 0, 0), szLineBuf[2]);
- }
- break;
- case 15: //葛磊,捧备
- case 19: //格吧捞
- case 20:
- case 21:
- case 22: //馆瘤
- case 23:
- case 24: //迫骂
- case 26:
- {
- bUseAble = FALSE;
- // 霉掳临.
- if ( m_stItemInfo.stStdItem.szName[20] )
- g_xMainWnd.StringPlus(szName, &m_stItemInfo.stStdItem.szName[20], " ", &m_stItemInfo.stStdItem.szName[0], "");
- else
- strcpy(szName, m_stItemInfo.stStdItem.szName);
- g_xMainWnd.PutsHan(NULL, nX, nY, RGB(250, 250, 0), RGB(0, 0, 0), szName);
- sizeLen = g_xMainWnd.GetStrLength(NULL, NULL, szName);
- sprintf(szLineBuf[0], " 公霸%d 郴备%d/%d", (m_stItemInfo.stStdItem.bWeight), (m_stItemInfo.nDura/1000), (m_stItemInfo.nDuraMax)/1000);
- g_xMainWnd.PutsHan(NULL, nX+sizeLen.cx, nY, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[0]);
- // 滴锅掳临.
- // 格吧捞.
- if ( m_stItemInfo.stStdItem.bStdMode == 19 && m_stItemInfo.stStdItem.bStdMode == 20 )
- {
- if ( m_stItemInfo.stStdItem.wAC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "付过雀乔+%d ", HIBYTE(m_stItemInfo.stStdItem.wAC));
- if ( LOBYTE(m_stItemInfo.stStdItem.wMAC) > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "历林+%d ", LOBYTE(m_stItemInfo.stStdItem.wMAC));
- if ( HIBYTE(m_stItemInfo.stStdItem.wMAC) > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "青款+%d ", HIBYTE(m_stItemInfo.stStdItem.wMAC));
- }
- // 馆瘤.
- if ( m_stItemInfo.stStdItem.bStdMode == 22 && m_stItemInfo.stStdItem.bStdMode == 23 )
- {
- if ( HIBYTE(m_stItemInfo.stStdItem.wMAC) > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "吝刀雀汗+%d ", HIBYTE(m_stItemInfo.stStdItem.wMAC));
- if ( LOBYTE(m_stItemInfo.stStdItem.wAC) > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "傍拜加档+%d ", LOBYTE(m_stItemInfo.stStdItem.wAC));
-
- if ( LOBYTE(m_stItemInfo.stStdItem.wMAC) > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "傍拜加档-%d ", LOBYTE(m_stItemInfo.stStdItem.wMAC));
- }
- // 迫骂.
- else if ( m_stItemInfo.stStdItem.bStdMode == 24 && m_stItemInfo.stStdItem.bStdMode == 26 )
- {
- if ( m_stItemInfo.stStdItem.wAC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "沥犬+%d ", HIBYTE(m_stItemInfo.stStdItem.wAC));
-
- if ( m_stItemInfo.stStdItem.wMAC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "刮酶+%d ", HIBYTE(m_stItemInfo.stStdItem.wMAC));
- }
- else
- {
- if ( m_stItemInfo.stStdItem.wAC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "规绢%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wAC), HIBYTE(m_stItemInfo.stStdItem.wAC));
-
- if ( m_stItemInfo.stStdItem.wMAC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "付亲%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wMAC), HIBYTE(m_stItemInfo.stStdItem.wMAC));
- }
- if ( m_stItemInfo.stStdItem.wDC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "颇鲍%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wDC), HIBYTE(m_stItemInfo.stStdItem.wDC));
- if ( m_stItemInfo.stStdItem.wMC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "付过%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wMC), HIBYTE(m_stItemInfo.stStdItem.wMC));
- if ( m_stItemInfo.stStdItem.wSC > 0 )
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], "档仿%d-%d ", LOBYTE(m_stItemInfo.stStdItem.wSC), HIBYTE(m_stItemInfo.stStdItem.wSC));
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- // 技锅掳临.
- switch ( m_stItemInfo.stStdItem.bNeed )
- {
- case 0:
- {
- if ( g_xGameProc.m_xMyHero.m_stAbility.bLevel >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸饭骇%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- case 1:
- {
- if ( HIBYTE(g_xGameProc.m_xMyHero.m_stAbility.wDC) >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸颇鲍仿%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- case 2:
- {
- if ( HIBYTE(g_xGameProc.m_xMyHero.m_stAbility.wMC) >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸付过仿%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- case 3:
- {
- if ( HIBYTE(g_xGameProc.m_xMyHero.m_stAbility.wSC) >= m_stItemInfo.stStdItem.bNeedLevel )
- bUseAble = TRUE;
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], "鞘夸档仿%d ", m_stItemInfo.stStdItem.bNeedLevel);
- }
- break;
- }
- if ( bUseAble )
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[2]);
- else
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 0, 0), RGB(0, 0, 0), szLineBuf[2]);
- }
- break;
- /* case 25: //谎府绰 刀啊风
- case 30: //檬,冉阂
- case 40: //绊扁耽绢府
- case 42:
- case 43:
- */ default:
- {
- bUseAble = FALSE;
- // 霉锅掳临.
- g_xMainWnd.PutsHan(NULL, nX, nY, RGB(250, 250, 0), RGB(0, 0, 0), m_stItemInfo.stStdItem.szName);
- sizeLen = g_xMainWnd.GetStrLength(NULL, NULL, m_stItemInfo.stStdItem.szName);
- switch ( m_stItemInfo.stStdItem.bStdMode )
- {
- case 0: // 拱距.
- if ( m_stItemInfo.stStdItem.wAC > 0 )
- sprintf(&szLineBuf[0][strlen(szLineBuf[0])], " +%dHP ", m_stItemInfo.stStdItem.wAC);
- if ( m_stItemInfo.stStdItem.wMAC > 0 )
- sprintf(&szLineBuf[0][strlen(szLineBuf[0])], " +%dMP ", m_stItemInfo.stStdItem.wMAC);
- sprintf(&szLineBuf[0][strlen(szLineBuf[0])], " 公霸%d ", m_stItemInfo.stStdItem.bWeight);
- g_xMainWnd.PutsHan(NULL, nX+sizeLen.cx, nY, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[0]);
- break;
- case 1: // 富赴绊扁.
- case 2: // 林冈逛.
- break;
- case 3: // 漂荐茄拱距 OR 阿辆傈辑甸.
- sprintf(&szLineBuf[0][strlen(szLineBuf[0])], " 公霸%d ", m_stItemInfo.stStdItem.bWeight);
- g_xMainWnd.PutsHan(NULL, nX+sizeLen.cx, nY, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[0]);
- break;
- case 4: // 阿辆氓甸.
- sprintf(&szLineBuf[0][strlen(szLineBuf[0])], " 公霸%d ", m_stItemInfo.stStdItem.bWeight);
- g_xMainWnd.PutsHan(NULL, nX+sizeLen.cx, nY, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[0]);
- switch ( m_stItemInfo.stStdItem.bShape )
- {
- case 0:
- {
- // 笛掳临.
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], " 傈荤公傍厚鞭 ");
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], " 鞘夸饭骇%d ", m_stItemInfo.stStdItem.wDuraMax);
- if ( (g_xGameProc.m_xMyHero.m_bJob == _JOB_JUNSA) && (g_xGameProc.m_xMyHero.m_stAbility.bLevel >= m_stItemInfo.stStdItem.wDuraMax) )
- bUseAble = TRUE;
- if ( bUseAble )
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[2]);
- else
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 0, 0), RGB(0, 0, 0), szLineBuf[2]);
- }
- break;
- case 1:
- {
- // 笛掳临.
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], " 林贱荤付过氓 ");
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], " 鞘夸饭骇%d ", m_stItemInfo.stStdItem.wDuraMax);
- if ( (g_xGameProc.m_xMyHero.m_bJob == _JOB_SULSA) && (g_xGameProc.m_xMyHero.m_stAbility.bLevel >= m_stItemInfo.stStdItem.wDuraMax) )
- bUseAble = TRUE;
- if ( bUseAble )
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[2]);
- else
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 0, 0), RGB(0, 0, 0), szLineBuf[2]);
- }
- break;
- case 2:
- {
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], " 档荤公傍厚鞭 ");
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], " 鞘夸饭骇%d ", m_stItemInfo.stStdItem.wDuraMax);
- if ( (g_xGameProc.m_xMyHero.m_bJob == _JOB_DOSA) && (g_xGameProc.m_xMyHero.m_stAbility.bLevel >= m_stItemInfo.stStdItem.wDuraMax) )
- bUseAble = TRUE;
- if ( bUseAble )
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[2]);
- else
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 0, 0), RGB(0, 0, 0), szLineBuf[2]);
- }
- break;
- }
- break;
- case 25: // 阿辆 刀啊风.
- // 霉锅掳临.
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], " 公霸%d ", m_stItemInfo.stStdItem.bWeight);
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- // 滴锅掳临.
- sprintf(&szLineBuf[2][strlen(szLineBuf[2])], " 荤侩%d/%d ", m_stItemInfo.nDura, m_stItemInfo.nDuraMax);
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap*2, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[2]);
- break;
- case 30: // 榷阂苞 檬.
- // 滴锅掳临.
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], " 公霸%d 郴备%d/%d ", m_stItemInfo.stStdItem.bWeight, m_stItemInfo.nDura/1000, m_stItemInfo.nDuraMax/1000);
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- break;
- case 31: // 阿辆弓澜矫府令.
- // 霉锅掳临.
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], " 公霸%d ", m_stItemInfo.stStdItem.bWeight);
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- break;
- case 40: // 阿辆绊扁甸(绊扁耽绢府)
- // 滴锅掳临.
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], " 公霸%d 前龙%d/%d ", m_stItemInfo.stStdItem.bWeight, m_stItemInfo.nDura/1000, m_stItemInfo.nDuraMax/1000);
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- break;
- case 42: // 阿辆距犁甸.
- // 滴锅掳临.
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], " 公霸%d 距犁 ", m_stItemInfo.stStdItem.bWeight);
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- break;
- case 43: // 阿辆堡籍甸.
- // 滴锅掳临.
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], " 公霸%d 鉴档%d ", m_stItemInfo.stStdItem.bWeight, m_stItemInfo.nDura/1000);
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- break;
- case 44: // 惑痢俊绰 绝绰 漂荐 酒捞袍.
- break;
- case 45: // 顶俊 冻绢龙锭 官差绰 扁瓷己 酒捞袍.
- break;
- case 46: // 扁瓷篮 绝绰 窜鉴酒捞袍.
- default:
- // 滴锅掳临.
- sprintf(&szLineBuf[1][strlen(szLineBuf[1])], " 公霸%d ", m_stItemInfo.stStdItem.bWeight);
- g_xMainWnd.PutsHan(NULL, nX, nY+nLineGap, RGB(250, 250, 250), RGB(0, 0, 0), szLineBuf[1]);
- break;
- }
- }
- break;
- }
- }
- }