HelheimLabs / autochessia

Fully on-chain auto chess, built with MUD
https://dev.autochessia.xyz
GNU Affero General Public License v3.0
21 stars 14 forks source link

fix: buy hero index #65

Closed noyyyy closed 1 year ago

noyyyy commented 1 year ago

@aLIEzsss4

Break change:

  1. creatureId start from 1, rather than 0. 0 means the slot is null. Former jugg is creatureId 0, and now jugg is creatureId 8.

Feat:

  1. new function placeBackInventoryAndSwap to move hero from board to a specfic inventory slot. placeBackInventory is not deleted, for backward compatible.
  2. add inventoryEmptyIds to Player table. It gives default value if index of inventory is not provided.

Config change:

  1. the shop only refresh tier 1 hero only. Probability raffle function is not delete as it can be used for later hero rarity raffle.

Chore:

  1. move surrender as a independent system, in case of too large contract
  2. merge work properly as popInventoryByIndex is modified.
github-actions[bot] commented 1 year ago

Deploy preview for vercel-autochessia ready!

✅ Preview https://vercel-autochessia-libi68liz-aliez.vercel.app

Built with commit 6b9c4a2496f1657a9cce40dde3060dde5623f294. This pull request is being automatically deployed with vercel-action