-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
134 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> | ||
<properties> | ||
<comment>Open Imperium Galactica Configuration</comment> | ||
<entry key="fileName">open-ig-config.xml</entry> | ||
<entry key="tileCacheBuildingLimit">10</entry> | ||
<entry key="researchMoneyPercent">1000</entry> | ||
<entry key="language">hu</entry> | ||
<entry key="videoVolume">34</entry> | ||
<entry key="showBuildingName">true</entry> | ||
<entry key="continuousMoney">false</entry> | ||
<entry key="tileCacheBaseLimit">-10</entry> | ||
<entry key="hostPorts-count">0</entry> | ||
<entry key="textCacheSize">0</entry> | ||
<entry key="intro">false</entry> | ||
<entry key="height">822</entry> | ||
<entry key="muteMusic">false</entry> | ||
<entry key="reequipTanks">true</entry> | ||
<entry key="timestep">10</entry> | ||
<entry key="scaleAllScreens">false</entry> | ||
<entry key="aiGroundAttackMixed">true</entry> | ||
<entry key="showStarmapScroll">true</entry> | ||
<entry key="maximized">false</entry> | ||
<entry key="classicControls">false</entry> | ||
<entry key="allowWeather">true</entry> | ||
<entry key="fullScreen">false</entry> | ||
<entry key="uiScale">100</entry> | ||
<entry key="hostUPnP">false</entry> | ||
<entry key="useStandardFonts">false</entry> | ||
<entry key="spacewarDiminishingAttach">true</entry> | ||
<entry key="left">390</entry> | ||
<entry key="aiAllowBuildingUpgrades">false</entry> | ||
<entry key="tileCacheSize">0</entry> | ||
<entry key="autoBuildLimit">20000</entry> | ||
<entry key="movieScale">true</entry> | ||
<entry key="currentProfile">default</entry> | ||
<entry key="joinPort">13951</entry> | ||
<entry key="autoRepair">false</entry> | ||
<entry key="musicVolume">14</entry> | ||
<entry key="satelliteDeploy">true</entry> | ||
<entry key="animateInventory">true</entry> | ||
<entry key="showStarmapMinimap">true</entry> | ||
<entry key="buttonSounds">true</entry> | ||
<entry key="autoDisplayObjectives">true</entry> | ||
<entry key="muteVideo">false</entry> | ||
<entry key="autoRepairLimit">0</entry> | ||
<entry key="showTooltips">true</entry> | ||
<entry key="disableD3D">false</entry> | ||
<entry key="joinPorts-count">0</entry> | ||
<entry key="slowOnEnemyAttack">true</entry> | ||
<entry key="showStarmapInfo">true</entry> | ||
<entry key="top">87</entry> | ||
<entry key="showStarmapLists">true</entry> | ||
<entry key="radarUnion">true</entry> | ||
<entry key="aiGroundAttackEverything">true</entry> | ||
<entry key="targetSpecificRockets">false</entry> | ||
<entry key="hostPort">13951</entry> | ||
<entry key="subtitles">true</entry> | ||
<entry key="effectVolume">100</entry> | ||
<entry key="reequipBombs">true</entry> | ||
<entry key="autoBuildEconomyFirst">true</entry> | ||
<entry key="quickRNP">true</entry> | ||
<entry key="spacewarDiminishingAttachCount">10</entry> | ||
<entry key="disableDirectDraw">false</entry> | ||
<entry key="computerVoiceScreen">true</entry> | ||
<entry key="productionHistoryLimit">10</entry> | ||
<entry key="automaticBattle">false</entry> | ||
<entry key="movieClickSkip">true</entry> | ||
<entry key="joinAddresses-count">0</entry> | ||
<entry key="dayNightCycle">true</entry> | ||
<entry key="aiAutoBuildProduction">true</entry> | ||
<entry key="computerVoiceNotify">true</entry> | ||
<entry key="aiGroundAttackGetCloser">true</entry> | ||
<entry key="swapMouseButtons">false</entry> | ||
<entry key="width">1179</entry> | ||
<entry key="ignore-count">0</entry> | ||
<entry key="disableOpenGL">false</entry> | ||
<entry key="customCursors">true</entry> | ||
<entry key="muteEffect">false</entry> | ||
</properties> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> | ||
<properties> | ||
<comment>Open Imperium Galactica Configuration</comment> | ||
<entry key="fileName">open-ig-config.xml</entry> | ||
<entry key="tileCacheBuildingLimit">10</entry> | ||
<entry key="researchMoneyPercent">1000</entry> | ||
<entry key="language">hu</entry> | ||
<entry key="videoVolume">34</entry> | ||
<entry key="showBuildingName">true</entry> | ||
<entry key="continuousMoney">false</entry> | ||
<entry key="tileCacheBaseLimit">-10</entry> | ||
<entry key="hostPorts-count">0</entry> | ||
<entry key="textCacheSize">0</entry> | ||
<entry key="intro">false</entry> | ||
<entry key="height">822</entry> | ||
<entry key="muteMusic">false</entry> | ||
<entry key="reequipTanks">true</entry> | ||
<entry key="timestep">10</entry> | ||
<entry key="scaleAllScreens">false</entry> | ||
<entry key="aiGroundAttackMixed">true</entry> | ||
<entry key="showStarmapScroll">true</entry> | ||
<entry key="maximized">false</entry> | ||
<entry key="classicControls">false</entry> | ||
<entry key="allowWeather">true</entry> | ||
<entry key="fullScreen">false</entry> | ||
<entry key="uiScale">100</entry> | ||
<entry key="hostUPnP">false</entry> | ||
<entry key="useStandardFonts">false</entry> | ||
<entry key="spacewarDiminishingAttach">true</entry> | ||
<entry key="left">143</entry> | ||
<entry key="aiAllowBuildingUpgrades">false</entry> | ||
<entry key="tileCacheSize">0</entry> | ||
<entry key="autoBuildLimit">20000</entry> | ||
<entry key="movieScale">true</entry> | ||
<entry key="currentProfile">default</entry> | ||
<entry key="joinPort">13951</entry> | ||
<entry key="autoRepair">true</entry> | ||
<entry key="musicVolume">14</entry> | ||
<entry key="satelliteDeploy">true</entry> | ||
<entry key="animateInventory">true</entry> | ||
<entry key="showStarmapMinimap">true</entry> | ||
<entry key="buttonSounds">true</entry> | ||
<entry key="autoDisplayObjectives">true</entry> | ||
<entry key="muteVideo">false</entry> | ||
<entry key="autoRepairLimit">0</entry> | ||
<entry key="showTooltips">true</entry> | ||
<entry key="disableD3D">false</entry> | ||
<entry key="joinPorts-count">0</entry> | ||
<entry key="slowOnEnemyAttack">true</entry> | ||
<entry key="showStarmapInfo">true</entry> | ||
<entry key="top">2</entry> | ||
<entry key="showStarmapLists">true</entry> | ||
<entry key="radarUnion">true</entry> | ||
<entry key="aiGroundAttackEverything">true</entry> | ||
<entry key="targetSpecificRockets">false</entry> | ||
<entry key="hostPort">13951</entry> | ||
<entry key="subtitles">true</entry> | ||
<entry key="effectVolume">100</entry> | ||
<entry key="reequipBombs">true</entry> | ||
<entry key="autoBuildEconomyFirst">true</entry> | ||
<entry key="quickRNP">true</entry> | ||
<entry key="spacewarDiminishingAttachCount">10</entry> | ||
<entry key="disableDirectDraw">false</entry> | ||
<entry key="computerVoiceScreen">true</entry> | ||
<entry key="productionHistoryLimit">10</entry> | ||
<entry key="automaticBattle">false</entry> | ||
<entry key="movieClickSkip">true</entry> | ||
<entry key="joinAddresses-count">0</entry> | ||
<entry key="dayNightCycle">true</entry> | ||
<entry key="aiAutoBuildProduction">true</entry> | ||
<entry key="computerVoiceNotify">true</entry> | ||
<entry key="aiGroundAttackGetCloser">true</entry> | ||
<entry key="swapMouseButtons">false</entry> | ||
<entry key="width">1179</entry> | ||
<entry key="ignore-count">0</entry> | ||
<entry key="disableOpenGL">false</entry> | ||
<entry key="customCursors">true</entry> | ||
<entry key="muteEffect">false</entry> | ||
</properties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright 2008-present, David Karnok & Contributors | ||
* The file is part of the Open Imperium Galactica project. | ||
* | ||
* The code should be distributed under the LGPL license. | ||
* See http://www.gnu.org/licenses/lgpl.html for details. | ||
*/ | ||
|
||
package hu.openig.scripting.missions; | ||
|
||
/** | ||
* Tracks the player's lost battles during ranks 1 and 2 and triggers game over if too many were lost. | ||
* @author akarnokd, Dec 11, 2023 | ||
*/ | ||
public class Mission27 extends Mission { | ||
|
||
@Override | ||
public boolean applicable() { | ||
return world.level <= 2; | ||
} | ||
|
||
@Override | ||
public void onTime() { | ||
if (player.statistics.spaceLoses.value + player.statistics.groundLoses.value >= 4) { | ||
if (!hasTimeout("Mission-27-Fire")) { | ||
addTimeout("Mission-27-Fire", 13000); | ||
} | ||
} | ||
if (checkTimeout("Mission-27-Fire")) { | ||
gameover(); | ||
loseGameMessageAndMovie("Douglas-Fire-Battle", | ||
world.level == 1 ? "lose/fired_level_1" : "lose/fired_level_2"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters