HexaVault / AD-breaketernity

MIT License
4 stars 16 forks source link

Changing Auto-Annihilation threshold causes error and doesn't work #41

Closed James103 closed 2 months ago

James103 commented 2 months ago

Describe the bug When changing the threshold for Auto-Annihilation to trigger from the Laitela celestial tab, an Implicit conversion from Decimal to number error is thrown when validating the input and the value does not update in the back end. https://github.com/HexaVault/AD-breaketernity/blob/39c59bfc56b9f67bf591b40f8fc061db69076d7b/src/components/tabs/celestial-laitela/AnnihilationButton.vue#L38

Stack trace:

06:21:54.352 Error: Implicit conversion from Decimal to number
    valueOf extensions.js:263
    handleAutoAnnihilationInputChange AnnihilationButton.vue:38
    change AnnihilationButton.vue:62
    VueJS 74
    onload game.js:1048
    EventHandlerNonNull* game.js:1045
    js app.js:30884
    __webpack_require__ app.js:35374
    fn app.js:35620
    <anonymous> merge-globals.js:9
    js app.js:30906
    __webpack_require__ app.js:35374
    fn app.js:35620
    <anonymous> main.js:7
    js app.js:30895
    __webpack_require__ app.js:35374
    __webpack_exports__ app.js:36507
    O app.js:35424
    <anonymous> app.js:36508
    <anonymous> app.js:36510
vue.runtime.esm.js:3065

To Reproduce

  1. Unlock Lai'tela
  2. Unlock Auto-Annihilation
  3. Try to change the threshold for Auto-Annihilation through the input field on the Lai'tela tab

Expected behavior The value in the autobuyer on the back end updates to match what was inputted, or the value in the front end should reset if validating the input fails.

Savefile be_41.txt