diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 031bb4a..bab1818 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,10 +25,7 @@ jobs: run: sudo apt update; sudo apt install zip npm - name: Compile - run: npm install; npm run build - - - name: Create archive - run: zip -q -r els-tweaks.ccmod assets dist ccmod.json package.json + run: npm install; npm run make-ccmod - name: Get version id: get_version diff --git a/ccmod.json b/ccmod.json index 12c4bf5..576f87a 100644 --- a/ccmod.json +++ b/ccmod.json @@ -1,6 +1,6 @@ { "id": "el-tweaks", - "version": "0.7.0", + "version": "0.7.1", "title": "EL's Tweaks", "description": "A coremod full of useful functionality for modders, as well as many tweaks for players.", diff --git a/package.json b/package.json index f9f410d..38a8c4d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "el-tweaks", "displayName": "EL's Tweaks", - "version": "0.7.0", + "version": "0.7.1", "description": "A coremod full of useful functionality for modders, as well as many tweaks for players.", "plugin": "./dist/plugin.js", @@ -15,6 +15,6 @@ "scripts": { "build": "tsc --build", "watch": "tsc --watch", - "make-ccmod": "tsc -b && zip -qr el-tweaks.ccmod ccmod.json package.json dist assets" + "make-ccmod": "tsc -b && zip -qr els-tweaks.ccmod ccmod.json package.json dist assets" } } \ No newline at end of file diff --git a/src/prestart/game/shop.ts b/src/prestart/game/shop.ts index df2c5d3..1a25b04 100644 --- a/src/prestart/game/shop.ts +++ b/src/prestart/game/shop.ts @@ -171,7 +171,7 @@ sc.ShopListMenu.inject({ itemEquipLevel = 0; item.type === sc.ITEMS_TYPES.EQUIP && (itemEquipLevel = item.level || 1); - itemCost = Math.floor(b[k].price || (item.cost / (sc.menu.shopSellMode ? 2 : 1))); + itemCost = Math.floor(b[k].price || ((sc.menu.shopCoinMode ? item.coins! : item.cost) / (sc.menu.shopSellMode ? 2 : 1))); itemQuantity = sc.menu.getItemQuantity(itemID, itemCost); itemName = "\\i[" + (item.icon + sc.inventory.getRaritySuffix(item.rarity || 0) || "item-default") + "]" + ig.LangLabel.getText(item.name); itemDesc = ig.LangLabel.getText(item.description);