Implemented legacy (V5) research loading

This commit is contained in:
Anuken
2020-11-19 11:55:46 -05:00
parent bbc8c05f93
commit 7612a22480
3 changed files with 17 additions and 4 deletions

View File

@@ -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();
}
} }
} }

View File

@@ -130,6 +130,7 @@ public class SettingsMenuDialog extends SettingsDialog{
u.clearUnlock(); u.clearUnlock();
} }
}); });
settings.remove("unlocks");
}); });
}).marginLeft(4); }).marginLeft(4);

View 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!)