Jump to content

Grade Mark - Interlude


Recommended Posts

81b2h9be2yx8thwzg.jpg?size_id=2l7a6u8zswgl2p0ozg.jpg?size_id=2vd6702fmsovlu3uzg.jpg?size_id=122eoxjf9kgtoqrgzg.jpg?size_id=26dctwy10e2lcz5mzg.jpg?size_id=26d3ht1wnv33o8u0zg.jpg?size_id=2
 

Grade S80 value --> "7"
Grade S84 value --> "8"
Grade R value --> "6"
Grade R95 value --> "9"
Grade R99 value --> "10"
Grade R110 value --> "11"

download here: https://www.mediafire.com/file/q3l21oged1477ph/grade_mark.rar/file

 

Interface/Classes/ToolTip.uc

//Grade Mark
function AddTooltipItemGrade(ItemInfo Item)
{
	local string TextureName;

	if(Item.CrystalType > 0)
    {
        StartItem();
		m_Info.eType = DIT_TEXT;
		m_Info.t_bDrawOneLine = true;
        m_Info.eType = DIT_TEXTURE;
        m_Info.nOffSetX = 4;
        m_Info.nOffSetY = 0;
        
        switch (Item.CrystalType)
        {
            case 1: // D grade_d
            TextureName = "symbol.grade_d";
            break;
        
            case 2: // C grade_c
            TextureName = "symbol.grade_c";
            break;
    
            case 3: // B grade_b
            TextureName = "symbol.grade_b";
            break;
        
            case 4: // A grade_a
            TextureName = "symbol.grade_a";
            break;
        
            case 5: // S grade_s
            TextureName = "symbol.grade_s";
            break;
        
            case 6: // R Grade_R
            TextureName = "SGERfjssymbol.Grade_R";
            break;
			
	    	case 7: // S80 Grade_S80
            TextureName = "SGERfjssymbol.Grade_S80";
            break;
        
            case 8: // S84 Grade_S84
            TextureName = "SGERfjssymbol.Grade_S84";
            break;
        
            case 9: // R95 Grade_R95
            TextureName = "SGERfjssymbol.Grade_R95";
            break;
        
            case 10: // R99 Grade_R99
            TextureName = "SGERfjssymbol.Grade_R99";
            break;
        
            case 11: // R99 Grade_R110
            TextureName = "SGERfjssymbol.Grade_R110";
            break;
        }
        
        if (Item.CrystalType == 7 || Item.CrystalType == 8 || Item.CrystalType == 9 || Item.CrystalType == 10 || Item.CrystalType == 11)
        {
            m_Info.u_nTextureWidth = 32;
            m_Info.u_nTextureHeight = 16;
            
            m_Info.u_nTextureUWidth = 32;
            m_Info.u_nTextureUHeight = 16;
        }
        else
        {
            m_Info.u_nTextureWidth = 16;
            m_Info.u_nTextureHeight = 16;
            
            m_Info.u_nTextureUWidth = 16;
            m_Info.u_nTextureUHeight = 16;
        }
    
        m_Info.u_strTexture = TextureName;
        EndItem();
    }
}

 

Edited by SGER@fjs
  • Like 6
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
  • 11 months later...
  • 3 months later...
  • 5 months later...
  • 1 month later...
On 1/5/2021 at 11:47 AM, Ehoq said:

@sacrifice yeah. i got same problem. grade mark works fine. but when i enchant weapon M.atk goes to - 21473712713.  ( if i makes s80 grade (grade7)

If the question is still relevant to you, I have an answer. Sorry in advance for broken English, I use google translator. You need to introduce a local variable: 
 

 local int     CrystalChap;

In the ITEM_WEAPON block, we define it:
 

CrystalChap = Item.CrystalType;
            if (Item.CrystalType > 5) 
            {
                CrystalChap = 5;
            }

In tooltips for physical and magical attacks, replace Item.CrystalType with CrystalChap, you get something like this:
 

//Physical Damage
            AddTooltipItemOption(94, String(GetPhysicalDamage(Item.WeaponType, Item.SlotBitType, CrystalChap, Item.Enchanted, Item.PhysicalDamage)), true, true, false);
            
            //Masical Damage
            AddTooltipItemOption(98, String(GetMagicalDamage(Item.WeaponType, Item.SlotBitType, CrystalChap, Item.Enchanted, Item.MagicalDamage)), true, true, false);

There will be no more problems with displaying enchants level. 😉

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...