coh-content-db-homecoming 2.0.0-rc.6 → 2.0.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -1
- package/README.md +12 -2
- package/dist/bundle.head.json +1 -1
- package/dist/bundle.json +1 -1
- package/dist/coh-content-db-homecoming.js +46 -1
- package/dist/coh-content-db-homecoming.js.map +1 -1
- package/dist/coh-content-db-homecoming.mjs +46 -1
- package/dist/coh-content-db-homecoming.mjs.map +1 -1
- package/package.json +2 -2
- package/src/main/resources/images/badges/event/cheers.png +0 -0
- package/src/main/resources/images/badges/event/mafioso.png +0 -0
- package/src/main/resources/images/badges/event/skull-killer.png +0 -0
- package/src/main/ts/badge/event/_event-badges.ts +6 -0
- package/src/main/ts/badge/event/cheers.ts +15 -0
- package/src/main/ts/badge/event/mafioso.ts +15 -0
- package/src/main/ts/badge/event/skull-killer.ts +15 -0
- package/src/test/ts/badge-fields.test.ts +1 -2
- package/src/test/ts/badge-markdown-fields.test.ts +1 -2
- package/src/test/ts/badge-requirements.test.ts +1 -2
- package/src/test/ts/homecoming.test.ts +2 -4
- package/src/test/ts/link-tests.test.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coh-content-db-homecoming",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.7",
|
|
4
4
|
"description": "City of Heroes Homecoming Content Database",
|
|
5
5
|
"homepage": "https://github.com/n15g/coh-content-db-homecoming#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"valid-url": "^1.0.9"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"coh-content-db": "^2.0.0-rc.
|
|
51
|
+
"coh-content-db": "^2.0.0-rc.10"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=22"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -102,6 +102,9 @@ import { ChaosSpiel } from './chaos-spiel'
|
|
|
102
102
|
import { DownInFront } from './down-in-front'
|
|
103
103
|
import { Officiator } from './officiator'
|
|
104
104
|
import { WeddingCrasher } from './wedding-crasher'
|
|
105
|
+
import { Cheers } from './cheers'
|
|
106
|
+
import { Mafioso } from './mafioso'
|
|
107
|
+
import { SkullKiller } from './skull-killer'
|
|
105
108
|
|
|
106
109
|
export const EVENT_BADGES: BadgeData[] = [
|
|
107
110
|
Celebrant,
|
|
@@ -125,8 +128,11 @@ export const EVENT_BADGES: BadgeData[] = [
|
|
|
125
128
|
Unforgettable,
|
|
126
129
|
Reunited,
|
|
127
130
|
TimeKeeper,
|
|
131
|
+
Cheers,
|
|
128
132
|
Gardener,
|
|
129
133
|
ZetaReticulan,
|
|
134
|
+
Mafioso,
|
|
135
|
+
SkullKiller,
|
|
130
136
|
Pursuer,
|
|
131
137
|
HallowSpirit,
|
|
132
138
|
IronWarrior,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BadgeData } from 'coh-content-db'
|
|
2
|
+
|
|
3
|
+
export const Cheers: BadgeData = {
|
|
4
|
+
type: 'event',
|
|
5
|
+
key: 'cheers',
|
|
6
|
+
setTitleId: [2552],
|
|
7
|
+
name: 'Cheers!',
|
|
8
|
+
morality: 'all',
|
|
9
|
+
badgeText: `You have helped celebrate the 21st anniversary of City of Heroes.`,
|
|
10
|
+
acquisition: `Awarded upon login during May 2025, and thereafter available for purchase from Luna in Ouroboros during the anniversary event in May.`,
|
|
11
|
+
links: [
|
|
12
|
+
{ title: 'Cheers!', href: 'https://homecoming.wiki/wiki/Cheers_Badge' },
|
|
13
|
+
],
|
|
14
|
+
icon: 'https://n15g.github.io/coh-content-db-homecoming/images/badges/event/cheers.png',
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BadgeData } from 'coh-content-db'
|
|
2
|
+
|
|
3
|
+
export const Mafioso: BadgeData = {
|
|
4
|
+
type: 'event',
|
|
5
|
+
key: 'mafioso',
|
|
6
|
+
setTitleId: [2553],
|
|
7
|
+
name: 'Mafioso',
|
|
8
|
+
morality: 'all',
|
|
9
|
+
badgeText: `You've relived the past by defeating 25 of the old school Family found during the City of Heroes Anniversary Event.`,
|
|
10
|
+
acquisition: `Defeat 25 old school Family spawned from time capsules during the anniversary event.`,
|
|
11
|
+
links: [
|
|
12
|
+
{ title: 'Mafioso', href: 'https://homecoming.wiki/wiki/Mafioso_Badge' },
|
|
13
|
+
],
|
|
14
|
+
icon: 'https://n15g.github.io/coh-content-db-homecoming/images/badges/event/mafioso.png',
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BadgeData } from 'coh-content-db'
|
|
2
|
+
|
|
3
|
+
export const SkullKiller: BadgeData = {
|
|
4
|
+
type: 'event',
|
|
5
|
+
key: 'skull-killer',
|
|
6
|
+
setTitleId: [2553],
|
|
7
|
+
name: 'Skull Killer',
|
|
8
|
+
morality: 'all',
|
|
9
|
+
badgeText: `You've relived the past by defeating 25 of the old school Skulls found during the City of Heroes Anniversary Event.`,
|
|
10
|
+
acquisition: `Defeat 25 old school Skulls spawned from time capsules during the anniversary event.`,
|
|
11
|
+
links: [
|
|
12
|
+
{ title: 'Skull Killer', href: 'https://homecoming.wiki/wiki/Skull_Killer_Badge' },
|
|
13
|
+
],
|
|
14
|
+
icon: 'https://n15g.github.io/coh-content-db-homecoming/images/badges/event/skull-killer.png',
|
|
15
|
+
}
|
|
@@ -2,8 +2,7 @@ import { BADGES } from '../../main/ts/badge/_badges'
|
|
|
2
2
|
import { CohContentDatabase } from 'coh-content-db'
|
|
3
3
|
import { HOMECOMING } from '../../main/ts'
|
|
4
4
|
|
|
5
|
-
const TEST_DATABASE = new CohContentDatabase()
|
|
6
|
-
TEST_DATABASE.load(HOMECOMING)
|
|
5
|
+
const TEST_DATABASE = new CohContentDatabase(HOMECOMING)
|
|
7
6
|
|
|
8
7
|
describe('Badge Fields', () => {
|
|
9
8
|
test('should have at least an acquisition or explicit requirements', () => {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { CohContentDatabase } from 'coh-content-db'
|
|
2
2
|
import { HOMECOMING } from '../../main/ts'
|
|
3
3
|
|
|
4
|
-
const TEST_DATABASE = new CohContentDatabase()
|
|
5
|
-
TEST_DATABASE.load(HOMECOMING)
|
|
4
|
+
const TEST_DATABASE = new CohContentDatabase(HOMECOMING)
|
|
6
5
|
|
|
7
6
|
const LINK_PATTERN = /\((badge|zone|contact|mission):\/\/([^)]*)\)/g
|
|
8
7
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { CohContentDatabase } from 'coh-content-db'
|
|
2
2
|
import { HOMECOMING } from '../../main/ts'
|
|
3
3
|
|
|
4
|
-
const TEST_DATABASE = new CohContentDatabase()
|
|
5
|
-
TEST_DATABASE.load(HOMECOMING)
|
|
4
|
+
const TEST_DATABASE = new CohContentDatabase(HOMECOMING)
|
|
6
5
|
|
|
7
6
|
describe('Badge Requirements', () => {
|
|
8
7
|
test('should only contain valid references', () => {
|
|
@@ -12,8 +12,7 @@ describe('HOMECOMING', () => {
|
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test('should load into the db correctly', () => {
|
|
15
|
-
const database = new CohContentDatabase()
|
|
16
|
-
database.load(HOMECOMING)
|
|
15
|
+
const database = new CohContentDatabase(HOMECOMING)
|
|
17
16
|
|
|
18
17
|
expect(database.header?.name).toBe('Homecoming')
|
|
19
18
|
expect(database.getBadge('received-the-atlas-medallion')?.type).toBe('accolade')
|
|
@@ -27,8 +26,7 @@ describe('HOMECOMING', () => {
|
|
|
27
26
|
const fromJson = JSON.parse(jsonString) as BundleData
|
|
28
27
|
expect(fromJson).toStrictEqual(HOMECOMING)
|
|
29
28
|
|
|
30
|
-
const database = new CohContentDatabase()
|
|
31
|
-
database.load(fromJson)
|
|
29
|
+
const database = new CohContentDatabase(fromJson)
|
|
32
30
|
expect(database.header?.name).toBe('Homecoming')
|
|
33
31
|
expect(database.getBadge('received-the-atlas-medallion')?.type).toBe('accolade')
|
|
34
32
|
})
|
|
@@ -2,8 +2,7 @@ import { isValidProtocol, isValidUrl } from '../../main/ts/utils/uri-utils'
|
|
|
2
2
|
import { CohContentDatabase } from 'coh-content-db'
|
|
3
3
|
import { HOMECOMING } from '../../main/ts'
|
|
4
4
|
|
|
5
|
-
const TEST_DATABASE = new CohContentDatabase()
|
|
6
|
-
TEST_DATABASE.load(HOMECOMING)
|
|
5
|
+
const TEST_DATABASE = new CohContentDatabase(HOMECOMING)
|
|
7
6
|
|
|
8
7
|
describe('Metadata', () => {
|
|
9
8
|
test('should not contain any http links', () => {
|