Guest User

Untitled

a guest
Sep 15th, 2019
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 15.71 KB | None | 0 0
  1.     PyObject* poModule = Py_InitModule("player", s_methods);
  2.     PyModule_AddIntConstant(poModule, "LEVEL",                  POINT_LEVEL);
  3.     PyModule_AddIntConstant(poModule, "VOICE",                  POINT_VOICE);
  4.     PyModule_AddIntConstant(poModule, "EXP",                    POINT_EXP);
  5.     PyModule_AddIntConstant(poModule, "NEXT_EXP",               POINT_NEXT_EXP);
  6.     PyModule_AddIntConstant(poModule, "HP",                     POINT_HP);
  7.     PyModule_AddIntConstant(poModule, "MAX_HP",                 POINT_MAX_HP);
  8.     PyModule_AddIntConstant(poModule, "SP",                     POINT_SP);
  9.     PyModule_AddIntConstant(poModule, "MAX_SP",                 POINT_MAX_SP);
  10.     PyModule_AddIntConstant(poModule, "STAMINA",                POINT_STAMINA);
  11.     PyModule_AddIntConstant(poModule, "MAX_STAMINA",            POINT_MAX_STAMINA);
  12.     PyModule_AddIntConstant(poModule, "ELK",                    POINT_GOLD);
  13.     PyModule_AddIntConstant(poModule, "ST",                     POINT_ST);
  14.     PyModule_AddIntConstant(poModule, "HT",                     POINT_HT);
  15.     PyModule_AddIntConstant(poModule, "DX",                     POINT_DX);
  16.     PyModule_AddIntConstant(poModule, "IQ",                     POINT_IQ);
  17.     PyModule_AddIntConstant(poModule, "ATT_POWER",              POINT_ATT_POWER);
  18.     PyModule_AddIntConstant(poModule, "ATT_MIN",                POINT_MIN_ATK);
  19.     PyModule_AddIntConstant(poModule, "ATT_MAX",                POINT_MAX_ATK);
  20.     PyModule_AddIntConstant(poModule, "MIN_MAGIC_WEP",          POINT_MIN_MAGIC_WEP);
  21.     PyModule_AddIntConstant(poModule, "MAX_MAGIC_WEP",          POINT_MAX_MAGIC_WEP);
  22.     PyModule_AddIntConstant(poModule, "ATT_SPEED",              POINT_ATT_SPEED);
  23.     PyModule_AddIntConstant(poModule, "ATT_BONUS",              POINT_ATT_GRADE_BONUS);
  24.     PyModule_AddIntConstant(poModule, "EVADE_RATE",             POINT_EVADE_RATE);
  25.     PyModule_AddIntConstant(poModule, "MOVING_SPEED",           POINT_MOV_SPEED);
  26.     PyModule_AddIntConstant(poModule, "DEF_GRADE",              POINT_DEF_GRADE);
  27.     PyModule_AddIntConstant(poModule, "DEF_BONUS",              POINT_DEF_GRADE_BONUS);
  28.     PyModule_AddIntConstant(poModule, "CASTING_SPEED",          POINT_CASTING_SPEED);
  29.     PyModule_AddIntConstant(poModule, "MAG_ATT",                POINT_MAGIC_ATT_GRADE);
  30.     PyModule_AddIntConstant(poModule, "MAG_DEF",                POINT_MAGIC_DEF_GRADE);
  31.     PyModule_AddIntConstant(poModule, "EMPIRE_POINT",           POINT_EMPIRE_POINT);
  32.     PyModule_AddIntConstant(poModule, "STAT",                   POINT_STAT);
  33.     PyModule_AddIntConstant(poModule, "SKILL_PASSIVE",          POINT_SUB_SKILL);
  34.     PyModule_AddIntConstant(poModule, "SKILL_SUPPORT",          POINT_SUB_SKILL);
  35.     PyModule_AddIntConstant(poModule, "SKILL_ACTIVE",           POINT_SKILL);
  36.     PyModule_AddIntConstant(poModule, "SKILL_HORSE",            POINT_HORSE_SKILL);
  37.     PyModule_AddIntConstant(poModule, "PLAYTIME",               POINT_PLAYTIME);
  38.     PyModule_AddIntConstant(poModule, "BOW_DISTANCE",           POINT_BOW_DISTANCE);
  39.     PyModule_AddIntConstant(poModule, "HP_RECOVERY",            POINT_HP_RECOVERY);
  40.     PyModule_AddIntConstant(poModule, "SP_RECOVERY",            POINT_SP_RECOVERY);
  41.     PyModule_AddIntConstant(poModule, "ATTACKER_BONUS",         POINT_PARTY_ATT_GRADE);
  42.     PyModule_AddIntConstant(poModule, "MAX_NUM",                POINT_MAX_NUM);
  43.     ////
  44.     PyModule_AddIntConstant(poModule, "POINT_CRITICAL_PCT",     POINT_CRITICAL_PCT);
  45.     PyModule_AddIntConstant(poModule, "POINT_PENETRATE_PCT",    POINT_PENETRATE_PCT);
  46.     PyModule_AddIntConstant(poModule, "POINT_MALL_ATTBONUS",    POINT_MALL_ATTBONUS);
  47.     PyModule_AddIntConstant(poModule, "POINT_MALL_DEFBONUS",    POINT_MALL_DEFBONUS);
  48.     PyModule_AddIntConstant(poModule, "POINT_MALL_EXPBONUS",    POINT_MALL_EXPBONUS);
  49.     PyModule_AddIntConstant(poModule, "POINT_MALL_ITEMBONUS",   POINT_MALL_ITEMBONUS);
  50.     PyModule_AddIntConstant(poModule, "POINT_MALL_GOLDBONUS",   POINT_MALL_GOLDBONUS);
  51.     PyModule_AddIntConstant(poModule, "POINT_MAX_HP_PCT",       POINT_MAX_HP_PCT);
  52.     PyModule_AddIntConstant(poModule, "POINT_MAX_SP_PCT",       POINT_MAX_SP_PCT);
  53.  
  54.     PyModule_AddIntConstant(poModule, "POINT_SKILL_DAMAGE_BONUS",       POINT_SKILL_DAMAGE_BONUS);
  55.     PyModule_AddIntConstant(poModule, "POINT_NORMAL_HIT_DAMAGE_BONUS",      POINT_NORMAL_HIT_DAMAGE_BONUS);
  56.     PyModule_AddIntConstant(poModule, "POINT_SKILL_DEFEND_BONUS",       POINT_SKILL_DEFEND_BONUS);
  57.     PyModule_AddIntConstant(poModule, "POINT_NORMAL_HIT_DEFEND_BONUS",      POINT_NORMAL_HIT_DEFEND_BONUS);
  58.     PyModule_AddIntConstant(poModule, "POINT_PC_BANG_EXP_BONUS",        POINT_PC_BANG_EXP_BONUS);
  59.     PyModule_AddIntConstant(poModule, "POINT_PC_BANG_DROP_BONUS",       POINT_PC_BANG_DROP_BONUS);
  60.  
  61.     PyModule_AddIntConstant(poModule, "ENERGY",     POINT_ENERGY);
  62.     PyModule_AddIntConstant(poModule, "ENERGY_END_TIME",        POINT_ENERGY_END_TIME);
  63.  
  64.     PyModule_AddIntConstant(poModule, "SKILL_GRADE_NORMAL",         CPythonPlayer::SKILL_NORMAL);
  65.     PyModule_AddIntConstant(poModule, "SKILL_GRADE_MASTER",         CPythonPlayer::SKILL_MASTER);
  66.     PyModule_AddIntConstant(poModule, "SKILL_GRADE_GRAND_MASTER",   CPythonPlayer::SKILL_GRAND_MASTER);
  67.     PyModule_AddIntConstant(poModule, "SKILL_GRADE_PERFECT_MASTER", CPythonPlayer::SKILL_PERFECT_MASTER);
  68.  
  69.     PyModule_AddIntConstant(poModule, "CATEGORY_ACTIVE",        CPythonPlayer::CATEGORY_ACTIVE);
  70.     PyModule_AddIntConstant(poModule, "CATEGORY_PASSIVE",       CPythonPlayer::CATEGORY_PASSIVE);
  71.  
  72.     PyModule_AddIntConstant(poModule, "INVENTORY_PAGE_SIZE",    c_Inventory_Page_Size);
  73.     PyModule_AddIntConstant(poModule, "INVENTORY_PAGE_COUNT",   c_Inventory_Page_Count);
  74.     PyModule_AddIntConstant(poModule, "INVENTORY_SLOT_COUNT",   c_Inventory_Count);
  75.     PyModule_AddIntConstant(poModule, "EQUIPMENT_SLOT_START",   c_Equipment_Start);
  76.     PyModule_AddIntConstant(poModule, "EQUIPMENT_PAGE_COUNT",   c_Equipment_Count);
  77.  
  78. #ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
  79.     PyModule_AddIntConstant(poModule, "NEW_EQUIPMENT_SLOT_START",   c_New_Equipment_Start);
  80.     PyModule_AddIntConstant(poModule, "NEW_EQUIPMENT_SLOT_COUNT",   c_New_Equipment_Count);
  81. #endif
  82.  
  83.     PyModule_AddIntConstant(poModule, "MBF_SKILL",  CPythonPlayer::MBF_SKILL);
  84.     PyModule_AddIntConstant(poModule, "MBF_ATTACK", CPythonPlayer::MBF_ATTACK);
  85.     PyModule_AddIntConstant(poModule, "MBF_CAMERA", CPythonPlayer::MBF_CAMERA);
  86.     PyModule_AddIntConstant(poModule, "MBF_SMART",  CPythonPlayer::MBF_SMART);
  87.     PyModule_AddIntConstant(poModule, "MBF_MOVE",   CPythonPlayer::MBF_MOVE);
  88.     PyModule_AddIntConstant(poModule, "MBF_AUTO",   CPythonPlayer::MBF_AUTO);
  89.     PyModule_AddIntConstant(poModule, "MBS_PRESS",  CPythonPlayer::MBS_PRESS);
  90.     PyModule_AddIntConstant(poModule, "MBS_CLICK",  CPythonPlayer::MBS_CLICK);
  91.     PyModule_AddIntConstant(poModule, "MBT_RIGHT",  CPythonPlayer::MBT_RIGHT);
  92.     PyModule_AddIntConstant(poModule, "MBT_LEFT",   CPythonPlayer::MBT_LEFT);
  93.  
  94.     // Public code with server
  95.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_NONE",                     SLOT_TYPE_NONE);
  96.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_INVENTORY",                SLOT_TYPE_INVENTORY);
  97.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_SKILL",                    SLOT_TYPE_SKILL);
  98.     // Special indecies for client
  99.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_SHOP",                     SLOT_TYPE_SHOP);
  100.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_EXCHANGE_OWNER",           SLOT_TYPE_EXCHANGE_OWNER);
  101.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_EXCHANGE_TARGET",          SLOT_TYPE_EXCHANGE_TARGET);
  102.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_QUICK_SLOT",               SLOT_TYPE_QUICK_SLOT);
  103.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_SAFEBOX",                  SLOT_TYPE_SAFEBOX);
  104.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_PRIVATE_SHOP",             SLOT_TYPE_PRIVATE_SHOP);
  105.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_MALL",                     SLOT_TYPE_MALL);
  106.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_EMOTION",                  SLOT_TYPE_EMOTION);
  107.     PyModule_AddIntConstant(poModule, "SLOT_TYPE_DRAGON_SOUL_INVENTORY",    SLOT_TYPE_DRAGON_SOUL_INVENTORY);
  108.  
  109.     PyModule_AddIntConstant(poModule, "RESERVED_WINDOW",                    RESERVED_WINDOW);
  110.     PyModule_AddIntConstant(poModule, "INVENTORY",                          INVENTORY);
  111.     PyModule_AddIntConstant(poModule, "EQUIPMENT",                          EQUIPMENT);
  112.     PyModule_AddIntConstant(poModule, "SAFEBOX",                            SAFEBOX);
  113.     PyModule_AddIntConstant(poModule, "MALL",                               MALL);
  114.     PyModule_AddIntConstant(poModule, "DRAGON_SOUL_INVENTORY",              DRAGON_SOUL_INVENTORY);
  115.     PyModule_AddIntConstant(poModule, "GROUND",                             GROUND);
  116.  
  117.     PyModule_AddIntConstant(poModule, "ITEM_MONEY",                 -1);
  118.  
  119.     PyModule_AddIntConstant(poModule, "SKILL_SLOT_COUNT",           SKILL_MAX_NUM);
  120.  
  121.     PyModule_AddIntConstant(poModule, "EFFECT_PICK",                CPythonPlayer::EFFECT_PICK);
  122.  
  123.     PyModule_AddIntConstant(poModule, "METIN_SOCKET_TYPE_NONE",                 CPythonPlayer::METIN_SOCKET_TYPE_NONE);
  124.     PyModule_AddIntConstant(poModule, "METIN_SOCKET_TYPE_SILVER",               CPythonPlayer::METIN_SOCKET_TYPE_SILVER);
  125.     PyModule_AddIntConstant(poModule, "METIN_SOCKET_TYPE_GOLD",                 CPythonPlayer::METIN_SOCKET_TYPE_GOLD);
  126.     PyModule_AddIntConstant(poModule, "METIN_SOCKET_MAX_NUM",                   ITEM_SOCKET_SLOT_MAX_NUM);
  127.     PyModule_AddIntConstant(poModule, "ATTRIBUTE_SLOT_MAX_NUM",                 ITEM_ATTRIBUTE_SLOT_MAX_NUM);
  128.  
  129.     PyModule_AddIntConstant(poModule, "REFINE_CANT",                            REFINE_CANT);
  130.     PyModule_AddIntConstant(poModule, "REFINE_OK",                              REFINE_OK);
  131.     PyModule_AddIntConstant(poModule, "REFINE_ALREADY_MAX_SOCKET_COUNT",        REFINE_ALREADY_MAX_SOCKET_COUNT);
  132.     PyModule_AddIntConstant(poModule, "REFINE_NEED_MORE_GOOD_SCROLL",           REFINE_NEED_MORE_GOOD_SCROLL);
  133.     PyModule_AddIntConstant(poModule, "REFINE_CANT_MAKE_SOCKET_ITEM",           REFINE_CANT_MAKE_SOCKET_ITEM);
  134.     PyModule_AddIntConstant(poModule, "REFINE_NOT_NEXT_GRADE_ITEM",             REFINE_NOT_NEXT_GRADE_ITEM);
  135.     PyModule_AddIntConstant(poModule, "REFINE_CANT_REFINE_METIN_TO_EQUIPMENT",  REFINE_CANT_REFINE_METIN_TO_EQUIPMENT);
  136.     PyModule_AddIntConstant(poModule, "REFINE_CANT_REFINE_ROD",                 REFINE_CANT_REFINE_ROD);
  137.     PyModule_AddIntConstant(poModule, "ATTACH_METIN_CANT",                      ATTACH_METIN_CANT);
  138.     PyModule_AddIntConstant(poModule, "ATTACH_METIN_OK",                        ATTACH_METIN_OK);
  139.     PyModule_AddIntConstant(poModule, "ATTACH_METIN_NOT_MATCHABLE_ITEM",        ATTACH_METIN_NOT_MATCHABLE_ITEM);
  140.     PyModule_AddIntConstant(poModule, "ATTACH_METIN_NO_MATCHABLE_SOCKET",       ATTACH_METIN_NO_MATCHABLE_SOCKET);
  141.     PyModule_AddIntConstant(poModule, "ATTACH_METIN_NOT_EXIST_GOLD_SOCKET",     ATTACH_METIN_NOT_EXIST_GOLD_SOCKET);
  142.     PyModule_AddIntConstant(poModule, "ATTACH_METIN_CANT_ATTACH_TO_EQUIPMENT",  ATTACH_METIN_CANT_ATTACH_TO_EQUIPMENT);
  143.     PyModule_AddIntConstant(poModule, "DETACH_METIN_CANT",                      DETACH_METIN_CANT);
  144.     PyModule_AddIntConstant(poModule, "DETACH_METIN_OK",                        DETACH_METIN_OK);
  145.  
  146.     // Party
  147.     PyModule_AddIntConstant(poModule, "PARTY_STATE_NORMAL",                     CPythonPlayer::PARTY_ROLE_NORMAL);
  148.     PyModule_AddIntConstant(poModule, "PARTY_STATE_LEADER",                     CPythonPlayer::PARTY_ROLE_LEADER);
  149.     PyModule_AddIntConstant(poModule, "PARTY_STATE_ATTACKER",                   CPythonPlayer::PARTY_ROLE_ATTACKER);
  150.     PyModule_AddIntConstant(poModule, "PARTY_STATE_TANKER",                     CPythonPlayer::PARTY_ROLE_TANKER);
  151.     PyModule_AddIntConstant(poModule, "PARTY_STATE_BUFFER",                     CPythonPlayer::PARTY_ROLE_BUFFER);
  152.     PyModule_AddIntConstant(poModule, "PARTY_STATE_SKILL_MASTER",               CPythonPlayer::PARTY_ROLE_SKILL_MASTER);
  153.     PyModule_AddIntConstant(poModule, "PARTY_STATE_BERSERKER",                  CPythonPlayer::PARTY_ROLE_BERSERKER);
  154.     PyModule_AddIntConstant(poModule, "PARTY_STATE_DEFENDER",                   CPythonPlayer::PARTY_ROLE_DEFENDER);
  155.     PyModule_AddIntConstant(poModule, "PARTY_STATE_MAX_NUM",                    CPythonPlayer::PARTY_ROLE_MAX_NUM);
  156.  
  157.     // Skill Index
  158.     PyModule_AddIntConstant(poModule, "SKILL_INDEX_TONGSOL",        c_iSkillIndex_Tongsol);
  159.     PyModule_AddIntConstant(poModule, "SKILL_INDEX_FISHING",        c_iSkillIndex_Fishing);
  160.     PyModule_AddIntConstant(poModule, "SKILL_INDEX_MINING",         c_iSkillIndex_Mining);
  161.     PyModule_AddIntConstant(poModule, "SKILL_INDEX_MAKING",         c_iSkillIndex_Making);
  162.     PyModule_AddIntConstant(poModule, "SKILL_INDEX_COMBO",          c_iSkillIndex_Combo);
  163.     PyModule_AddIntConstant(poModule, "SKILL_INDEX_LANGUAGE1",      c_iSkillIndex_Language1);
  164.     PyModule_AddIntConstant(poModule, "SKILL_INDEX_LANGUAGE2",      c_iSkillIndex_Language2);
  165.     PyModule_AddIntConstant(poModule, "SKILL_INDEX_LANGUAGE3",      c_iSkillIndex_Language3);
  166.     PyModule_AddIntConstant(poModule, "SKILL_INDEX_POLYMORPH",      c_iSkillIndex_Polymorph);
  167.     PyModule_AddIntConstant(poModule, "SKILL_INDEX_RIDING",         c_iSkillIndex_Riding);
  168.     PyModule_AddIntConstant(poModule, "SKILL_INDEX_SUMMON",         c_iSkillIndex_Summon);
  169.     //PyModule_AddIntConstant(poModule, "SKILL_INDEX_HUNTING",      c_iSkillIndex_Hunting);
  170.  
  171.     // PK Mode
  172.     PyModule_AddIntConstant(poModule, "PK_MODE_PEACE",              PK_MODE_PEACE);
  173.     PyModule_AddIntConstant(poModule, "PK_MODE_REVENGE",            PK_MODE_REVENGE);
  174.     PyModule_AddIntConstant(poModule, "PK_MODE_FREE",               PK_MODE_FREE);
  175.     PyModule_AddIntConstant(poModule, "PK_MODE_PROTECT",            PK_MODE_PROTECT);
  176.     PyModule_AddIntConstant(poModule, "PK_MODE_GUILD",              PK_MODE_GUILD);
  177.     PyModule_AddIntConstant(poModule, "PK_MODE_MAX_NUM",            PK_MODE_MAX_NUM);
  178.  
  179.     // Block Mode
  180.     PyModule_AddIntConstant(poModule, "BLOCK_EXCHANGE",             BLOCK_EXCHANGE);
  181.     PyModule_AddIntConstant(poModule, "BLOCK_PARTY",                BLOCK_PARTY_INVITE);
  182.     PyModule_AddIntConstant(poModule, "BLOCK_GUILD",                BLOCK_GUILD_INVITE);
  183.     PyModule_AddIntConstant(poModule, "BLOCK_WHISPER",              BLOCK_WHISPER);
  184.     PyModule_AddIntConstant(poModule, "BLOCK_FRIEND",               BLOCK_MESSENGER_INVITE);
  185.     PyModule_AddIntConstant(poModule, "BLOCK_PARTY_REQUEST",        BLOCK_PARTY_REQUEST);
  186.  
  187.     // Party
  188.     PyModule_AddIntConstant(poModule, "PARTY_EXP_NON_DISTRIBUTION",     PARTY_EXP_DISTRIBUTION_NON_PARITY);
  189.     PyModule_AddIntConstant(poModule, "PARTY_EXP_DISTRIBUTION_PARITY",  PARTY_EXP_DISTRIBUTION_PARITY);
  190.  
  191.     // Emotion
  192.     PyModule_AddIntConstant(poModule, "EMOTION_CLAP",           EMOTION_CLAP);
  193.     PyModule_AddIntConstant(poModule, "EMOTION_CHEERS_1",       EMOTION_CHEERS_1);
  194.     PyModule_AddIntConstant(poModule, "EMOTION_CHEERS_2",       EMOTION_CHEERS_2);
  195.     PyModule_AddIntConstant(poModule, "EMOTION_DANCE_1",        EMOTION_DANCE_1);
  196.     PyModule_AddIntConstant(poModule, "EMOTION_DANCE_2",        EMOTION_DANCE_2);
  197.     PyModule_AddIntConstant(poModule, "EMOTION_DANCE_3",        EMOTION_DANCE_3);
  198.     PyModule_AddIntConstant(poModule, "EMOTION_DANCE_4",        EMOTION_DANCE_4);
  199.     PyModule_AddIntConstant(poModule, "EMOTION_DANCE_5",        EMOTION_DANCE_5);
  200.     PyModule_AddIntConstant(poModule, "EMOTION_DANCE_6",        EMOTION_DANCE_6);               // PSY °­ł˛˝şĹ¸ŔĎ
  201.     PyModule_AddIntConstant(poModule, "EMOTION_CONGRATULATION", EMOTION_CONGRATULATION);
  202.     PyModule_AddIntConstant(poModule, "EMOTION_FORGIVE",        EMOTION_FORGIVE);
  203.     PyModule_AddIntConstant(poModule, "EMOTION_ANGRY",          EMOTION_ANGRY);
  204.     PyModule_AddIntConstant(poModule, "EMOTION_ATTRACTIVE",     EMOTION_ATTRACTIVE);
  205.     PyModule_AddIntConstant(poModule, "EMOTION_SAD",            EMOTION_SAD);
  206.     PyModule_AddIntConstant(poModule, "EMOTION_SHY",            EMOTION_SHY);
  207.     PyModule_AddIntConstant(poModule, "EMOTION_CHEERUP",        EMOTION_CHEERUP);
  208.     PyModule_AddIntConstant(poModule, "EMOTION_BANTER",         EMOTION_BANTER);
  209.     PyModule_AddIntConstant(poModule, "EMOTION_JOY",            EMOTION_JOY);
  210.  
  211.     PyModule_AddIntConstant(poModule, "EMOTION_KISS",           EMOTION_KISS);
  212.     PyModule_AddIntConstant(poModule, "EMOTION_FRENCH_KISS",    EMOTION_FRENCH_KISS);
  213.     PyModule_AddIntConstant(poModule, "EMOTION_SLAP",           EMOTION_SLAP);
  214.  
  215.     //// ŔÚµżą°ľŕ ŸŔÔ
  216.     PyModule_AddIntConstant(poModule, "AUTO_POTION_TYPE_HP",    CPythonPlayer::AUTO_POTION_TYPE_HP);
  217.     PyModule_AddIntConstant(poModule, "AUTO_POTION_TYPE_SP",    CPythonPlayer::AUTO_POTION_TYPE_SP);
  218.  
  219.     // żëČĄĽ®
  220.     PyModule_AddIntConstant(poModule, "DRAGON_SOUL_PAGE_SIZE",  c_DragonSoul_Inventory_Box_Size);
  221.     PyModule_AddIntConstant(poModule, "DRAGON_SOUL_PAGE_COUNT", DRAGON_SOUL_GRADE_MAX);
  222.     PyModule_AddIntConstant(poModule, "DRAGON_SOUL_SLOT_COUNT", c_DragonSoul_Inventory_Count);
  223.     PyModule_AddIntConstant(poModule, "DRAGON_SOUL_EQUIPMENT_SLOT_START",   c_DragonSoul_Equip_Start);
  224.     PyModule_AddIntConstant(poModule, "DRAGON_SOUL_EQUIPMENT_PAGE_COUNT",   DS_DECK_MAX_NUM);
  225.     PyModule_AddIntConstant(poModule, "DRAGON_SOUL_EQUIPMENT_FIRST_SIZE",   c_DragonSoul_Equip_Slot_Max);
  226.  
  227.     // żëČĄĽ® °ł·®Ă˘
  228.     PyModule_AddIntConstant(poModule, "DRAGON_SOUL_REFINE_CLOSE",   DS_SUB_HEADER_CLOSE);
  229.     PyModule_AddIntConstant(poModule, "DS_SUB_HEADER_DO_UPGRADE",   DS_SUB_HEADER_DO_UPGRADE);
  230.     PyModule_AddIntConstant(poModule, "DS_SUB_HEADER_DO_IMPROVEMENT",   DS_SUB_HEADER_DO_IMPROVEMENT);
  231.     PyModule_AddIntConstant(poModule, "DS_SUB_HEADER_DO_REFINE",    DS_SUB_HEADER_DO_REFINE);
  232.  
  233. }
Advertisement
Add Comment
Please, Sign In to add comment