Developer's Diary
Software development, with Terry Ebdon
24-Feb-2019 Trk21 energy usage

Ship enery use in Trk21

Better logging of ship's energy changes

Energy use should be easier to determine from the log. With the log at level debug and using a filter of (fire)|(energy)|(unit), with the Atom language-log package, I can see course changes correctly modifying energy levels, but changes due to damage / enemy-fire are less obvious.

Logged as enhancement issue #8.

Ship energy level unchanged when receiving hits from the enemy fleet

Currently the player's ship will never have its energy reduced due to a hit from an enemy attack. See also enhancement issue #8. The problem is apparently due to Battle.phaserAttackFleet() passing an empty fleetAttackReporter closure to enemyFleet.attack() See this line in Battle.groovy.

energyhit

Logged as issue #9.

23-FEB-2019 👈 Top of page 👉 25-FEB-2019

© 2020 Terry Ebdon.

Find me coding on GitHub, networking on LinkedIn, answering questions on Stack Exchange and hanging out on twitter.