From 2222330b438c2d74981aa4315c3f0570e40556a5 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 8 Sep 2021 11:23:37 -0400 Subject: [PATCH] Added hint for high threat level sector --- core/assets/bundles/bundle.properties | 1 + core/src/mindustry/ui/fragments/HintsFragment.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 8b4a050c05..eb7d50aa88 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -1395,6 +1395,7 @@ hint.generator = \uf879 [accent]Combustion Generators[] burn coal and transmit p hint.guardian = [accent]Guardian[] units are armored. Weak ammo such as [accent]Copper[] and [accent]Lead[] is [scarlet]not effective[].\n\nUse higher tier turrets or \uf835 [accent]Graphite[] \uf861Duo/\uf859Salvo ammunition to take Guardians down. hint.coreUpgrade = Cores can be upgraded by [accent]placing higher-tier cores over them[].\n\nPlace a  [accent]Foundation[] core over the  [accent]Shard[] core. Make sure it is free from nearby obstructions. hint.presetLaunch = Gray [accent]landing zone sectors[], such as [accent]Frozen Forest[], can be launched to from anywhere. They do not require capture of nearby territory.\n\n[accent]Numbered sectors[], such as this one, are [accent]optional[]. +hint.presetDifficulty = This sector has a [scarlet]high enemy threat level[].\nLaunching to such sectors is [accent]not recommended[] without proper technology and preparation. hint.coreIncinerate = After the core is filled to capacity with an item, any extra items of that type it receives will be [accent]incinerated[]. hint.coopCampaign = When playing the [accent]co-op campaign[], items that are produced in the current map will also be sent [accent]to your local sectors[].\n\nAny new research done by the host also carries over. diff --git a/core/src/mindustry/ui/fragments/HintsFragment.java b/core/src/mindustry/ui/fragments/HintsFragment.java index 45230f2d3a..05fc098f9d 100644 --- a/core/src/mindustry/ui/fragments/HintsFragment.java +++ b/core/src/mindustry/ui/fragments/HintsFragment.java @@ -181,6 +181,11 @@ public class HintsFragment extends Fragment{ && SectorPresets.frozenForest.unlocked() && SectorPresets.frozenForest.sector.save == null, () -> state.isCampaign() && state.getSector().preset == SectorPresets.frozenForest), + presetDifficulty(() -> state.isCampaign() + && state.getSector().preset == null + && state.getSector().threat >= 0.5f + && !SectorPresets.tarFields.sector.isCaptured(), //appear only when the player hasn't progressed much in the game yet + () -> state.isCampaign() && state.getSector().preset != null), coreIncinerate(() -> state.isCampaign() && state.rules.defaultTeam.core() != null && state.rules.defaultTeam.core().items.get(Items.copper) >= state.rules.defaultTeam.core().storageCapacity - 10, () -> false), coopCampaign(() -> net.client() && state.isCampaign() && SectorPresets.groundZero.sector.hasBase(), () -> false), ;