Skip to content

Commit

Permalink
Fix incorrect fortification loss attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Feb 1, 2023
1 parent 1e53a0e commit d69d29b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Binary file added install/open-ig-0.95.233.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/hu/openig/model/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*/
public class Configuration {
/** The version string. */
public static final String VERSION = "0.95.232";
public static final String VERSION = "0.95.233";
/** Annotation for indicating load/save a field. */
@Retention(RetentionPolicy.RUNTIME)
@interface LoadSave { }
Expand Down
9 changes: 8 additions & 1 deletion src/hu/openig/screen/items/BattlefinishScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,14 @@ public void draw(Graphics2D g2) {
y = printStatistics(g2, y, "battlefinish.shields", lossCount(true, "Shield"), lossCount(false, "Shield"));
}
if (battle.groundwarWinner != null) {
y = printStatistics(g2, y, "battlefinish.fortifications", 0, battle.defenderFortificationLosses);
int lossOwn = 0;
int lossEnemy = 0;
if (battle.originalTargetPlanetOwner == player()) {
lossOwn = battle.defenderFortificationLosses;
} else {
lossEnemy = battle.defenderFortificationLosses;
}
y = printStatistics(g2, y, "battlefinish.fortifications", lossOwn, lossEnemy);
}
y += 20;

Expand Down
7 changes: 5 additions & 2 deletions update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<desc lang='en'>The launcher&#39;s main file</desc>
</file>
</module>
<module id='Game' version='0.95.232'>
<module id='Game' version='0.95.233'>
<general url='https://github.com/akarnokd/open-ig'>
<desc lang='hu'>
Az Open Imperium Galactica játék.
Expand All @@ -42,6 +42,9 @@
<desc lang='es'>Bugfixes</desc>
</notes>
<release-details>
<entry version='0.95.233' date='2023-02-01'>
<item category='UI' issues='1068'>Fortification losses are now correctly accounted to you or the enemy, depending on whose planet it was.</item>
</entry>
<entry version='0.95.232' date='2022-02-15'>
<item category='Balance' issues='1057'>Remove unfinished buildings when winning an Auto-Battle.</item>
<item category='Balance' issues='1057'>Unfinished buildings are no longer considered for technology capturing.</item>
Expand Down Expand Up @@ -221,7 +224,7 @@
<item category='AI'>Fixed AI unable to build a power plant if the missing energy was above the capacity of available power plant types.</item>
</entry>
</release-details>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-0.95.232.jar' sha1='82AB99802D35EB225D6883F700458FCDBAF87E77'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-0.95.233.jar' sha1='E9F8DECA0A8367C9DCAEF3C17E804F96EBD775F4'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-upgrade-20220207a2.zip' sha1='A4C922A3FC997D1EA7A5FE3FCD4660EE671A3E25'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-images-20220130a.zip' sha1='321893422AA0E9D00B745A6D9814C1391D2FFAC9'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/open-ig-splash.png' sha1='52b83dbe118575c7dd3dd6c8c41d0446c32dee45'/>
Expand Down

0 comments on commit d69d29b

Please sign in to comment.