Skip to content

Commit

Permalink
Fixes Dual Output Hatch Tooltips (#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer523 authored Aug 18, 2024
1 parent 1f1f1f5 commit b869b32
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/generated/resources/assets/gtceu/lang/en_ud.json
Original file line number Diff line number Diff line change
Expand Up @@ -2952,8 +2952,6 @@
"gtceu.machine.bedrock_ore_miner.production": "pǝʞɔoןɔɹǝʌo xɟ% 'x%dɟ§ :ɹǝıןdıʇןnW uoıʇɔnpoɹԀǝ§",
"gtceu.machine.block_breaker.speed_bonus": "%d%%ɟ§ :snuoᗺ pǝǝdSǝ§",
"gtceu.machine.block_breaker.tooltip": "sdoɹp sʇı sʇɔǝןןoɔ puɐ ǝɔɐɟ ʇuoɹɟ uo ʞɔoןq sǝuıWㄥ§",
"gtceu.machine.buffer.export.tooltip": "sʞɔoןqıʇןnW ɹoɟ ʇndʇnO pınןℲ puɐ ɯǝʇI",
"gtceu.machine.buffer.import.tooltip": "sʞɔoןqıʇןnW ɹoɟ ʇnduI pınןℲ puɐ ɯǝʇI",
"gtceu.machine.buffer.tooltip": "spınןℲ puɐ sɯǝʇI ǝɹoʇs oʇ ɹǝɟɟnᗺ ןןɐɯS Ɐ",
"gtceu.machine.canner.jei_description": ")sןןǝƆ pınןℲ ɹo sʇǝʞɔnᗺ ˙b˙ǝ( ɹǝuuɐƆ pınןℲ ǝɥʇ ɥʇıʍ sɹǝuıɐʇuoɔ pınןɟ ʎuɐ ʎʇdɯǝ puɐ ןןıɟ uɐɔ noʎ",
"gtceu.machine.central_monitor.tooltip": "¿ɯooᗡ unɹ ʇı uɐɔ ʇnᗺ",
Expand Down Expand Up @@ -2997,6 +2995,8 @@
"gtceu.machine.distillation_tower.tooltip": "ʎɹǝuıɟǝᴚ pınןℲ",
"gtceu.machine.drum.disable_output": "pınןℲ uıɐɹp ʇou ןןıM",
"gtceu.machine.drum.enable_output": "sʞuɐ⟘ ʇuǝɔɐظpɐ pɹɐʍuʍop oʇ pınןℲ uıɐɹp ןןıM",
"gtceu.machine.dual_hatch.export.tooltip": "sʞɔoןqıʇןnW ɹoɟ ʇndʇnO pınןℲ puɐ ɯǝʇI",
"gtceu.machine.dual_hatch.import.tooltip": "sʞɔoןqıʇןnW ɹoɟ ʇnduI pınןℲ puɐ ɯǝʇI",
"gtceu.machine.electric_blast_furnace.tooltip": "¿ɹǝʞoɯs ɔıɹʇɔǝןǝ ǝɥʇ s,ǝɹǝɥM",
"gtceu.machine.electric_blast_furnace.tooltip.0": "˙buıʞɔoןɔɹǝʌo-ǝɹd pǝıןddɐ sı ɹǝıןdıʇןnɯ ʎbɹǝuǝ ㄥ§%%ϛ6ɟ§ ǝʌıʇɐɔıןdıʇןnɯ ɐ 'ǝɹnʇɐɹǝdɯǝʇ ǝdıɔǝɹ ǝɥʇ ǝʌoqɐ ㄥ§ʞ006ɟ§ ʎɹǝʌǝ ɹoℲ",
"gtceu.machine.electric_blast_furnace.tooltip.1": "˙)ʞɔoןɔɹǝʌo ʇɔǝɟɹǝd( ㄥ§ʇuǝıɔıɟɟǝ %%00Ɩɟ§ sǝɯoɔǝq ʞɔoןɔɹǝʌo ǝuo 'ǝɹnʇɐɹǝdɯǝʇ ǝdıɔǝɹ ǝɥʇ ǝʌoqɐ ㄥ§ʞ008Ɩɟ§ ʎɹǝʌǝ ɹoℲ",
Expand Down
4 changes: 2 additions & 2 deletions src/generated/resources/assets/gtceu/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -2952,8 +2952,6 @@
"gtceu.machine.bedrock_ore_miner.production": "§eProduction Multiplier: §f%dx, %fx overclocked",
"gtceu.machine.block_breaker.speed_bonus": "§eSpeed Bonus: §f%d%%",
"gtceu.machine.block_breaker.tooltip": "§7Mines block on front face and collects its drops",
"gtceu.machine.buffer.export.tooltip": "Item and Fluid Output for Multiblocks",
"gtceu.machine.buffer.import.tooltip": "Item and Fluid Input for Multiblocks",
"gtceu.machine.buffer.tooltip": "A Small Buffer to store Items and Fluids",
"gtceu.machine.canner.jei_description": "You can fill and empty any fluid containers with the Fluid Canner (e.g. Buckets or Fluid Cells)",
"gtceu.machine.central_monitor.tooltip": "But can it run Doom?",
Expand Down Expand Up @@ -2997,6 +2995,8 @@
"gtceu.machine.distillation_tower.tooltip": "Fluid Refinery",
"gtceu.machine.drum.disable_output": "Will not drain Fluid",
"gtceu.machine.drum.enable_output": "Will drain Fluid to downward adjacent Tanks",
"gtceu.machine.dual_hatch.export.tooltip": "Item and Fluid Output for Multiblocks",
"gtceu.machine.dual_hatch.import.tooltip": "Item and Fluid Input for Multiblocks",
"gtceu.machine.electric_blast_furnace.tooltip": "Where's the electric smoker?",
"gtceu.machine.electric_blast_furnace.tooltip.0": "For every §f900K§7 above the recipe temperature, a multiplicative §f95%%§7 energy multiplier is applied pre-overclocking.",
"gtceu.machine.electric_blast_furnace.tooltip.1": "For every §f1800K§7 above the recipe temperature, one overclock becomes §f100%% efficient§7 (perfect overclock).",
Expand Down
13 changes: 7 additions & 6 deletions src/main/java/com/gregtechceu/gtceu/common/data/GTMachines.java
Original file line number Diff line number Diff line change
Expand Up @@ -1115,14 +1115,15 @@ public static BiConsumer<ItemStack, List<Component>> createTankTooltips(String n
new PartAbility[] { PartAbility.IMPORT_ITEMS })
.overlayTieredHullRenderer("dual_hatch.import")
.tooltips(
Component.translatable("gtceu.machine.buffer.import.tooltip"),
Component.translatable("gtceu.machine.dual_hatch.import.tooltip"),
Component.translatable(
"gtceu.universal.tooltip.item_storage_capacity",
(int) Math.pow((tier - 4), 2)),
Component.translatable(
"gtceu.universal.tooltip.fluid_storage_capacity_mult",
(tier - 4),
DualHatchPartMachine.INITIAL_TANK_CAPACITY * (1L << (tier - 6))),
DualHatchPartMachine.getTankCapacity(DualHatchPartMachine.INITIAL_TANK_CAPACITY,
tier)),
Component.translatable("gtceu.universal.enabled"))
.compassNode("dual_hatch")
.register(),
Expand All @@ -1139,14 +1140,14 @@ public static BiConsumer<ItemStack, List<Component>> createTankTooltips(String n
new PartAbility[] { PartAbility.EXPORT_ITEMS })
.overlayTieredHullRenderer("dual_hatch.export")
.tooltips(
Component.translatable("gtceu.machine.buffer.export.tooltip"),
Component.translatable("gtceu.machine.dual_hatch.export.tooltip"),
Component.translatable(
"gtceu.universal.tooltip.item_storage_capacity",
(1 + Math.min(9, tier)) * (1 + Math.min(9, tier))),
(int) Math.pow((tier - 4), 2)),
Component.translatable(
"gtceu.universal.tooltip.fluid_storage_capacity_mult",
1 + Math.min(9, tier),
FluidHatchPartMachine.getTankCapacity(
(tier - 4),
DualHatchPartMachine.getTankCapacity(
DualHatchPartMachine.INITIAL_TANK_CAPACITY, tier)),
Component.translatable("gtceu.universal.enabled"))
.compassNode("dual_hatch")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public static long getTankCapacity(long initialCapacity, int tier) {
return initialCapacity * (1L << (tier - 6));
}

@Override
public int getInventorySize() {
return (int) Math.pow((getTier() - 4), 2);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,8 @@ protected static void init(RegistrateLangProvider provider) {
provider.add("gui.gtceu.rename.desc", "Rename Pattern Buffer");
provider.add("gui.gtceu.refund_all.desc", "Return Stored Contents to AE2");

provider.add("gtceu.machine.buffer.import.tooltip", "Item and Fluid Input for Multiblocks");
provider.add("gtceu.machine.buffer.export.tooltip", "Item and Fluid Output for Multiblocks");
provider.add("gtceu.machine.dual_hatch.import.tooltip", "Item and Fluid Input for Multiblocks");
provider.add("gtceu.machine.dual_hatch.export.tooltip", "Item and Fluid Output for Multiblocks");
provider.add("gtceu.machine.energy_hatch.input.tooltip", "Energy Input for Multiblocks");
provider.add("gtceu.machine.energy_hatch.input_hi_amp.tooltip",
"Multiple Ampere Energy Input for Multiblocks");
Expand Down

0 comments on commit b869b32

Please sign in to comment.