Skip to content

Commit

Permalink
fix missing rocket tier and proxima b labels (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoiron authored Jul 3, 2024
1 parent 2e02955 commit 1a83bb8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/generated/resources/assets/gcyr/lang/en_ud.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"level.gcyr.mars": "sɹɐW",
"level.gcyr.mercury": "ʎɹnɔɹǝW",
"level.gcyr.moon": "uooW",
"level.gcyr.proxima_centauri_b": "q ɐɯıxoɹԀ",
"level.gcyr.venus": "snuǝΛ",
"level.overworld": "ɥʇɹɐƎ",
"material.gcyr.bis_trichloromethyl_benzene": "ǝuǝzuǝq)ןʎɥʇǝɯoɹoןɥɔıɹʇ(sıᗺ",
Expand Down Expand Up @@ -150,6 +151,7 @@
"menu.gcyr.provided": "pǝpıʌoɹԀ",
"menu.gcyr.rocket.thrust": "s/ɯ %s :ʇsnɹɥ⟘",
"menu.gcyr.rocket.unbuild": "ᗡꞀI∩ᗺN∩",
"menu.gcyr.rocket_tier": "ʇǝʞɔoᴚ %d ɹǝı⟘",
"menu.gcyr.save_destination_station": "pɹɐɔʎǝʞ oʇ ᗡI uoıʇɐʇS ǝɔɐdS ǝʌɐS",
"menu.gcyr.solar_system": "ɯǝʇsʎS ɹɐןoS",
"menu.gcyr.space_station": "uoıʇɐʇS ǝɔɐdS",
Expand Down
2 changes: 2 additions & 0 deletions src/generated/resources/assets/gcyr/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"level.gcyr.mars": "Mars",
"level.gcyr.mercury": "Mercury",
"level.gcyr.moon": "Moon",
"level.gcyr.proxima_centauri_b": "Proxima b",
"level.gcyr.venus": "Venus",
"level.overworld": "Earth",
"material.gcyr.bis_trichloromethyl_benzene": "Bis(trichloromethyl)benzene",
Expand Down Expand Up @@ -150,6 +151,7 @@
"menu.gcyr.provided": "Provided",
"menu.gcyr.rocket.thrust": "Thrust: %s m/s",
"menu.gcyr.rocket.unbuild": "UNBUILD",
"menu.gcyr.rocket_tier": "Tier %d Rocket",
"menu.gcyr.save_destination_station": "Save Space Station ID to keycard",
"menu.gcyr.solar_system": "Solar System",
"menu.gcyr.space_station": "Space Station",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public List<FormattedCharSequence> renderButtonTooltip(Planet planetInfo, Toolti
}
case CATEGORY -> {
textEntries.add(CATEGORY_TEXT.copy().withStyle(ChatFormatting.BLUE).append(": ").append(button.getMessage().copy().withStyle(ChatFormatting.GREEN)));
textEntries.add(PROVIDED_TEXT.copy().withStyle(ChatFormatting.BLUE).append(": ").append(Component.translatable("item.gcyr.tier_" + planetInfo.rocketTier() + "_rocket").withStyle(ChatFormatting.AQUA)));
textEntries.add(PROVIDED_TEXT.copy().withStyle(ChatFormatting.BLUE).append(": ").append(Component.translatable("menu.gcyr.rocket_tier", planetInfo.rocketTier()).withStyle(ChatFormatting.AQUA)));
}
case PLANET -> {
textEntries.add(TYPE_TEXT.copy().withStyle(ChatFormatting.BLUE).append(": ").append((planetInfo.parentWorld() == null ? PlanetSelectionScreen.PLANET_TEXT : PlanetSelectionScreen.MOON_TEXT).copy().withStyle(ChatFormatting.AQUA)));
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/argent_matter/gcyr/data/lang/LangHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public static void init(RegistrateLangProvider provider) {
provider.add("menu.gcyr.temperature", "Temperature");
provider.add("menu.gcyr.oxygen.true", "Has oxygen");
provider.add("menu.gcyr.oxygen.false", "Doesn't have oxygen");
provider.add("menu.gcyr.rocket_tier", "Tier %d Rocket");

// messages
provider.add("message.gcyr.no_fuel", "The rocket must be fueled fully. Has %s mB fuel, destination requires %s mB.");
Expand All @@ -106,6 +107,7 @@ public static void init(RegistrateLangProvider provider) {
provider.add("level.gcyr.mercury", "Mercury");
provider.add("level.gcyr.venus", "Venus");
provider.add("level.gcyr.mars", "Mars");
provider.add("level.gcyr.proxima_centauri_b", "Proxima b");

}
}

0 comments on commit 1a83bb8

Please sign in to comment.