Skip to content

Commit 5bb3dee

Browse files
committed
Merge branch 'master' into personalitiesTheyThemSupport
2 parents 30b9faa + 36e95d3 commit 5bb3dee

File tree

368 files changed

+8550
-5738
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

368 files changed

+8550
-5738
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ indent_size = 4
77
end_of_line = lf
88
trim_trailing_whitespace = true
99
insert_final_newline = true
10-
max_line_length = 140 # Google Style Guide
10+
max_line_length = 120
1111
curly_bracket_next_line = false
1212
spaces_around_operators = true
1313
spaces_around_brackets = "both"
1414
indent_brace_style = "K&R"
1515
wildcard_import_limit = 10
16-
continuation_indent_size = 4 # Google Style Guid
16+
continuation_indent_size = 6
1717

1818
[*.xml]
1919
indent_style = "space"
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,14 @@ env:
99

1010
jobs:
1111
javadoc:
12-
runs-on: ${{ matrix.os }}
12+
runs-on: ubuntu-latest
1313

1414
outputs:
1515
mmRepo: ${{ steps.find_mm.outputs.mmRepo }}
1616
mmBranch: ${{ steps.find_mm.outputs.mmBranch }}
1717
mmlRepo: ${{ steps.find_mml.outputs.mmRepo }}
1818
mmlBranch: ${{ steps.find_mml.outputs.mmBranch }}
1919

20-
strategy:
21-
matrix:
22-
os: [ubuntu-latest]
23-
java-distribution: [temurin]
24-
java-version: [17]
25-
fail-fast: false
26-
2720
steps:
2821
- name: Checkout out MekHQ
2922
uses: actions/checkout@v4
@@ -74,11 +67,11 @@ jobs:
7467
ref: ${{ steps.find_mml.outputs.mmlBranch }}
7568
path: megameklab
7669

77-
- name: Set up ${{ matrix.java-distribution }} JDK ${{ matrix.java-version }}
70+
- name: Set up Temurin JDK 17
7871
uses: actions/setup-java@v4
7972
with:
80-
distribution: ${{ matrix.java-distribution }}
81-
java-version: ${{ matrix.java-version }}
73+
distribution: temurin
74+
java-version: 17
8275

8376
- name: Setup Gradle
8477
uses: gradle/actions/setup-gradle@v4

.github/workflows/java-doc.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: JavaDoc Generation
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
7+
workflow_dispatch:
8+
9+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: "Check out MekHQ"
21+
uses: actions/checkout@v4
22+
with:
23+
path: MekHQ
24+
25+
- name: "Check out MegaMekLab"
26+
uses: actions/checkout@v4
27+
with:
28+
repository: MegaMek/megameklab
29+
ref: master
30+
path: megameklab
31+
32+
- name: Checkout MegaMek
33+
uses: actions/checkout@v4
34+
with:
35+
repository: MegaMek/megamek
36+
ref: master
37+
path: megamek
38+
39+
- name: Set up Temurin JDK 17
40+
uses: actions/setup-java@v4
41+
with:
42+
distribution: temurin
43+
java-version: 17
44+
45+
- name: Setup Gradle
46+
uses: gradle/actions/setup-gradle@v4
47+
with:
48+
build-scan-publish: true
49+
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
50+
build-scan-terms-of-use-agree: "yes"
51+
52+
- name: Build with Gradle
53+
working-directory: MekHQ
54+
run: ./gradlew javadoc
55+
56+
- name: Upload static files as artifact
57+
id: deployment
58+
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
59+
with:
60+
path: MekHQ/MekHQ/build/docs/javadoc
61+
62+
deploy:
63+
environment:
64+
name: github-pages
65+
url: ${{ steps.deployment.outputs.page_url }}
66+
runs-on: ubuntu-latest
67+
needs: build
68+
steps:
69+
- name: Deploy to GitHub Pages
70+
id: deployment
71+
uses: actions/deploy-pages@v4

MekHQ/config/checkstyle/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ https://raw.githubusercontent.com/checkstyle/checkstyle/master/src/main/resource
5555

5656
<module name="LineLength">
5757
<property name="fileExtensions" value="java" />
58-
<property name="max" value="140" />
58+
<property name="max" value="120" />
5959
<property name="ignorePattern"
6060
value="^package.*|^import.*|href\s*=\s*&quot;[^&quot;]*&quot;|http://|https://|ftp://" />
6161
</module>

MekHQ/docs/history.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@ MEKHQ VERSION HISTORY:
111111
+ PR #6157: Updated Battlefield Control Logic in Scenarios
112112
+ PR #6159: Renamed `getAvailableForceIDs` Method to `getAvailableForceIDsForManualDeployment` For Improved Clarity
113113
+ PR #6160: Replaced Magic Numbers With Constants For Scenario IDs
114+
+ FIX #5829: ACAR - automatically change the color of the bot for another color if there is a collision
115+
+ FIX #6059: PACAR auto-start only when using CommanderGUI
116+
+ PR #6169: Updated Warehouse Parts Table To Better Indicate Brand-New Status in Quality Column
117+
+ RFE #5919: Make Daily Log Killed in Action Text Show up in Red
118+
+ Fix #6166: Corrected Resupply Interception Placeholder Messages
119+
+ Fix #6169: Updated Reinforcement Logic to Better Support GM Overrides
120+
+ PR #6173: Corrected Support Points Removal Logic
121+
+ Fix #6174: Fixed new dependants claiming own name as job title in daily report
122+
+ PR #6177: Drones are marked as unsupported units in MekHQ until they can be implemented in MegaMek
114123

115124

116125
0.50.03 (2025-02-02 2030 UTC)

MekHQ/resources/mekhq/resources/AtBStratCon.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ selectForceForTemplate.Text=<html><b>Select a force from the list below.</b>\
2424
selectReinforcementsForTemplate.Text=<html><b>Select reinforcements from the list below.</b>\
2525
<br>\
2626
<br>Each attempt will cost Support Points and may be unsuccessful.</html>
27-
selectReinforcementsForTemplateNoSupportPoints.Text=<html><b>Unable to assign reinforcements. No\
28-
\ Support Points available.</b></html>
27+
selectReinforcementsForTemplateNoSupportPoints.Text=<html><b>No Support Points available.</b> Only\
28+
\ GM Reinforcement available.</html>
2929

3030
reinforcementsAttempt.text=Attempting to reinforce scenario %s, roll <b>%s%s</b> vs. <b>%s</b>:
3131
reinforcementsAttempt.text.gm=Attempting to reinforce scenario %s:

MekHQ/resources/mekhq/resources/CampaignGUI.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ miMHQOptions.toolTipText=This launches the MekHQ Options Dialog.
4848
menuThemes.text=Themes
4949
menuExit.text=Exit
5050
mekSelectorDialog.unsupported.gunEmplacement=Gun Emplacements are %s<b>not supported</b>%s by MekHQ.
51+
mekSelectorDialog.unsupported.droneOs=Drone units are %s<b>not supported</b>%s by MekHQ.
52+
mekSelectorDialog.unsupported.null=Unit does not have an entity.
5153

5254
# Marketplace Menu
5355
menuMarket.text=Marketplace
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
label.COL_NAME=Name
2+
label.COL_COST=Value per Unit
3+
label.COL_TOTAL_COST=Total Value
4+
label.COL_QUANTITY=#
5+
label.COL_QUALITY=Quality
6+
label.COL_TON=Tonnage
7+
label.COL_STATUS=Status
8+
label.COL_DETAIL=Details
9+
label.COL_TECH_BASE=Tech Base
10+
label.COL_REPAIR=Repair Details
11+
12+
addendum.brandNew=Brand New
13+
addendum.used=Used

MekHQ/resources/mekhq/resources/Personnel.properties

Lines changed: 0 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -328,116 +328,6 @@ PersonnelRole.ADMINISTRATOR_HR.text=Admin/HR
328328
PersonnelRole.DEPENDENT.text=Dependent
329329
PersonnelRole.NONE.text=None
330330

331-
# PersonnelStatus Enum
332-
PersonnelStatus.ACTIVE.text=Active
333-
PersonnelStatus.ACTIVE.toolTipText=They are currently a member of the force.
334-
PersonnelStatus.ACTIVE.reportText=ERROR: ACTIVE should not call this method.
335-
PersonnelStatus.ACTIVE.logText=ERROR: ACTIVE should not call this method.
336-
PersonnelStatus.MIA.text=Missing in Action
337-
PersonnelStatus.MIA.toolTipText=They are currently missing in action.
338-
PersonnelStatus.MIA.reportText=%s has gone missing in action
339-
PersonnelStatus.MIA.logText=Went missing in action
340-
PersonnelStatus.POW.text=PoW
341-
PersonnelStatus.POW.toolTipText=They have been captured and are currently held as a prisoner of war.
342-
PersonnelStatus.POW.reportText=%s has been captured and are currently held as a prisoner of war
343-
PersonnelStatus.POW.logText=Was captured
344-
PersonnelStatus.ON_LEAVE.text=On Leave
345-
PersonnelStatus.ON_LEAVE.toolTipText=They are currently on leave from the force.
346-
PersonnelStatus.ON_LEAVE.reportText=%s has gone on leave from the force
347-
PersonnelStatus.ON_LEAVE.logText=Went on leave
348-
PersonnelStatus.ON_MATERNITY_LEAVE.text=On Maternity Leave
349-
PersonnelStatus.ON_MATERNITY_LEAVE.toolTipText=They are currently on maternity leave.
350-
PersonnelStatus.ON_MATERNITY_LEAVE.reportText=%s has gone on maternity leave
351-
PersonnelStatus.ON_MATERNITY_LEAVE.logText=Went on maternity leave
352-
PersonnelStatus.AWOL.text=AWOL
353-
PersonnelStatus.AWOL.toolTipText=They have abandoned their post.
354-
PersonnelStatus.AWOL.reportText=%s has abandoned their post.
355-
PersonnelStatus.AWOL.logText=Went AWOL
356-
PersonnelStatus.RETIRED.text=Retired
357-
PersonnelStatus.RETIRED.toolTipText=They have retired from the force.
358-
PersonnelStatus.RETIRED.reportText=%s has retired
359-
PersonnelStatus.RETIRED.logText=Retired
360-
PersonnelStatus.RESIGNED.text=Resigned
361-
PersonnelStatus.RESIGNED.toolTipText=They have resigned from the force.
362-
PersonnelStatus.RESIGNED.reportText=%s has resigned
363-
PersonnelStatus.RESIGNED.logText=Resigned
364-
PersonnelStatus.SACKED.text=Sacked
365-
PersonnelStatus.SACKED.toolTipText=They have been sacked.
366-
PersonnelStatus.SACKED.reportText=%s has been sacked
367-
PersonnelStatus.SACKED.logText=Was sacked
368-
PersonnelStatus.LEFT.text=Left
369-
PersonnelStatus.LEFT.toolTipText=They have left the force for unspecified reasons.
370-
PersonnelStatus.LEFT.reportText=%s has left the unit for unspecified reasons
371-
PersonnelStatus.LEFT.logText=Left the force
372-
PersonnelStatus.DESERTED.text=Deserted
373-
PersonnelStatus.DESERTED.toolTipText=They have deserted from the force.
374-
PersonnelStatus.DESERTED.reportText=%s has deserted from the force
375-
PersonnelStatus.DESERTED.logText=Deserted
376-
PersonnelStatus.DEFECTED.text=Defected
377-
PersonnelStatus.DEFECTED.toolTipText=They have defected to another force.
378-
PersonnelStatus.DEFECTED.reportText=%s has defected from the force
379-
PersonnelStatus.DEFECTED.logText=Defected
380-
PersonnelStatus.STUDENT.text=Student
381-
PersonnelStatus.STUDENT.toolTipText=Is away for education or training
382-
PersonnelStatus.STUDENT.reportText=%s has left for a period of education or training
383-
PersonnelStatus.STUDENT.logText=Studying away from the unit
384-
PersonnelStatus.MISSING.text=Missing
385-
PersonnelStatus.MISSING.toolTipText=Is missing
386-
PersonnelStatus.MISSING.reportText=%s has gone missing
387-
PersonnelStatus.MISSING.logText=Gone missing
388-
PersonnelStatus.KIA.text=Killed in Action
389-
PersonnelStatus.KIA.toolTipText=They have been killed in action.
390-
PersonnelStatus.KIA.reportText=%s has been killed in action
391-
PersonnelStatus.KIA.logText=Killed in action
392-
PersonnelStatus.HOMICIDE.text=Slain in a Homicide
393-
PersonnelStatus.HOMICIDE.toolTipText=They have been killed by another person outside of their combat duties.
394-
PersonnelStatus.HOMICIDE.reportText=%s was murdered
395-
PersonnelStatus.HOMICIDE.logText=Slain in a homicide
396-
PersonnelStatus.WOUNDS.text=Slain by their Wounds
397-
PersonnelStatus.WOUNDS.toolTipText=They have passed away due to their combat wounds.
398-
PersonnelStatus.WOUNDS.reportText=%s has passed away from their combat wounds
399-
PersonnelStatus.WOUNDS.logText=Passed away from their wounds
400-
PersonnelStatus.DISEASE.text=Died from Disease
401-
PersonnelStatus.DISEASE.toolTipText=They have passed away while fighting a disease.
402-
PersonnelStatus.DISEASE.reportText=%s has passed away while fighting a disease
403-
PersonnelStatus.DISEASE.logText=Passed away from disease
404-
PersonnelStatus.ACCIDENTAL.text=Died Accidentally
405-
PersonnelStatus.ACCIDENTAL.toolTipText=They have passed away in an accident.
406-
PersonnelStatus.ACCIDENTAL.reportText=%s was slain in accident
407-
PersonnelStatus.ACCIDENTAL.logText=Passed away in an accident
408-
PersonnelStatus.NATURAL_CAUSES.text=Died of Natural Causes
409-
PersonnelStatus.NATURAL_CAUSES.toolTipText=They have passed away from natural causes.
410-
PersonnelStatus.NATURAL_CAUSES.reportText=%s has passed away from natural causes
411-
PersonnelStatus.NATURAL_CAUSES.logText=Passed away from natural causes
412-
PersonnelStatus.OLD_AGE.text=Succumbed to Old Age
413-
PersonnelStatus.OLD_AGE.toolTipText=They have passed away due to complications originating from their advanced age.
414-
PersonnelStatus.OLD_AGE.reportText=%s has passed away due to complications originating from their advanced age
415-
PersonnelStatus.OLD_AGE.logText=Succumbed to their old age
416-
PersonnelStatus.MEDICAL_COMPLICATIONS.text=Succumbed to Medical Complications
417-
PersonnelStatus.MEDICAL_COMPLICATIONS.toolTipText=They have passed away due to complications originating from their medical treatment.
418-
PersonnelStatus.MEDICAL_COMPLICATIONS.reportText=%s has passed away due to complications originating from their medical treatment
419-
PersonnelStatus.MEDICAL_COMPLICATIONS.logText=Passed away due to complications relating to medical care
420-
PersonnelStatus.PREGNANCY_COMPLICATIONS.text=Succumbed to Pregnancy Complications
421-
PersonnelStatus.PREGNANCY_COMPLICATIONS.toolTipText=They have passed away due to complications originating from their pregnancy.
422-
PersonnelStatus.PREGNANCY_COMPLICATIONS.reportText=%s has passed away from complications originating from their pregnancy
423-
PersonnelStatus.PREGNANCY_COMPLICATIONS.logText=Passed away due to complications relating to their pregnancy
424-
PersonnelStatus.UNDETERMINED.text=Undetermined Cause of Death
425-
PersonnelStatus.UNDETERMINED.toolTipText=They are believed to have passed away from an unknown cause.
426-
PersonnelStatus.UNDETERMINED.reportText=%s has died, the cause unknown
427-
PersonnelStatus.UNDETERMINED.logText=Recorded as having passed away, the cause unknown
428-
PersonnelStatus.SUICIDE.text=Died from Suicide
429-
PersonnelStatus.SUICIDE.toolTipText=They took their own life.
430-
PersonnelStatus.SUICIDE.reportText=%s has taken their own life
431-
PersonnelStatus.SUICIDE.logText=Took their own life
432-
PersonnelStatus.ENEMY_BONDSMAN.text=Enemy Bondsman
433-
PersonnelStatus.ENEMY_BONDSMAN.toolTipText=They were taken as a Bondsman by enemy forces.
434-
PersonnelStatus.ENEMY_BONDSMAN.reportText=The enemy has claimed %s as a Bondsman.
435-
PersonnelStatus.ENEMY_BONDSMAN.logText=Taken as a Bondsman
436-
PersonnelStatus.BONDSREF.text=Bondsref
437-
PersonnelStatus.BONDSREF.toolTipText=They have performed Bondsref
438-
PersonnelStatus.BONDSREF.reportText=%s has preformed Bondsref instead of becoming a Bondsman.
439-
PersonnelStatus.BONDSREF.logText=Performed Bondsref
440-
441331
# Phenotype Enum
442332
Phenotype.MEKWARRIOR.text=MekWarrior
443333
Phenotype.MEKWARRIOR.toolTipText=Probability of a trueborn person with appropriate bonuses for MekWarriors. Does not apply to non-clan factions.

0 commit comments

Comments
 (0)