Allow research dialog to be viewed on clients

This commit is contained in:
Anuken
2024-10-14 00:11:05 -04:00
parent 5d4ece62d0
commit e262bb8254
6 changed files with 136 additions and 114 deletions

View File

@@ -19,14 +19,14 @@ public class Objectives{
@Override
public boolean complete(){
return content.unlocked();
return content.unlockedHost();
}
@Override
public String display(){
return Core.bundle.format("requirement.research",
//TODO broken for multi tech nodes.
(content.techNode == null || content.techNode.parent == null || content.techNode.parent.content.unlocked()) ?
(content.techNode == null || content.techNode.parent == null || content.techNode.parent.content.unlockedHost()) ?
(content.emoji() + " " + content.localizedName) : "???");
}
}
@@ -42,13 +42,13 @@ public class Objectives{
@Override
public boolean complete(){
return content.unlocked();
return content.unlockedHost();
}
@Override
public String display(){
return Core.bundle.format("requirement.produce",
content.unlocked() ? (content.emoji() + " " + content.localizedName) : "???");
content.unlockedHost() ? (content.emoji() + " " + content.localizedName) : "???");
}
}