This commit is contained in:
Anuken
2023-01-15 15:19:13 -05:00
parent 4a8f8c4ecf
commit 66f4118896
2 changed files with 14 additions and 0 deletions

View File

@@ -383,7 +383,12 @@ public class Logic implements ApplicationListener{
public static void researched(Content content){
if(!(content instanceof UnlockableContent u)) return;
boolean was = !u.unlockedNow();
state.rules.researched.add(u.name);
if(!was){
Events.fire(new UnlockEvent(u));
}
}
@Override

View File

@@ -177,6 +177,15 @@ public class ResearchDialog extends BaseDialog{
});
}
@Override
public Dialog show(){
if(net.client()){
ui.showInfo("@research.multiplayer");
return this;
}
return show(Core.scene);
}
void checkMargin(){
if(Core.graphics.isPortrait() && showTechSelect){
itemDisplay.marginTop(60f);