Skip to content

Commit

Permalink
misc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SJuliez committed Jun 13, 2024
1 parent 87888c1 commit 9b6e7cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion megamek/data/images/hexes/hq_saxarba.tileset
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ base 8 "" "lunar" "saxarba/theme_lunar/base_lunar_8.png;saxarba/theme_lunar/base
base 9 "" "lunar" "saxarba/theme_lunar/base_lunar_9.png;saxarba/theme_lunar/base_lunar_9b.png;saxarba/theme_lunar/base_lunar_9c.png;saxarba/theme_lunar/base_lunar_9d.png;saxarba/theme_lunar/base_lunar_9e.png;saxarba/theme_lunar/base_lunar_9f.png"
base 10 "" "lunar" "saxarba/theme_lunar/base_lunar_10.png;saxarba/theme_lunar/base_lunar_10b.png;saxarba/theme_lunar/base_lunar_10c.png;saxarba/theme_lunar/base_lunar_10d.png;saxarba/theme_lunar/base_lunar_10e.png;saxarba/theme_lunar/base_lunar_10f.png"


base * "sky:1" "" "atmospheric_map/sky.png"

# To avoid errors
super * "fluff:*" "" "saxarba/misc/blank.png"
Expand Down
6 changes: 3 additions & 3 deletions megamek/data/scenarios/Examples/ExampleV2.mms
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ map:
file: AGoAC Maps/16x17 Grassland 2.board

# surprise board from the given boards; require board nodes (file:)
# can modify individual or all
# can modify individually and total
map:
surprise:
- file: AGoAC Maps/16x17 Grassland 2.board
modify: rotate
- file: AGoAC Maps/16x17 Grassland 2.board
- file: AGoAC Maps/16x17 Grassland 2.board
- file: AGoAC Maps/16x17 Grassland 3.board
- file: AGoAC Maps/16x17 Grassland 4.board
modify: rotate

# add modifiers to a single board
Expand Down
5 changes: 1 addition & 4 deletions megamek/src/megamek/common/scenario/ScenarioV2.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public class ScenarioV2 implements Scenario {
private static final String DEPLOY = "deploy";
private static final String MAP = "map";
private static final String MAPS = "maps";
private static final String COLUMNS = "columns";
private static final String ROWS = "rows";
private static final String UNITS = "units";

private final JsonNode node;
Expand Down Expand Up @@ -157,8 +155,6 @@ private IGame selectGameType() {
return new ASGame();
case SBF:
return new SBFGame();
// case GAMETYPE_BF:
// return new BFGame();
default:
return new Game();
}
Expand Down Expand Up @@ -250,6 +246,7 @@ private Board createBoard() throws ScenarioLoaderException {
mapNode = node.get(MAPS);
}

//TODO: currently, the first parsed board is used
return BoardDeserializer.parse(mapNode, scenarioDirectory()).get(0);
}

Expand Down

0 comments on commit 9b6e7cb

Please sign in to comment.