Core launch cost
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user