Allow research dialog to be viewed on clients
This commit is contained in:
@@ -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) : "???");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user