Follow-up Comment #14, bug #24456 (project wesnoth):

A weapon special like backstab is not factored into the sidebar display
because it depends on the situation of the attack. On the other hand, charge
and swarm do not depend on who/where is attacking/being attacked, so they are
factored into the sidebar display. Other than that detail, correct, the
coloring is based on the weapon damage after considering weapon specials.

The code already accounts for every possible combination. The damage including
specials (specials__damage) is calculated, as is the damage including all
factors (damage). If damage > specials__damage then green is used. If damage <
specials__damage then red is used. If you're looking for the code, look at
attack__info in reports.cpp. (There's an underscore in the function name. I'm
not sure how to make an underscore appear in this comment, though.)

I was going to give the bug reporter more time (maybe a week to a month) to
chime in before closing this as not a bug.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?24456>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to