Facebook
From oguzhan, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 95
  1. int LocaleService_GetSkillPower(unsigned level)
  2. {
  3. #ifdef ENABLE_SKILLS_LEVEL_OVER_P
  4.         static const unsigned SKILL_POWER_NUM = 60;
  5. #else
  6.         static const unsigned SKILL_POWER_NUM = 50;
  7. #endif
  8.  
  9.         if (level >= SKILL_POWER_NUM)
  10.                 return 0;
  11.  
  12.         if (LocaleService_IsCHEONMA())
  13.         {
  14.                 static unsigned CHEONMA_SKILL_POWERS[SKILL_POWER_NUM] =
  15.                 {
  16.                         0,
  17.                         5, 7, 9, 11, 13,
  18.                         15, 17, 19, 20, 22,
  19.                         24, 26, 28, 30, 32,
  20.                         34, 36, 38, 40, 50, // master
  21.                         52, 55, 58, 61, 63,
  22.                         66, 69, 72, 75, 80, // grand_master
  23.                         82, 84, 87, 90, 95,
  24.                         100, 110, 120, 130, 150,// perfect_master
  25.                         150,
  26.                 };
  27.                 return CHEONMA_SKILL_POWERS[level];
  28.         }
  29.  
  30.         // 0 5 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 50 52 54 56 58 60 63 66 69 72 82 85 88 91 94 98 102 106 110 115 125 125 125 125 125
  31.         static unsigned INTERNATIONAL_SKILL_POWERS[SKILL_POWER_NUM] =
  32.         {
  33.                 0,
  34.                 5, 6, 8, 10, 12,
  35.                 14, 16, 18, 20, 22,
  36.                 24, 26, 28, 30, 32,
  37.                 34, 36, 38, 40, 50, // master
  38.                 52, 54, 56, 58, 60,
  39.                 63, 66, 69, 72, 82, // grand_master
  40.                 85, 88, 91, 94, 98,
  41.                 102, 106, 110, 115, 125,// perfect_master
  42.                 125,
  43.         };
  44.  
  45.         static unsigned SKILL_POWERS[SKILL_POWER_NUM] =
  46.         {
  47.                 0,
  48.                 5, 6, 8, 10, 12, 14, 16, 18, 20, 22,
  49.                 24, 26, 28, 30, 32, 34, 36, 38, 40, 50, // Master
  50.                 52, 54, 56, 58, 60, 63, 66, 69, 72, 82, // Grand
  51.                 85, 88, 91, 94, 98, 102, 106, 110, 115, 130,// Perfect
  52. #ifdef ENABLE_SKILLS_LEVEL_OVER_P
  53.                 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, // Sage
  54.                 240,
  55. #else
  56.                 130,
  57. #endif
  58.         };
  59.         return SKILL_POWERS[level];
  60. }
  61.  
  62. const char*     LocaleService_GetSecurityKey()
  63. {
  64.         return __SECURITY_KEY_STRING__.c_str();
  65. }