Closed sebov closed 4 years ago
The constants enpoint in v3 is missing "rarities" info but the info is available in v2.
GET https://api-v2.royaleapi.com/constants
Code: 200 [...] "rarities": [ { "name": "Common", "level_count": 13, "relative_level": 0, "mirror_relative_level": 0, "clone_relative_level": 0, "donate_capacity": 1, "sort_capacity": 1, "donate_reward": 5, "donate_xp": 1, "overflow_prestige": 1, "gold_conversion_value": 5, "max_level_donation_cost": 5, "chance_weight": 194, "balance_multiplier": 100, "upgrade_exp": [ 4, 5, 6, 10, 25, 50, 100, 200, 400, 600, 800, 1600, 0 ], "upgrade_material_count": [ 2, 4, 10, 20, 50, 100, 200, 400, 800, 1000, 2000, 5000, 0 ], "upgrade_cost": [ 5, 20, 50, 150, 400, 1000, 2000, 4000, 8000, 20000, 50000, 100000, 0 ], "power_level_multiplier": [ 110, 121, 133, 146, 160, 176, 193, 212, 233, 256, 281, 309, 339 ], "refund_gems": 2, "tid": "TID_RARITY_COMMON", "card_base_file_name": "sc/ui.sc", "big_frame_export_name": "spell_card_big", "card_base_export_name": "spell_card", "stacked_card_export_name": "spell_stack", "card_reward_export_name": "spell_card_reward", "cast_effect": "SpellCasting", "info_title_export_name": "rarity_common", "card_rarity_bg_export_name": "common_order", "sort_order": 1, "red": 153, "green": 204, "blue": 255, "appear_effect": "openChest_get_common", "buy_sound": "sound_buy_card_common", "loop_effect": "openChest_loop_common", "card_txt_bg_frame_idx": 0, "rotate_export_name": "card_rotate_common_short", "icon_swf": "sc/ui.sc", "icon_export_name": "icon_btn_card_common", "token_swf": "sc/ui_spells.sc", "token_export_name": "token_common", "token_flying_icon_swf": "sc/ui.sc", "token_flying_icon_export_name": "token_common", "token_gold_value": 250 }, { "name": "Rare", "level_count": 11, "relative_level": 2, "mirror_relative_level": 2, "clone_relative_level": 2, "donate_capacity": 10, "sort_capacity": 7, "donate_reward": 50, "donate_xp": 10, "overflow_prestige": 10, "gold_conversion_value": 50, "max_level_donation_cost": 50, "chance_weight": 10, "balance_multiplier": 130, "upgrade_exp": [ 6, 10, 25, 50, 100, 200, 400, 600, 800, 1600, 0 ], [...]
Resolved in v119, deploying now. Thanks for your report!
Idea/request:
The constants enpoint in v3 is missing "rarities" info but the info is available in v2.
Request Details:
Response Details: