Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case CItemData::ITEM_TYPE_WEAPON:
- __ClearWeaponRefineEffect();
- if (refine >= 7)
- {
- DWORD dwRight = 0;
- DWORD dwLeft = 0;
- switch(pItem->GetSubType())
- {
- case CItemData::WEAPON_DAGGER:
- dwRight = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED7+refine-7;
- dwLeft = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED7_LEFT+refine-7;
- break;
- case CItemData::WEAPON_FAN:
- dwRight = EFFECT_REFINED+EFFECT_FANBELL_REFINED7+refine-7;
- break;
- case CItemData::WEAPON_ARROW:
- case CItemData::WEAPON_BELL:
- dwRight = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED7+refine-7;
- break;
- case CItemData::WEAPON_BOW:
- dwRight = EFFECT_REFINED+EFFECT_BOW_REFINED7+refine-7;
- break;
- default:
- dwRight = EFFECT_REFINED+EFFECT_SWORD_REFINED7+refine-7;
- }
- if (dwRight > 0)
- this->m_vecWeaponEffects.push_back(this->__AttachEffect(dwRight));
- if (dwLeft > 0)
- this->m_vecWeaponEffects.push_back(this->__AttachEffect(dwLeft));
- }
- itShining = g_mapShiningVectorByVNum.find(pItem->GetIndex());
- if (itShining != g_mapShiningVectorByVNum.end())
- {
- for (std::vector<DWORD>::iterator it = itShining->second.begin(); it != itShining->second.end(); ++it)
- {
- const char* c_szBoneName;
- if (m_swordRefineEffectRight && this->m_GraphicThingInstance.GetAttachingBoneName(CRaceData::PART_WEAPON, &c_szBoneName))
- this->m_vecWeaponEffects.push_back(this->m_GraphicThingInstance.AttachEffectByID(0, c_szBoneName, *it));
- if (m_swordRefineEffectLeft && this->m_GraphicThingInstance.GetAttachingBoneName(CRaceData::PART_WEAPON_LEFT, &c_szBoneName))
- this->m_vecWeaponEffects.push_back(this->m_GraphicThingInstance.AttachEffectByID(0, c_szBoneName, *it));
- }
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement