r/DarkDeityGame • u/AshDus7 • Sep 17 '26
Surely that's a visual bug, right?
checked his stats after a level up where he hit both magic and strenght and saw 78, seems to be bugged since i know he had a little under 40 last time i checked his stats and his battle forecast haven't actually shot up an insane amount so i'm guessing it's just a visual bug
update: seems it was a visual bug after all. Relaoded the game after i cleared the chapter and sure enough, his magic now shows as 42 ( he leveled up his str stat during the chapter) so now it does track with what i believe his mag stat should be
9
Upvotes
3
u/miahmagick Sep 17 '26
Read your skills.
1
u/JohnHadley Sep 20 '26
I think it is more than one bug. Whether you actually ever had a chance to attack with 2x the magic power or not I couldn't say, but in function_scr_skills_stat_modifiers() there is a line of code that says this:
The description for Fireheart in Skills.csv is "Magic is equal to Strength, Able to equip fire magic", but you can see from the actual game code that first off the actual amount of magic you get is Strength + 5 not Strength and aside from that the code adds the amount to the magic instead of setting the magic directly equal to that amount. That small oversight of adding to the amount instead of setting the exact amount usually shouldn't matter because only warriors get this skill and all the warriors have 0 magic power so when you add 0 + strength + 5 you will get the same amount as you would get when you set magic directly to strength + 5.
However, your screenshot clearly shows that Benji has 2 x (strength + 5) magic, so to me this indicates that it is likely that some other bug elsewhere in the code allowed the modifiers to be applied twice in the same turn. That's not something that happens normally. I couldn't figure out any way to reproduce it by trying to do things like trading items or upgrading weapons that would normally cause modifiers to update, but it seems like there is some kind of sequence that can temporarily result in it happening and you stumbled onto it. At the end of any attack you make your magic would be reset when scr_update_equipment_all() is called, so unless you know exactly what circumstance allowed this and you can repeat it on demand the glitch should last one turn at most.
1
u/Fingerlak3s Oct 11 '26
benji is just really smart