WE-Kaito / digimon-tcg-simulator

https://project-drasil.online/
123 stars 40 forks source link

Can you add language-change setting ? #174

Open gongbenhua opened 1 year ago

gongbenhua commented 1 year ago

Hi, Friends. I'm a dtcg player from China. In China there are lots of dtcg player who want to play on your simulater. But they may not familar with English like me. Can you add language-change setting so that oue chinese player can play as well. I konw a little about python and java code. If you need, I can help you a little

WE-Kaito commented 1 year ago

Thanks for your interest in this project! 😊 Unfortunately language-settings are out of scope as I merely fetch the whole card data from digimoncard.io API (plan on changing it to a similar provider, soon) and writing/maintaining an own database would be a massive load of work. However, if there was a chinese website which also provides the card library in json format with the same / similar card model, this could be an option for the future for collaborating devs to implement, when the game is feature-complete

Lantern-r commented 5 months ago

I think you can fetch the whole card data from https://api.digicamoe.com/api/cdb/cards(the api of https://app.digicamoe.cn/). For example, https://api.digicamoe.com/api/cdb/cards/EX-07/EX7-017/C, you may get the information about EX7-017

{
    "data": {
        "card_id": 7485,
        "card_pack": 173,
        "serial": "EX7-017",
        "sub_serial": "04",
        "japName": "ユキアグモン",
        "scName": "雪亚古兽",
        "rarity": "C",
        "type": "数码兽卡",
        "color": [
            "蓝"
        ],
        "level": "3",
        "cost": "3",
        "cost_1": "0",
        "evo_cond": null,
        "DP": "2000",
        "overflow": null,
        "grade": "成长期",
        "attribute": "疫苗",
        "class": [
            "恐龙型"
        ],
        "effect": "≪冰装≫(这只数码兽在与安防数码兽以外的战斗中不比较DP而是比较进化源的张数)",
        "evo_cover_effect": "【攻击时】[1回合1次]将对手的1只数码兽的最上方的1张进化源丢弃。",
        "security_effect": "-",
        "rule_text": "特征:持有类型「冰雪型(氷雪型)」。",
        "overflow_text": null,
        "include_info": null,
        "rarity$SC": "C",
        "package": {
            "pack_id": 173,
            "pack_prefix": "EX-07",
            "pack_name": "额外补充包 数码兽界放者",
            "pack_japName": "エクストラブースター デジモンリベレイター",
            "pack_enName": "",
            "language": "ja",
            "pack_releaseDate": "2024/05/31",
            "pack_remark": "",
            "pack_cover": "173.MeiERCFJmG8.jpg"
        },
        "images": [
            {
                "id": 12350,
                "card_id": 7485,
                "img_rare": "",
                "img_path": "card/7485_12350.MMeG0mLnNyV.jpg",
                "thumb_path": "",
                "data": {}
            }
        ],
        "packs": [
            {
                "card_id": 7485,
                "serial": "EX7-017",
                "scName": "雪亚古兽",
                "japName": "ユキアグモン",
                "card_pack": 173,
                "include_info": null,
                "rarity": "C",
                "rarity$SC": "C",
                "package": {
                    "pack_id": 173,
                    "pack_prefix": "EX-07",
                    "pack_name": "额外补充包 数码兽界放者",
                    "language": "ja"
                },
                "images": [
                    {
                        "id": 12350,
                        "card_id": 7485,
                        "img_rare": "",
                        "img_path": "card/7485_12350.MMeG0mLnNyV.jpg",
                        "thumb_path": "",
                        "data": {}
                    }
                ]
            }
        ],
        "decks": [],
        "faqs": []
    },
    "message": "",
    "success": true
}