fix: handle multiple syndicate title increases at once #2139

Merged
Sainan merged 1 commits from multi-rankup into main 2025-06-10 05:49:44 -07:00
Owner

Only really possible with nightwave afaik. Bug reported via #2138.

Only really possible with nightwave afaik. Bug reported via #2138.
Sainan added 1 commit 2025-06-09 10:55:35 -07:00
fix: handle multiple syndicate title increases at once
All checks were successful
Build / build (pull_request) Successful in 47s
Build / build (push) Successful in 2m6s
2c1ceba394
Only really possible with nightwave afaik
Sainan merged commit 1979b20f8c into main 2025-06-10 05:49:44 -07:00
Sainan deleted branch multi-rankup 2025-06-10 05:49:44 -07:00
Contributor

this impl broke SyndicateSacrifice initialze (from lv0 to lv0) (such as Cephalon Simaris)

if (levelIncrease < 1) { // <== should just let no lv up / only raise error when < 0
        throw new Error(`syndicate sacrifice needs an increase of at least 1`);
    }

and never handle initialize reward

 for (let level = oldLevel + 1; level <= data.SacrificeLevel; ++level) {  // <== level will be at least 1
        let sacrifice: ISyndicateSacrifice | undefined;
        if (level == 0) { // <== ???
this impl broke SyndicateSacrifice initialze (from lv0 to lv0) (such as Cephalon Simaris) ``` if (levelIncrease < 1) { // <== should just let no lv up / only raise error when < 0 throw new Error(`syndicate sacrifice needs an increase of at least 1`); } ``` and never handle initialize reward ``` for (let level = oldLevel + 1; level <= data.SacrificeLevel; ++level) { // <== level will be at least 1 let sacrifice: ISyndicateSacrifice | undefined; if (level == 0) { // <== ??? ```
Sign in to join this conversation.
No description provided.