Jump to content

Item_attr_rare


Recommended Posts

There are 2 ways you can modify it.

Open item_attribute.cpp

look for:

int nAttrLevel = 5;

First way(totally random):

int nAttrLevel = number(1, 6);   // Randomize attribute level from 1 to 5

Second way(less random):

int randomChance = number(0, 100);
    if (randomChance < 20) // 20% Chance to get max lvl attr
        nAttrLevel = 5;
    else if (randomChance < 50) // 30% chance to get max lvl attr 
        nAttrLevel = 4;
    ....  // etc..

  • Good 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.