Merge lp:~widelands-dev/widelands/bug-1817664-overlooping-eva_fail into lp:widelands
Proposed by
Benedikt Straub
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8995 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-1817664-overlooping-eva_fail | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
119 lines (+41/-5) 3 files modified
src/logic/map_objects/tribes/battle.cc (+19/-4) src/logic/map_objects/tribes/battle.h (+2/-0) src/logic/map_objects/tribes/soldier.cc (+20/-1) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-1817664-overlooping-eva_fail | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email:
|
Commit message
Shorten a soldier's last evade_failure animation if the soldier is about to die to prevent overlooping. The health bar falls gradually during an attack instead of one-shot.
Description of the change
During battles, the evade_failure animation may overloop. If the soldier dies immediately afterwards, this can look like he is attacking while he dies (especially noticeable with ATL vs FRI). Shorten the last eva_fail anim if the soldier is going to die.
Debugging this, I also implemented that the soldier“s health bar falls gradually while he is being attacked, instead of one-shot half a second after the attack is visually over.
To post a comment you must log in.
Continuous integration builds have changed state:
Travis build 4530. State: failed. Details: https:/ /travis- ci.org/ widelands/ widelands/ builds/ 498892692. /ci.appveyor. com/project/ widelands- dev/widelands/ build/_ widelands_ dev_widelands_ bug_1817664_ overlooping_ eva_fail- 4317.
Appveyor build 4317. State: success. Details: https:/