Skip to content

Commit 23314e8

Browse files
authored
Merge branch 'master' into feat/caspar-ai
2 parents 7e29941 + 803a7f8 commit 23314e8

File tree

65 files changed

+8500
-6298
lines changed

Some content is hidden

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

65 files changed

+8500
-6298
lines changed

.editorconfig

+657-53
Large diffs are not rendered by default.

.github/workflows/ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
3838
build-scan-terms-of-use-agree: "yes"
3939

40-
- name: Build with Gradle
40+
- name: Test
4141
working-directory: megamek
42-
run: ./gradlew build sentryUploadSourceBundleJava --stacktrace --scan
42+
run: ./gradlew test
4343

4444
- name: Upload Test Logs on Failure
4545
uses: actions/upload-artifact@v4
@@ -55,6 +55,10 @@ jobs:
5555
fail_ci_if_error: false
5656
verbose: true
5757

58+
- name: Build with Gradle
59+
working-directory: megamek
60+
run: ./gradlew build -x test
61+
5862
- name: Upload TarGZ Release
5963
uses: actions/upload-artifact@v4
6064
with:

build.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ plugins {
33
}
44

55
java {
6-
sourceCompatibility = JavaVersion.VERSION_17
7-
targetCompatibility = JavaVersion.VERSION_17
6+
toolchain {
7+
languageVersion = JavaLanguageVersion.of(17)
8+
}
89
}
910

1011
allprojects {

megamek/build.gradle

+12-19
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ plugins {
1010
}
1111

1212
java {
13-
sourceCompatibility = JavaVersion.VERSION_17
14-
targetCompatibility = JavaVersion.VERSION_17
13+
toolchain {
14+
languageVersion = JavaLanguageVersion.of(17)
15+
}
1516
}
1617

1718
sourceSets {
@@ -155,6 +156,7 @@ tasks.register('copyFiles', Copy) {
155156
exclude "${mmconf}/mml.preferences"
156157

157158
exclude "${rats}/**"
159+
exclude "${data}/mekfiles/units.cache"
158160
include "${userdata}/"
159161

160162
into fileStagingDir
@@ -189,15 +191,13 @@ tasks.register('officialUnitList', JavaExec) {
189191
args = ['-oul', "${projectDir}/docs/OfficialUnitList.txt"]
190192
}
191193

192-
task unitFilesZip(dependsOn: copyFiles) {
194+
tasks.register('unitFilesZip', Zip) {
195+
dependsOn copyFiles
193196
description = 'Creates zip archives of all the unit file folders.'
194-
file(unitFiles).eachDir { subDir ->
195-
dependsOn tasks.create("${name}${subDir.name}", Zip) {
196-
from subDir
197-
archiveFileName = "${subDir.name}.zip"
198-
destinationDirectory = file("${fileStagingDir}/${unitFiles}")
199-
}
200-
}
197+
from unitFiles
198+
archiveFileName = "unit_files.zip"
199+
destinationDirectory = file("${fileStagingDir}/${unitFiles}")
200+
201201
inputs.dir "${projectDir}/${unitFiles}"
202202
outputs.dir "${fileStagingDir}/${unitFiles}"
203203
}
@@ -305,19 +305,12 @@ distTar {
305305
compression = Compression.GZIP
306306
}
307307

308-
// The distribution plugin adds the distribution packages to the assemble task, which causes the build task
309-
// to run all the packaging tasks.
310-
task assemble(overwrite: true) {
308+
assemble {
311309
dependsOn jar
312310
}
313311

314-
// Replace the assembleDist task created by the distributions plugin to create the packages we want to
315-
task assembleDist(overwrite: true) {
316-
description = 'Build unix, Windows, and source packages'
317-
group = 'distribution'
318-
dependsOn test
312+
assembleDist {
319313
dependsOn distTar
320-
dependsOn distZip
321314
}
322315

323316
test {

megamek/docs/history.txt

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ MEGAMEK VERSION HISTORY:
1414
+ PR #6770: Fixed ConcurrentModification Exceptions In BV Calculation Methods
1515
+ PR #6768: Fixed issues with Implicit narrowing conversion in compound assignment.
1616
+ PR #6782: add Save As to the board preview in the lobby
17+
+ PR #6795: Fixes for various Artillery and Artillery Flak issues
18+
+ PR #6796: feat: add a callsign to princess instead of numbers
19+
+ PR #6806: Added Method for Variable Cost Check in MiscType
20+
+ Fix #6807: Auto-set SI in ASFs
21+
+ PR #6816 parse mek/blk from string
1722

1823
0.50.04 (2025-03-22 1600 UTC)
1924
+ PR #6494: Cap splashscreen button width

megamek/i18n/megamek/client/messages.properties

+1
Original file line numberDiff line numberDiff line change
@@ -4020,6 +4020,7 @@ WeaponAttackAction.LegBlockedByTerrain=Nearby terrain blocks leg weapons.
40204020
WeaponAttackAction.MinimumAlt1=attacker must be at least at elevation 1
40214021
WeaponAttackAction.NoAeroDirectArty=Airborne aerospace units cannot make direct-fire artillery attacks.
40224022
WeaponAttackAction.FlakOnGroundedAero=Grounded aerospace/vtol units are not valid Flak targets.
4023+
WeaponAttackAction.FlakIndirect=Flak Artillery attacks must be Direct Attacks
40234024
WeaponAttackAction.ADARangeBracket=ADA range brackets (+0/+2/+4)
40244025
WeaponAttackAction.NoAttacker=Invalid Attacker!
40254026
WeaponAttackAction.NoBombInMekMode=Cannot launch bomb in mek mode.

megamek/i18n/megamek/common/report-messages.properties

+2
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@
432432
3383=Terrain burns for <data> damage.
433433
3384=Hex <data>: terrain takes <data> damage.
434434
3385=Terrain takes <data> damage.
435+
3386=Hex <data>: terrain takes <data> damage at level <data>.
435436
3390=<span class='success'><B>hits</B></span>.
436437
3395=However, <data> (<data>) has fire protection gear so no damage is done.
437438
3400=Target gains <data> <msg:3401,3402> heat during heat phase.
@@ -449,6 +450,7 @@
449450
3426=The remaining <data> missile(s) find no new target due to hostile ECM interference.
450451
3430=Needs <data> [<data>] to ignite, rolls <data>
451452
3433=-2 bonus for laser-guided bomb against tagged target!
453+
3434=<data><data><data> points of damage at level <data>.
452454
3435=<data><data><data> points of damage.
453455
3436=<newline><data> points absorbed by armor. <data> armor remaining.
454456
3437=<newline>Damage changed to <data> due to building scale.

0 commit comments

Comments
 (0)