In 3.2.3 and last master kinetic/thermal armor do not affect the damage. #4804
kinetic/thermal armor dont work?
kinetic/thermal armor dont work?
Last edited by andrvaut on 15 Jun 2018, 12:13, edited 2 times in total.
vaut ΣΑ [GN], ru streamer.
Tournaments channel: https://www.youtube.com/channel/UCzusNa-54ydodtSz2TdHFww
Tournaments channel: https://www.youtube.com/channel/UCzusNa-54ydodtSz2TdHFww
- Berserk Cyborg
- Code contributor
- Posts: 938
- Joined: 26 Sep 2016, 19:56
Re: kinetic/thermal armor dont work!!!
That debug output is misleading for "damage" since it is not the true damage value.
combat.cpp's objDamage() function:
Probably should be moved farther into the function as something like:
Also, I would not trust the guide to be completely accurate as I don't think it reflects 3.2 or master in some areas.
combat.cpp's objDamage() function:
Code: Select all
debug(LOG_ATTACK, "objDamage(%d): body %d armour %d damage: %d", psObj->id, psObj->body, armour, damage);
if (psObj->type == OBJ_DROID)
{
DROID *psDroid = (DROID *)psObj;
// Retrieve highest, applicable, experience level
level = getDroidEffectiveLevel(psDroid);
}
// Reduce damage taken by EXP_REDUCE_DAMAGE % for each experience level
int actualDamage = (damage * (100 - EXP_REDUCE_DAMAGE * level)) / 100;
// Apply at least the minimum damage amount
actualDamage = MAX(actualDamage - armour, actualDamage * minDamage / 100);
// And at least MIN_WEAPON_DAMAGE points
actualDamage = MAX(actualDamage, MIN_WEAPON_DAMAGE);
...
Code: Select all
debug(LOG_ATTACK, "objDamage(%d): body %d armour %d damage: %d", psObj->id, psObj->body, armour, actualDamage);
Re: kinetic/thermal armor dont work!!!
Yes you are right.
Can you change the output to BASIC DAMAGES?
like http://betaguide.wz2100.net/Formulas.html
Can you change the output to BASIC DAMAGES?
like http://betaguide.wz2100.net/Formulas.html
vaut ΣΑ [GN], ru streamer.
Tournaments channel: https://www.youtube.com/channel/UCzusNa-54ydodtSz2TdHFww
Tournaments channel: https://www.youtube.com/channel/UCzusNa-54ydodtSz2TdHFww