Page 1 of 1

Spell damage calculation

Posted: Fri Nov 04, 2022 1:21 am
by phoenix2022
Hi,
I am wondering about the spell damage calculation of the 4 offensive spells. I read through the technical documentation http://dmweb.free.fr/?q=node/690, but the (base) damage is set to 0 there with no further formulas and in the src of CSBwin_SRC_20180421-1603, in file Code11f52.cpp line 1471-1500, it seems the damage calculation is implemented, but I can't really make anything out of it, beside it doesn't seem to take values from anti-magic, distance or armor into account.
Does maybe someone know, how the calculation is done and which base damage values are being used? (or direct me to the correct techdoc)

Re: Spell damage calculation

Posted: Fri Nov 04, 2022 7:24 pm
by ChristopheF
If you can read C source code, I suggest you check my ReDMCSB source code here: viewtopic.php?t=29805
The source code is, I hope, easier to read.

Re: Spell damage calculation

Posted: Sat Nov 05, 2022 12:19 am
by phoenix2022
Okay, thanks. I thought the CSBwin source with it's strange references was the reverse engineered code I had heard of. I had stumbled on this archive before but only took a shallow look into the hierarchy, reading the documentation about Light management (which was enlightening) not expecting game code under toolchain. (I now understand it means "by toolchain"). This will take a while now to dig through it. Handsome work btw.