Skip to content

Commit

Permalink
fix light case. fix heavy templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kuronekochomusuke committed Feb 24, 2024
1 parent b3c5705 commit 4116c0e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 47 deletions.
5 changes: 3 additions & 2 deletions MekHQ/data/scenariotemplates/Allied Facility - Heavy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
<isAlliedFacility>true</isAlliedFacility>
<mapParameters>
<allowedTerrainTypes>
<allowedTerrainType>3</allowedTerrainType>
<allowedTerrainType>6</allowedTerrainType>
<allowedTerrainType>ColdFacility</allowedTerrainType>
<allowedTerrainType>HotFacility</allowedTerrainType>
<allowedTerrainType>TemperateFacility</allowedTerrainType>
</allowedTerrainTypes>
<allowRotation>false</allowRotation>
<baseHeight>0</baseHeight>
Expand Down
5 changes: 3 additions & 2 deletions MekHQ/data/scenariotemplates/Hostile Facility - Heavy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
<isHostileFacility>true</isHostileFacility>
<mapParameters>
<allowedTerrainTypes>
<allowedTerrainType>3</allowedTerrainType>
<allowedTerrainType>6</allowedTerrainType>
<allowedTerrainType>ColdFacility</allowedTerrainType>
<allowedTerrainType>HotFacility</allowedTerrainType>
<allowedTerrainType>TemperateFacility</allowedTerrainType>
</allowedTerrainTypes>
<allowRotation>false</allowRotation>
<baseHeight>0</baseHeight>
Expand Down
5 changes: 3 additions & 2 deletions MekHQ/data/scenariotemplates/Irregular Forces - Heavy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
<isAlliedFacility>false</isAlliedFacility>
<mapParameters>
<allowedTerrainTypes>
<allowedTerrainType>3</allowedTerrainType>
<allowedTerrainType>6</allowedTerrainType>
<allowedTerrainType>ColdUrban</allowedTerrainType>
<allowedTerrainType>HotUrban</allowedTerrainType>
<allowedTerrainType>Urban</allowedTerrainType>
</allowedTerrainTypes>
<allowRotation>false</allowRotation>
<baseHeight>0</baseHeight>
Expand Down
71 changes: 30 additions & 41 deletions MekHQ/src/mekhq/campaign/mission/AtBScenario.java
Original file line number Diff line number Diff line change
Expand Up @@ -329,53 +329,42 @@ private int rollLightCondition() {
String terrainType = getTerrainType() == null ? "Hills" : getTerrainType();

switch (terrainType) {
case "Fixed":
case "City-dense":
case "City-high":
case "Cliffs-lake":
case "Dust-bowl":
case "Fortress-city":
case "ArcticDesert":
case "Badlands":
case "ColdFacility":
case "ColdForest":
case "ColdHills":
case "ColdSea":
case "ColdUrban":
case "Desert":
case "Forest":
case "FrozenFacility":
case "FrozenSea":
case "Hills":
case "Lake-high":
case "Lake-marsh":
case "Mountain-high":
case "Mountain-lake":
case "Mountain-medium":
case "Muddy-swamp":
case "River-huge":
case "River-wetlands":
case "Rocky-valley":
case "Rubble-mountain":
case "Rubble-river":
case "Sandy-hills":
case "Sandy-river":
case "Sandy-valley":
case "HotFacility":
case "HotForest":
case "HotHillsDry":
case "HotHillsWet":
case "HotSea":
case "HotUrban":
case "Jungle":
case "Plains":
case "Savannah":
case "Seaport":
case "Some-trees":
case "Sea":
case "SnowField":
case "Steppe":
case "Swamp":
case "Town-concrete":
case "Town-farming":
case "Town-generic":
case "Town-hills":
case "Town-mining":
case "Town-mountain":
case "Town-ruin":
case "Town-wooded":
case "Wooded-hills":
case "Wooded-lake":
case "Wooded-swamp":
case "Wooded-valley":
case "Woods-deep":
case "Woods-medium":
case "Woods-river":
case "TemperateFacility":
case "Tundra":
case "Urban":
// standard
odds = new int[]{600,200,100,99,1};
break;
case "Cliffs":
case "Heavy-craters":
case "Hills-craters":
case "Light-craters":
case "ColdMountain":
case "Glacier":
case "HotMountainsDry":
case "HotMountainsWet":
case "Mountain":
// dark
odds = new int[]{50,20,10,10,10};
break;
Expand Down

0 comments on commit 4116c0e

Please sign in to comment.