Skip to content

Commit

Permalink
feat: refactored a couple of variable names to things that are more i…
Browse files Browse the repository at this point in the history
…nline to modern standards
  • Loading branch information
Scoppio committed Dec 5, 2024
1 parent 40186e2 commit 054f162
Show file tree
Hide file tree
Showing 143 changed files with 2,633 additions and 1,584 deletions.
29 changes: 25 additions & 4 deletions megamek/i18n/megamek/client/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4675,14 +4675,18 @@ Gamemaster.KillUnit=Kill Unit
Gamemaster.KillUnit.text=Kill Unit {0}
Gamemaster.KillUnit.confirmation=Are you sure you want to kill {0}?
Gamemaster.SpecialCommands=Special Actions

#Gamemaster Chat Commands
Gamemaster.cmd.missingUnit=Specified unit is not on the board.
Gamemaster.cmd.error.integerparse=must be between the min and max values:
Gamemaster.cmd.error.outofbounds=Specified hex is not on the board.
Gamemaster.cmd.help=Usage:
Gamemaster.cmd.params.required=Required.
Gamemaster.cmd.params.optional=Optional.
Gamemaster.cmd.x=The x coordinate of the hex.
Gamemaster.cmd.y=The y coordinate of the hex.
Gamemaster.cmd.playerID=The ID of the player that is going to be held as responsible.

# Rescue cmd
Gamemaster.cmd.rescue.longName=Rescue Unit
Gamemaster.cmd.rescue.unitID=ID of the unit to rescue.
Expand Down Expand Up @@ -4721,7 +4725,7 @@ Gamemaster.cmd.changeweather.blowsand=Blowing Sand
Gamemaster.cmd.changeweather.emi=EMI
Gamemaster.cmd.changeweather.weather=Weather
# Disaster cmd
Gamemaster.cmd.disaster.longName=Disaster
Gamemaster.cmd.disaster.longName=Disaster!
Gamemaster.cmd.disaster.help=Causes a disaster on the board.
Gamemaster.cmd.disaster.type=Type of disaster. Beware, some disasters are very destructive!
Gamemaster.cmd.changeweather.fog.success=The fog has changed.
Expand All @@ -4740,7 +4744,7 @@ Gamemaster.cmd.firestarter.longName=Start a Fire
Gamemaster.cmd.fire.type=Type of fire. They are 1=Normal, 2=Inferno, 3=Inferno Bomb or 4=Inferno IV.
Gamemaster.cmd.fire.help=Starts a fire on the board.
# Firestorm cmd
Gamemaster.cmd.firestorm.longName=Firestorm
Gamemaster.cmd.firestorm.longName=Start a Firestorm
Gamemaster.cmd.firestorm.help=Starts fire in the entire board.
Gamemaster.cmd.fire.failed=Failed to ignite fire.
Gamemaster.cmd.fire.percent=Percentage of the board hexes to ignite.
Expand All @@ -4751,13 +4755,30 @@ Gamemaster.cmd.orbitalbombardment.dmg=Total damage at target hex.
Gamemaster.cmd.orbitalbombardment.radius=Radius of the bombardment.
Gamemaster.cmd.orbitalbombardment.error.outofbounds=Specified hex is not on the board.
Gamemaster.cmd.orbitalbombardment.success=Orbital bombardment incoming!

#Nuclear strike
Gamemaster.cmd.nuke.longName=Nuclear Strike
Gamemaster.cmd.nuke.help=Calls a Nuclear Strike onto the board, to be exploded at the end of the next weapons attack phase.
Gamemaster.cmd.nuke.type=The type of nuke to drop.
Gamemaster.cmd.nuke.error.disabled=Command-line nukes are not enabled in this game.

Gamemaster.cmd.nuke.success=A nuke is incoming! Take cover!

#Nuclear strike custom
Gamemaster.cmd.nukec.longName=Nuclear Strike (Custom)
Gamemaster.cmd.nukec.help=Calls a Nuclear Strike onto the board with a custom bomb, to be exploded at the end of the next weapons attack phase.
Gamemaster.cmd.nukec.dmg=Total damage at target hex.
Gamemaster.cmd.nukec.radius=Radius of the secondary explosion of the nuclear strike.
Gamemaster.cmd.nukec.deg=Degradation of the nuclear strike.
Gamemaster.cmd.nukec.depth=Crater depth of the nuclear strike.

# Firefight
Gamemaster.cmd.firefight.longName=Firefight
Gamemaster.cmd.firefight.longName=Extinguish a Fire
Gamemaster.cmd.firefight.reason=Fire extinguished
Gamemaster.cmd.firefight.help=Extinguishes a fire on the board.

# No Fire
Gamemaster.cmd.nofire.longName=No Fires
Gamemaster.cmd.nofire.longName=Extinguish All Fires
Gamemaster.cmd.nofire.help=Extinguishes all fires on the board.

# Change player team
Expand Down
3 changes: 2 additions & 1 deletion megamek/src/megamek/client/ui/swing/MapMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,8 @@ private JMenu createGMSpecialCommandsMenu() {
new RemoveSmokeCommand(null, null),
new OrbitalBombardmentCommand(null, null),
new DisasterCommand(null, null),
new NukeCommand(null, null),
new NuclearStrikeCommand(null, null),
new NuclearStrikeCustomCommand(null, null),
new EndGameCommand(null, null)
).forEach(cmd -> {
JMenuItem item = new JMenuItem(cmd.getLongName());
Expand Down
Loading

0 comments on commit 054f162

Please sign in to comment.