Grasscutters / Grasscutter

A server software reimplementation for a certain anime game.
https://grasscutter.io/
GNU Affero General Public License v3.0
16.23k stars 4.48k forks source link

[Bug] Wish primogems convert #2450

Open ultard opened 10 months ago

ultard commented 10 months ago

Did you look for other closed issues that have the same problem?

yes

Describe the bug

Modal covert menu dont show up when i try to get wishes. Console nothing shows

Which branch did you use?

Grasscutter version: 1.7.3 Git Hash: 564b60902

Screenshots

https://github.com/Grasscutters/Grasscutter/assets/63789651/f4403a14-80c0-4c63-a26a-35b41264e861

Additional context

ShadowfeindX commented 10 months ago

Do you have the fates defined in your Shop.json?

ultard commented 10 months ago

Do you have the fates defined in your Shop.json?

I don't know, I have default values.

image

ShadowfeindX commented 10 months ago

You should add this to your shop.json if you want to buy fates with primogems as normal

{
    "shopId": 1001,
    "items": [
        {
          "goodsId": 102001,
          "goodsItem": {
            "id": 223,
            "count": 1
          },
          "costItemList": [],
          "minLevel": 4,
          "maxLevel": 99,
          "hcoin": 160,
          "secondarySheetId": 1,
          "refreshType": "SHOP_REFRESH_MONTHLY",
          "shopRefreshParam": 1
        },
        {
          "goodsId": 102002,
          "goodsItem": {
            "id": 224,
            "count": 1
          },
          "costItemList": [],
          "minLevel": 4,
          "maxLevel": 99,
          "hcoin": 160,
          "secondarySheetId": 1,
          "refreshType": "SHOP_REFRESH_MONTHLY",
          "shopRefreshParam": 1
        }
    ]
}

If you want a more fully featured shop experience for most of the in-game shops, I would recommend replacing the contents of your Shop.json with the ShopGoodsExcelConfigData.json from the grasscutter resources folder. You can see more about that in this issue here -> #2383