Skip to content

Commit

Permalink
Merge pull request #1601 from Stormbound-Games/primal-unit-type
Browse files Browse the repository at this point in the history
Add the ‘Primal’ unit type to constants
  • Loading branch information
KittySparkles authored Jan 23, 2025
2 parents bbd7c2f + c9f72da commit 279abb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/constants/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const UNIT_TYPES = [
'hero',
'knight',
'pirate',
'primal',
'raven',
'rodent',
'satyr',
Expand Down
1 change: 1 addition & 0 deletions src/helpers/encoding/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const UNIT_TYPES_SHORT = [
'H',
'K',
'P',
'M',
'R',
'O',
'S',
Expand Down
2 changes: 2 additions & 0 deletions src/helpers/encoding/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ describe('The `getShortUnitType` helper', () => {
expect(getShortUnitType('hero')).toEqual('H')
expect(getShortUnitType('knight')).toEqual('K')
expect(getShortUnitType('pirate')).toEqual('P')
expect(getShortUnitType('primal')).toEqual('M')
expect(getShortUnitType('raven')).toEqual('R')
expect(getShortUnitType('rodent')).toEqual('O')
expect(getShortUnitType('satyr')).toEqual('S')
Expand Down Expand Up @@ -137,6 +138,7 @@ describe('The `getLongUnitType` helper', () => {
expect(getLongUnitType('H')).toEqual('hero')
expect(getLongUnitType('K')).toEqual('knight')
expect(getLongUnitType('P')).toEqual('pirate')
expect(getLongUnitType('M')).toEqual('primal')
expect(getLongUnitType('R')).toEqual('raven')
expect(getLongUnitType('O')).toEqual('rodent')
expect(getLongUnitType('S')).toEqual('satyr')
Expand Down

0 comments on commit 279abb1

Please sign in to comment.