Skip to content

Planetary Conditions#25

Open
Windchild292 wants to merge 30 commits intomasterfrom
dev_Windchild_PlanetaryConditions
Open

Planetary Conditions#25
Windchild292 wants to merge 30 commits intomasterfrom
dev_Windchild_PlanetaryConditions

Conversation

@Windchild292
Copy link
Copy Markdown
Owner

@Windchild292 Windchild292 commented Jan 14, 2021

This PR does the following:

  • Creates Atmosphere Enum
  • Creates AtmosphericPressure Enum
  • Creates ExtendedPlanetaryConditionsGenerationMethod Enum
  • Creates Fog Enum
  • Cleans up Gender Enum (it was the only other enum in the target folder, and needed some updates)
  • Creates HexCardinalDirection Enum
  • Creates Light Enum
  • Creates Light Generation Method Enum
  • Creates Planetary Conditions Generation Method Enum
  • Creates Weather Enum
  • Creates Weather Generation Method Enum
  • Creates Wind Enum
  • Implements Planetary Condition Enums in MegaMek
  • Migrates Code to the Enums
  • Adds Missing Planetary Condition Variables
  • Windchild Planetary Conditions Generations Ruleset Light Rules
  • Adds Modular Planetary Condition Generation
  • Adds Specified Planetary Condition Generator
  • Adds AtB Planetary Condition Generator
  • Adds Tactical Operations: Advanced Rules Planetary Condition Generator
  • Adds Modular Light Generation
  • Adds AtB Light Generator
  • Adds Tactical Operations: Advanced Rules Light Generator
  • Adds Windchild Light Generator
  • Adds Modular Weather Generation
  • Adds AtB Weather Generator
  • Adds Tactical Operations: Advanced Rules Weather Generator
  • Adds Modular Extended Planetary Conditions Generation
  • Adds Tactical Operations: Advanced Rules Extended Planetary Conditions Generator
  • Migrate Planetary Conditions Dialog
  • Expand Planetary Condition Dialog for the generators

Phase 2:

  • Checks Current Implementations
  • Updates Current Implementations to Latest Rules
  • Implements Atmospheres
  • Implements Earthquakes
  • Implements Meteor Showers
  • Implement Dawn
  • Implements Glare
  • Implements Solar Flare
  • Implements Lightning Storms

For Reviewers:
PlanetaryConditions::isVacuum actually means isVacuum or isTrace, not just isVacuum.
PlanetaryConditions::isSearchlightEffective means isNight

@Windchild292 Windchild292 changed the title Dev windchild planetary conditions Planetary Conditions Jul 15, 2021
|| (hasWorkingMisc(MiscType.F_HIRES_IMAGER)
&& ((game.getPlanetaryConditions().getLight() == PlanetaryConditions.L_DAY)
|| (game.getPlanetaryConditions().getLight() == PlanetaryConditions.L_DUSK)));
|| (hasWorkingMisc(MiscType.F_HIRES_IMAGER) && !game.getPlanetaryConditions().getLight().isNight());
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Check this out, as it may be a bug

Comment on lines +2787 to +2789
return !isAirborne() || hasWorkingMisc(MiscType.F_RECON_CAMERA) || hasWorkingMisc(MiscType.F_INFRARED_IMAGER)
|| hasWorkingMisc(MiscType.F_HYPERSPECTRAL_IMAGER)
|| (hasWorkingMisc(MiscType.F_HIRES_IMAGER)
&& ((game.getPlanetaryConditions().getLight() == PlanetaryConditions.L_DAY)
|| (game.getPlanetaryConditions().getLight() == PlanetaryConditions.L_DUSK)))) {
return true;
} else {
return false;
}
|| (hasWorkingMisc(MiscType.F_HIRES_IMAGER) && !game.getPlanetaryConditions().getLight().isNight());
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

No source, nor is it in the books/ errata... and this is also likely bugged

Comment on lines +32623 to 32635
// FIXME : Windchild I'm pretty sure this shouldn't stack
if (game.getPlanetaryConditions().getWeather().isHeavySnow()
|| game.getPlanetaryConditions().getWeather().isIceStorm()
|| game.getPlanetaryConditions().getWeather().isDownpour()
|| game.getPlanetaryConditions().getWindStrength().isStrongGale()) {
rollTarget.addModifier(2, "Bad Weather");
}

if ((game.getPlanetaryConditions().getWindStrength() >= PlanetaryConditions.WI_STORM)
|| ((game.getPlanetaryConditions().getWeather() == PlanetaryConditions.WE_HEAVY_SNOW) && (game
.getPlanetaryConditions().getWindStrength() == PlanetaryConditions.WI_STRONG_GALE))) {
if (game.getPlanetaryConditions().getWindStrength().isStormOrStronger()
|| (game.getPlanetaryConditions().getWeather().isHeavySnow()
&& game.getPlanetaryConditions().getWindStrength().isStrongGale())) {
rollTarget.addModifier(3, "Really Bad Weather");
}
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

FIXME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant