Implemented legacy (V5) research loading
This commit is contained in:
@@ -27,6 +27,13 @@ public class Universe{
|
|||||||
public Universe(){
|
public Universe(){
|
||||||
load();
|
load();
|
||||||
|
|
||||||
|
//load legacy research
|
||||||
|
Events.on(ClientLoadEvent.class, e -> {
|
||||||
|
if(Core.settings.has("unlocks")){
|
||||||
|
LegacyIO.readResearch();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
//update base coverage on capture
|
//update base coverage on capture
|
||||||
Events.on(SectorCaptureEvent.class, e -> {
|
Events.on(SectorCaptureEvent.class, e -> {
|
||||||
if(state.isCampaign()){
|
if(state.isCampaign()){
|
||||||
@@ -273,10 +280,6 @@ public class Universe{
|
|||||||
private void load(){
|
private void load(){
|
||||||
seconds = Core.settings.getInt("utimei");
|
seconds = Core.settings.getInt("utimei");
|
||||||
turn = Core.settings.getInt("turn");
|
turn = Core.settings.getInt("turn");
|
||||||
|
|
||||||
if(Core.settings.has("unlocks")){
|
|
||||||
LegacyIO.readResearch();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -130,6 +130,7 @@ public class SettingsMenuDialog extends SettingsDialog{
|
|||||||
u.clearUnlock();
|
u.clearUnlock();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
settings.remove("unlocks");
|
||||||
});
|
});
|
||||||
}).marginLeft(4);
|
}).marginLeft(4);
|
||||||
|
|
||||||
|
|||||||
9
fastlane/metadata/android/en-US/changelogs/29716.txt
Normal file
9
fastlane/metadata/android/en-US/changelogs/29716.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Yes, it's another one. Get ready for more rapid-fire releases.
|
||||||
|
|
||||||
|
- Fixed sound not working [Android]
|
||||||
|
- Fixed sound being muffled at start of game
|
||||||
|
- Fixed continuous lasers setting shooters on fire
|
||||||
|
- Fixed deconstruction area not being queued [Mobile]
|
||||||
|
- Limited logic symbols to 40 characters
|
||||||
|
- Added "Launching From" info to sector launch dialog
|
||||||
|
- Added final campaign sector (untested!)
|
||||||
Reference in New Issue
Block a user