Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Nov 22, 2024
2 parents ded7bee + 7f32fda commit 47193f8
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 9 deletions.
5 changes: 4 additions & 1 deletion assets/bundles/bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ settings.omaloon-clearcampaignsaves-confirm = Are you sure you want to erase you
requirement.omaloon-at-wave = Reach Wave {0} in {1}

## Hints
hint.omaloon-drill = The lower the pressure, the faster the drills will work. But be careful not to cause implosion.
hint.omaloon-pump_positive = To create higher pressure, place \uC353[accent] mechanical pumps[] in series, adding liquid pipes between them.\nTo increase pressure faster, place \uC353[accent] mechanical pumps[] in parallel.
hint.omaloon-pump_negative = To decrease pressure faster, add more \uC353[accent]mechanical pumps[].
hint.omaloon-drill_positive_pressure = \uC351 [accent]Hammer drills[] require negative pressure to operate. Rotate the \uC353[accent] mechanical pumps[] away from the drills to create negative pressure.
hint.omaloon-press_or_shelter_negative_pressure = Some buildings require positive pressure. Rotate the \uC353[accent] mechanical pumps[] to these blocks to create positive pressure.
hint.omaloon-pump = The pumps only stop when there is a block in front of it or the front block has enough pressure.
hint.omaloon-low_pressure = Buildings will implode when it reaches -50 pressure units. To avoid this, use \uC354 [accent]Liquid Valve[], which will reduce the pressure, preventing it from reaching dangerous levels.
hint.omaloon-valve = One valve can handle up to three pumps. If you have more pumps, place more valves to avoid jamming.
Expand Down
11 changes: 7 additions & 4 deletions assets/bundles/bundle_uk_UA.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ settings.omaloon-clearcampaignsaves-confirm = Ви справді хочете
requirement.omaloon-at-wave = Пройдіть хвилю {0} на {1}

## Hints
hint.omaloon-drill = Що нижче тиск, то швидше працюватимуть бури. Але будьте обережні, щоб не спричинити імплозії.
hint.omaloon-pump_positive = Для створення вищого тиску розташуйте \uC353[accent] механічні насоси[] послідовно, додаючи між ними рідинні труби.\nА для швидшого підвищення тиску розташуйте \uC353[accent] механічні насоси[] паралельно.
hint.omaloon-pump_negative = Для швидшого зменшення тиску додайте більше \uC353[accent] механічних насосів[].
hint.omaloon-drill_positive_pressure = \uC351 [accent]Ударний бур[] потребує негативного тиску для роботи. Розвертайте \uC353[accent] механічні насоси[] від бурів, щоб створювати негативний тиск.
hint.omaloon.press_or_shelter_negative_pressure = Деякі будівлі потребують позитивного тиску. Розвертайте \uC353[accent] механічні насоси[] до таких блоків, щоб створювати позитивний тиск.
hint.omaloon-pump = Насоси зупиняються лише тоді, коли перед ними стоїть блок або у якщо блоці спереду достатньо тиску.
hint.omaloon-low_pressure = Будівлі зазнають імплозії, якщо тиск досягне -50 одиниць. Щоб уникнути цього, використовуйте \uC354 [accent]Рідинний клапан[], який зменшуватиме тиск і запобігатиме досягненню небезпечного рівня.
hint.omaloon-valve = Один клапан може впоратися одночасно з трьома насосами. Якщо у вас більше насосів, встановіть більше клапанів, щоб уникнути заклинювання клапана.
Expand All @@ -75,7 +78,7 @@ tc.distributor-error1=\
\nвін не приймає предметів.

tc.distributor-error2=\
У цьому випадку, це\
У цьому випадку, цей\
\n\uC351[accent] ударний бур[] не\
\nмає куди викидати предмети.

Expand All @@ -84,8 +87,8 @@ tc.distributor-error3=\
\n\uC352 [accent]трубковий розподільник[].

tc.pump=\
Дослідіть та розмістіть \uC353[accent] рідинний насос[]\
\nу напрямку від ударного бура.\
Дослідіть та розмістіть \uC353[accent] механічний насос[]\
\nрозвернутим від ударного бура.\
\nТак ви будете викачувати повітря з усіх суміжніх\
\nбурів, змушуючи їх видобувати.

Expand Down
4 changes: 3 additions & 1 deletion assets/bundles/bundle_zh_CN.properties
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ settings.omaloon-clearcampaignsaves-confirm = 确定清除 Omaloon 的战役存
requirement.omaloon-at-wave = {1} 内 达到第 {0} 波次

## Hints
hint.omaloon-drill = 压力越低,钻头工作速度越快。但要小心不要引起内爆。
hint.omaloon-pump_positive = To create higher pressure, place \uC353[accent] mechanical pumps[] in series, adding liquid pipes between them.\nTo increase pressure faster, place \uC353[accent] mechanical pumps[] in parallel.
hint.omaloon-pump_negative = To decrease pressure faster, add more \uC353[accent]mechanical pumps[].
hint.omaloon-drill_positive_pressure = \uC351 [accent]Hammer drills[] require negative pressure to operate. Rotate the \uC353[accent] mechanical pumps[] away from the drills to create negative pressure.
hint.omaloon-pump = 仅当前方出现堵塞或前方堵塞具有足够压力时,泵才会停止。
hint.omaloon-low_pressure = 当压力达到 -50 大气压时,会引起建筑的内爆。为了避免这种情况,请使用 \uC354 [accent]流体阀门[],它可以降低压力,防止压力达到危险阈值。
hint.omaloon-valve = 一个流体阀门最多可控制三个泵。如果您有更多泵,请放置更多阀门以避免堵塞。
Expand Down
Binary file modified assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/maps/dead_valley.msav
Binary file not shown.
Binary file modified assets/maps/redeployment_path.msav
Binary file not shown.
Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 41 additions & 3 deletions src/omaloon/ui/dialogs/EventHints.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,50 @@
import arc.util.*;
import mindustry.*;
import mindustry.ui.fragments.HintsFragment.*;
import mindustry.world.consumers.*;
import omaloon.content.blocks.*;
import omaloon.world.consumers.*;
import omaloon.world.interfaces.*;

public enum EventHints implements Hint {
drill(
drill_positive_pressure(
() -> false,
() -> Vars.state.teams.get(Vars.state.rules.defaultTeam).getBuildings(OlProductionBlocks.hammerDrill).find(b -> ((HasPressure) b).getPressure() < 10f) != null
() -> Vars.state.teams.get(Vars.state.rules.defaultTeam).getBuildings(OlProductionBlocks.hammerDrill).find(b -> ((HasPressure) b).getPressure() > 0f) != null
),
press_or_shelter_negative_pressure(
() -> false,
() -> Vars.state.teams.get(Vars.state.rules.defaultTeam).getBuildings(OlCraftingBlocks.carborundumPress).find(b -> ((HasPressure) b).getPressure() < 0f) != null
|| Vars.state.teams.get(Vars.state.rules.defaultTeam).getBuildings(OlDefenceBlocks.smallShelter).find(b -> ((HasPressure) b).getPressure() < 0f) != null
),
pump_positive(
() -> false,
() -> Vars.state.teams.get(Vars.state.rules.defaultTeam).buildings.contains(
b -> {
if (b instanceof HasPressure pressureBuilding) {
for (Consume consumer : b.block().consumers) {
if (consumer instanceof PressureEfficiencyRange rangeConsumer) {
return pressureBuilding.getPressure() > 0 && rangeConsumer.shouldConsume(pressureBuilding);
}
}
}
return false;
}
)
),
pump_negative(
() -> false,
() -> Vars.state.teams.get(Vars.state.rules.defaultTeam).buildings.contains(
b -> {
if (b instanceof HasPressure pressureBuilding) {
for (Consume consumer : b.block().consumers) {
if (consumer instanceof PressureEfficiencyRange rangeConsumer) {
return pressureBuilding.getPressure() < 0 && rangeConsumer.shouldConsume(pressureBuilding);
}
}
}
return false;
}
)
),
pump(
() -> false,
Expand All @@ -25,7 +62,8 @@ public enum EventHints implements Hint {
),
low_pressure(
() -> !Vars.state.teams.get(Vars.state.rules.defaultTeam).getBuildings(OlDistributionBlocks.liquidValve).isEmpty(),
() -> Vars.state.teams.get(Vars.state.rules.defaultTeam).buildings.contains(b -> b instanceof HasPressure pressure && pressure.getPressure() < 0)
() -> Vars.state.teams.get(Vars.state.rules.defaultTeam).buildings.contains(
b -> b instanceof HasPressure pressure && pressure.getPressure() < 0)
);

final Boolp complete;
Expand Down

0 comments on commit 47193f8

Please sign in to comment.