Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/src/de/dakror/quarry/scenes/GameUi.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
import de.dakror.quarry.structure.producer.RollingMachine;
import de.dakror.quarry.structure.producer.SawMill;
import de.dakror.quarry.structure.producer.Stacker;
import de.dakror.quarry.structure.producer.SteamCompressor;
import de.dakror.quarry.structure.producer.TubeBender;
import de.dakror.quarry.structure.producer.WireDrawer;
import de.dakror.quarry.structure.storage.Barrel;
Expand Down Expand Up @@ -997,6 +998,7 @@ protected void initBuildMenu(Skin skin) {
buildMenuItem(wate, new OilWell(-1, 0));
buildMenuItem(wate, new Refinery(-1, 0));
buildMenuItem(wate, new DistillationColumn(-1, 0));
buildMenuItem(wate, new SteamCompressor(-1, 0));
buildMenuItem(wate, new Coker(-1, 0));

buildMenuItem(powe, new Substation(-1, 0));
Expand Down
2 changes: 2 additions & 0 deletions core/src/de/dakror/quarry/structure/base/StructureType.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
import de.dakror.quarry.structure.producer.RollingMachine;
import de.dakror.quarry.structure.producer.SawMill;
import de.dakror.quarry.structure.producer.Stacker;
import de.dakror.quarry.structure.producer.SteamCompressor;
import de.dakror.quarry.structure.producer.TubeBender;
import de.dakror.quarry.structure.producer.WireDrawer;
import de.dakror.quarry.structure.storage.Barrel;
Expand Down Expand Up @@ -175,6 +176,7 @@ public enum StructureType {
BarrelDrainer(98, BarrelDrainer.class),
ArcWelder(99, ArcWelder.class),
Coker(214, Coker.class),
SteamCompressor(216, SteamCompressor.class),
Comment on lines 175 to +179

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Steam compressor unreachable from build menu

The SteamCompressor structure is registered here but never added to the build menu (GameUi’s buildMenuItem list around lines 946–1010 still lacks a SteamCompressor entry), so players have no way to place this new producer in-game; only pre-existing saves with the structure would load it.

Useful? React with 👍 / 👎.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codex good pick-up! Fix that issue please!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Testing

  • Not run (not requested).

View task →

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codex review

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


// power management
Substation(100, Substation.class),
Expand Down
58 changes: 58 additions & 0 deletions core/src/de/dakror/quarry/structure/producer/SteamCompressor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*******************************************************************************
* Copyright 2024 Maximilian Stark | Dakror <mail@dakror.de>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/

package de.dakror.quarry.structure.producer;

import de.dakror.quarry.Const;
import de.dakror.quarry.game.Item.ItemType;
import de.dakror.quarry.game.Item.Items;
import de.dakror.quarry.game.Item.Items.Amount;
import de.dakror.quarry.game.Science.ScienceType;
import de.dakror.quarry.structure.base.Direction;
import de.dakror.quarry.structure.base.Dock;
import de.dakror.quarry.structure.base.Dock.DockFilter;
import de.dakror.quarry.structure.base.Dock.DockType;
import de.dakror.quarry.structure.base.ProducerStructure;
import de.dakror.quarry.structure.base.RecipeList;
import de.dakror.quarry.structure.base.StructureType;
import de.dakror.quarry.util.Sfx;

/**
* @author Maximilian Stark | Dakror
*/
public class SteamCompressor extends ProducerStructure {
public static final ProducerSchema classSchema = new ProducerSchema(0, StructureType.SteamCompressor, 3, 2,
"steamcompressor",
new Items(ItemType.MachineFrame, 6, ItemType.SteelIngot, 18, ItemType.CopperTube, 16, ItemType.Dynamo, 2),
new RecipeList() {
@Override
protected void init() {
add(new Recipe(3f, "pressurizedsteam", 350)
.input(new Amount(ItemType.Steam, 5000))
.output(new Amount(ItemType.PressurizedSteam, 1200)));
}
},
new Sfx("compactor" + Const.SFX_FORMAT, 0.7f),
true,
new Dock(0, 1, Direction.West, DockType.FluidIn, new DockFilter(ItemType.Steam)),
new Dock(2, 1, Direction.East, DockType.FluidOut, new DockFilter(ItemType.PressurizedSteam)),
new Dock(1, 0, Direction.South, DockType.Power))
.sciences(ScienceType.Electricity, ScienceType.HighTech);

public SteamCompressor(int x, int y) {
super(x, y, classSchema);
}
}
Loading