Bugfixes from testing session 1

This commit is contained in:
Anuken
2022-04-09 13:03:51 -04:00
parent 22332b53c2
commit 5d79ad9363
8 changed files with 35 additions and 10 deletions

View File

@@ -24,7 +24,9 @@ public class Objectives{
@Override
public String display(){
return Core.bundle.format("requirement.research", content.emoji() + " " + content.localizedName);
return Core.bundle.format("requirement.research",
(content.techNode == null || content.techNode.parent == null || content.techNode.parent.content.unlocked()) && !(content instanceof Item) ?
(content.emoji() + " " + content.localizedName) : "???");
}
}
@@ -44,7 +46,8 @@ public class Objectives{
@Override
public String display(){
return Core.bundle.format("requirement.produce", content.emoji() + " " + content.localizedName);
return Core.bundle.format("requirement.produce",
content.unlocked() ? (content.emoji() + " " + content.localizedName) : "???");
}
}