Core launch cost

This commit is contained in:
Anuken
2020-06-22 21:02:53 -04:00
parent 58d8e22b40
commit 7dfd20d020
8 changed files with 157 additions and 151 deletions

View File

@@ -366,7 +366,8 @@ public class HudFragment extends Fragment{
t.button("test launch", Icon.warning, () -> {
ui.planet.show(state.getSector(), ((CoreBlock)player.team().core().block).launchRange, player.team().core());
}).width(150f);
}).width(150f)
.disabled(!player.team().core().items.has(player.team().core().block.requirements)); //disable core when missing resources for launch
});
blockfrag.build(parent);