Skip to content

Commit

Permalink
M2HB
Browse files Browse the repository at this point in the history
  • Loading branch information
mbutler committed Nov 30, 2023
1 parent 46e1baf commit fc26ec8
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/phoenix-functions.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "phoenix-functions",
"version": "0.9.80",
"version": "0.9.81",
"description": "equations for phoenix command",
"main": "dist/phoenix-functions.js",
"scripts": {
Expand Down
163 changes: 163 additions & 0 deletions src/weapons.js
Original file line number Diff line number Diff line change
Expand Up @@ -7991,5 +7991,168 @@ export const weapons = {
"6": -7,
"7": -6
}
},
"M2HB": {
"10": {
"FMJ": {
"PEN": 40,
"DC": 10
},
"JHP": {
"PEN": 38,
"DC": 10
},
"AP": {
"PEN": 56,
"DC": 10
},
"MA": 0.2,
"BA": 64,
"TOF": 0
},
"20": {
"FMJ": {
"PEN": 39,
"DC": 10
},
"JHP": {
"PEN": 37,
"DC": 10
},
"AP": {
"PEN": 55,
"DC": 10
},
"MA": 0.3,
"BA": 57,
"TOF": 0
},
"40": {
"FMJ": {
"PEN": 37,
"DC": 10
},
"JHP": {
"PEN": 36,
"DC": 10
},
"AP": {
"PEN": 53,
"DC": 10
},
"MA": 0.6,
"BA": 49,
"TOF": 1
},
"70": {
"FMJ": {
"PEN": 35,
"DC": 10
},
"JHP": {
"PEN": 34,
"DC": 10
},
"AP": {
"PEN": 50,
"DC": 10
},
"MA": 1,
"BA": 42,
"TOF": 2
},
"100": {
"FMJ": {
"PEN": 34,
"DC": 10
},
"JHP": {
"PEN": 32,
"DC": 10
},
"AP": {
"PEN": 47,
"DC": 10
},
"MA": 2,
"BA": 37,
"TOF": 2
},
"200": {
"FMJ": {
"PEN": 28,
"DC": 10
},
"JHP": {
"PEN": 27,
"DC": 10
},
"AP": {
"PEN": 39,
"DC": 10
},
"MA": 3,
"BA": 28,
"TOF": 5
},
"300": {
"FMJ": {
"PEN": 23,
"DC": 10
},
"JHP": {
"PEN": 22,
"DC": 10
},
"AP": {
"PEN": 33,
"DC": 10
},
"MA": 5,
"BA": 22,
"TOF": 8
},
"400": {
"FMJ": {
"PEN": 19,
"DC": 10
},
"JHP": {
"PEN": 19,
"DC": 10
},
"AP": {
"PEN": 27,
"DC": 10
},
"MA": 6,
"BA": 19,
"TOF": 11
},
"Name": "M2HB",
"Type": "Machine Gun",
"Description": "Standard US Heavy Machine Gun in service since 1933.",
"Image": "https://firebasestorage.googleapis.com/v0/b/firebird-f30dc.appspot.com/o/m2hb.png?alt=media&token=69759f08-cb2c-4d65-996a-a9458f949026",
"L": "65",
"W": 157.5,
"RT": 14,
"ROF": 5,
"Cap": 105,
"AW": "28.8",
"KD": 45,
"SAB": 2,
"Aim Time": {
"1": -37,
"2": -27,
"3": -21,
"4": -17,
"5": -14,
"6": -10,
"7": -8,
"8": -6,
"10": -4,
"12": -2,
"14": 0
}
}
}
5 changes: 5 additions & 0 deletions test/functions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,11 @@ describe('Weapons Test', () => {
expect(weapons['Colt Model 1851 Navy']['Aim Time']['4']).to.equal(-9)
expect(weapons['Colt Model 1851 Navy']['Name']).to.equal('Colt Model 1851 Navy')
})
it('M2HB', () => {
expect(weapons['M2HB']['10']['FMJ']['PEN']).to.equal(40)
expect(weapons['M2HB']['Aim Time']['4']).to.equal(-17)
expect(weapons['M2HB']['Name']).to.equal('M2HB')
})
it('tests getting weapon ammo types', () => {
expect(getAmmoTypes('AKM 47')).to.include.members(['FMJ', 'AP', 'JHP'])
expect(getAmmoTypes('Franchi SPAS 12')).to.include.members(['APS', 'Shot'])
Expand Down

0 comments on commit fc26ec8

Please sign in to comment.