Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Okay, so my Duelist died from a health overflow, I guess... lol

I don't know what is the maximum number it can reach, but I have 10x Dancer traits, all with 2x attack (except the 0/2 basic one), and the Duelist died in the first attack cycle. It started with 223 health and I don't think the Dancers attacks were over when it died.

I kept playing and reached depth 500. Decided to end the run there because I was essentially infinite and also the lag was quite bad.

Tried to rebuild a Duelist to see if the big health was the issue, but one with 144 base health that attacked 24 times also died due to the overflow or whatever. I noticed that when you start seeing decimals (above E+07) then the operations are not quite correct. 15 attack transforms into 20 health, then into 23 attack, 32 health... I'm guessing that is the same problem that makes the Duelist die sometimes (sometimes it dies and then the next combat it gets +2 health and then doesn't die for a while).

Hmmm...The limit should be the usual 2,147,483,647. I guess I can implement a protection against it (never thought someone will hit it!)

I'm not sure if the lag has something to do with dancer, dragoon, or just having too many traits & buffs in the game. With how the game is coded, everytime a status (including an instance of +stats) is added, it'll check all other status on that follower to see if something special is happening. So with a dancer duelist setup, the duelist will end up with A LOT of status on them and will make sbsequence attacks talking exponentially more processing power. I don't know if you are playing on browser or standalone, but I think standalone should be able to mitigate this lag way better.

I can't think of a reason for why duelist will not work as intended with large numbers or why it'll randomly die without overflow tho. I'll try the setup myself later.

Got a chance to run the same build in standalone and you were right, lag was only happening in browser version (which is understandable).
I'll confirm if Duelist keeps dying in standalone when I reach that number of Dancers, but yeah, once you get it going and can clear fights without risk of dying and putting Dragoon traits on everyone, then you can make 10x Dancers that attack twice and a Duelist that attacks twice and gains double stats to reach the cap on the first attack cycle of each fight.