Skip to content

Commit

Permalink
Merge pull request #4994 from SJuliez/weapon-sorting
Browse files Browse the repository at this point in the history
Weapon sorting (for MML)
  • Loading branch information
SJuliez authored Jan 3, 2024
2 parents 2d6e03b + 8bed74f commit 218a7cd
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public LongTomCannon() {
addLookupName("CLLongTomCannon");
addLookupName("CLLongTomArtilleryCannon");
addLookupName("CL Long Tom Cannon");
sortingName = "Cannon Arty Long Tom";
heat = 20;
rackSize = 20;
ammoType = AmmoType.T_LONG_TOM_CANNON;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public SniperCannon() {
addLookupName("CLSniper Cannon");
addLookupName("CLSniperArtilleryCannon");
addLookupName("CL Sniper Cannon");
sortingName = "Cannon Arty Sniper";
heat = 10;
rackSize = 10;
ammoType = AmmoType.T_SNIPER_CANNON;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public ThumperCannon() {
addLookupName("CLThumper Cannon");
addLookupName("CLThumperArtilleryCannon");
addLookupName("CL Thumper Cannon");
sortingName = "Cannon Arty Thumper";
heat = 5;
rackSize = 5;
ammoType = AmmoType.T_THUMPER_CANNON;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public ISVehicleFlamer() {
this.addLookupName("CLVehicleFlamer");
this.addLookupName("Clan Vehicle Flamer");
this.addLookupName("Vehicle Flamer");
sortingName = "Flamer V";
this.heat = 3;
this.damage = 2;
this.infDamageClass = WeaponType.WEAPON_BURST_4D6;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public CLAPGaussRifle() {
name = "AP Gauss Rifle";
setInternalName("CLAPGaussRifle");
addLookupName("Clan AP Gauss Rifle");
sortingName = "Gauss X";
heat = 1;
damage = 3;
infDamageClass = WeaponType.WEAPON_BURST_2D6;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public CLImprovedLaserLarge() {
this.setInternalName(this.name);
this.addLookupName("Improved Large Laser");
this.addLookupName("ImpLargeLaser");
sortingName = "Laser Imp D";
this.heat = 8;
this.damage = 8;
this.shortRange = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public CLImprovedPulseLaserLarge() {
setInternalName("ImprovedLargePulseLaser");
addLookupName("Improved Pulse Large Laser");
addLookupName("ImpLargePulseLaser");
sortingName = "Laser Pulse Imp D";
heat = 10;
damage = 9;
toHitModifier = -2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ISERLaserLarge() {
name = "ER Large Laser";
setInternalName("ISERLargeLaser");
addLookupName("IS ER Large Laser");
sortingName = "ER Laser D";
sortingName = "Laser ER D";
heat = 12;
damage = 8;
shortRange = 7;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ISERLaserMedium() {
name = "ER Medium Laser";
setInternalName("ISERMediumLaser");
addLookupName("IS ER Medium Laser");
sortingName = "ER Laser C";
sortingName = "Laser ER C";
heat = 5;
damage = 5;
shortRange = 4;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ISERLaserSmall() {
name = "ER Small Laser";
setInternalName("ISERSmallLaser");
addLookupName("IS ER Small Laser");
sortingName = "ER Laser B";
sortingName = "Laser ER B";
heat = 2;
damage = 3;
shortRange = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ISLaserLarge() {
setInternalName(this.name);
addLookupName("IS Large Laser");
addLookupName("ISLargeLaser");
sortingName = "Laser D";
sortingName = "Laser AA D";
heat = 8;
damage = 8;
shortRange = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ISLaserMedium() {
setInternalName(this.name);
addLookupName("IS Medium Laser");
addLookupName("ISMediumLaser");
sortingName = "Laser C";
sortingName = "Laser AA C";
heat = 3;
damage = 5;
shortRange = 3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ISLaserSmall() {
addLookupName("ClSmall Laser");
addLookupName("CL Small Laser");
addLookupName("CLSmallLaser");
sortingName = "Laser B";
sortingName = "Laser AA B";
heat = 1;
damage = 3;
shortRange = 1;
Expand Down
1 change: 1 addition & 0 deletions megamek/src/megamek/common/weapons/ppc/CLERPPC.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public CLERPPC() {
this.name = "ER PPC";
this.setInternalName("CLERPPC");
this.addLookupName("Clan ER PPC");
sortingName = "PPC ER";
this.heat = 15;
this.damage = 15;
this.shortRange = 7;
Expand Down
2 changes: 1 addition & 1 deletion megamek/src/megamek/common/weapons/ppc/ISERPPC.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ISERPPC() {
name = "ER PPC";
setInternalName("ISERPPC");
addLookupName("IS ER PPC");
sortingName = "PPC Y";
sortingName = "PPC ER";
heat = 15;
damage = 10;
shortRange = 7;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public ISKinsSlaughterPPC() {
this.name = "Kinslaughter H ER PPC";
this.setInternalName("ISKinHERPPC");
this.addLookupName("IS Kinslaughter H ER PPC");
sortingName = "PPC ER Kins";
this.heat = 13;
this.damage = 10;
this.shortRange = 4;
Expand Down
2 changes: 1 addition & 1 deletion megamek/src/megamek/common/weapons/ppc/ISSnubNosePPC.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ISSnubNosePPC() {
name = "Snub-Nose PPC";
setInternalName("ISSNPPC");
addLookupName("ISSnubNosedPPC");
sortingName = "PPC X";
sortingName = "PPC Snub";
heat = 10;
damage = DAMAGE_VARIABLE;
minimumRange = 0;
Expand Down

0 comments on commit 218a7cd

Please sign in to comment.