Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Black Ice terrain modification #4521

Merged
merged 24 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a924386
Add Black Ice terrain modification
pheonixstorm Jun 8, 2023
2fba4ac
Create option to use Black Ice outside Ice Storms when temp is less t…
pheonixstorm Jun 8, 2023
d835049
Added check for valid terrain and if PSR needed for terrain
pheonixstorm Jun 8, 2023
2223158
Added PSR modifier for reckless movement on Black Ice
pheonixstorm Jun 8, 2023
e4f3556
Add helper function for checking if isPavementStep contains black ice.
pheonixstorm Jun 9, 2023
0d107c7
Remove Black Ice if hex has been on fire for multiple turns.
pheonixstorm Jun 10, 2023
8674575
PSR check for jumping onto possible black ice hex.
pheonixstorm Jun 10, 2023
8b740ee
Adding reckless movement on pavement PSR check when Black Ice is in p…
pheonixstorm Jun 12, 2023
df2e4c8
Careful movement penalties apply to pavement when using Black Ice
pheonixstorm Jun 12, 2023
5ffe7b3
Add check for Black Ice on pavement in processMovement.
pheonixstorm Jun 12, 2023
da48262
Changed temp comparison structure.
pheonixstorm Jun 13, 2023
04ff8c1
Added entry for the Map Editor dropdown tile selector.
pheonixstorm Jun 16, 2023
85d544f
Add check for Black Ice in skid check.
pheonixstorm Jun 30, 2023
d23c893
Fixed issue where careful movement was not being applied.
pheonixstorm Jul 3, 2023
66027bf
Make sure black ice gets a melt check.
pheonixstorm Jul 3, 2023
c893843
Update roll target from testing value
pheonixstorm Jul 4, 2023
e61c965
Update megamek/i18n/megamek/common/options/messages.properties
pheonixstorm Jul 9, 2023
2fea933
Merge branch 'master' into Feature-BlackIce
pheonixstorm Jul 9, 2023
681ba3d
Add temp constant for black ice to planetary conditions
pheonixstorm Jul 12, 2023
9bbd484
Added missing null check
pheonixstorm Jul 12, 2023
85244c2
Removed minTemp for constant check.
pheonixstorm Jul 12, 2023
2076ffa
Merge branch 'master' into Feature-BlackIce
SJuliez Feb 1, 2024
34d7b4d
Merge branch 'master' into Feature-BlackIce
SJuliez Feb 15, 2024
1e5a950
Restore terrains numbering
SJuliez Feb 15, 2024
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 megamek/i18n/megamek/common/options/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ GameOptionsInfo.option.minefields.displayableName=TacOps Minefields / BMM Minefi
GameOptionsInfo.option.minefields.description=If checked, minefields can be used.\nChecked by default.
GameOptionsInfo.option.hidden_units.displayableName=Hidden Units
GameOptionsInfo.option.hidden_units.description=If checked, players may deploy units hidden.
GameOptionsInfo.option.black_ice.displayableName=Black Ice
GameOptionsInfo.option.black_ice.description=If checked, Black Ice may form on pavement if temperatures are below -30C. TO:AR p38\nDoes not affect Black Ice forming do to Ice Storms. TO:AR p58
pheonixstorm marked this conversation as resolved.
Show resolved Hide resolved
GameOptionsInfo.option.double_blind.displayableName=TacOps Double blind
GameOptionsInfo.option.single_blind_bots.displayableName=(Unofficial) Default bots to single blind, when using TacOps Double blind
GameOptionsInfo.option.double_blind.description=If checked, enemy units will only be visible if they are in line of sight of one or more of your units, or within sensor range. \nUnchecked by default.
Expand Down
8 changes: 8 additions & 0 deletions megamek/src/megamek/common/Compute.java
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,14 @@ public static boolean isPilotingSkillNeeded(Game game, int entityId,
return true;
}

// Check for black ice on pavement
if (destHex.containsTerrain(Terrains.BLACK_ICE)
&& !(entity.getElevation() > destHex.getLevel())
&& isPavementStep
&& (movementType != EntityMovementType.MOVE_JUMP)) {
return true;
}

// Check for water unless we're a hovercraft or naval or using a bridge
// or flying or QuadVee in vehicle mode.
if ((movementType != EntityMovementType.MOVE_JUMP)
Expand Down
Loading