@skullandbonestools/snbdata 8.0.11 → 8.0.12
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/LICENSE +661 -661
- package/README.md +105 -105
- package/data/achievements.json +738 -738
- package/data/commodities.json +367 -367
- package/data/contracts.json +287 -287
- package/data/cosmetics.json +31606 -31250
- package/data/events.json +49 -49
- package/data/factions.json +135 -135
- package/data/items.json +16089 -16076
- package/data/materials.json +937 -937
- package/data/modifications.json +1579 -1579
- package/data/regions.json +25 -25
- package/data/seasons.json +64 -64
- package/data/sets.json +1681 -1661
- package/data/ships.json +946 -946
- package/data/territories.json +407 -407
- package/data/ultimates.json +108 -108
- package/data/worldEvents.json +395 -383
- package/dist/data_providers/seasons.d.ts +16 -0
- package/dist/data_providers/seasons.d.ts.map +1 -0
- package/dist/data_providers/seasons.js +19 -0
- package/dist/data_providers/seasons.js.map +1 -0
- package/dist/data_providers/ships.d.ts +64 -0
- package/dist/data_providers/ships.d.ts.map +1 -0
- package/dist/data_providers/ships.js +45 -0
- package/dist/data_providers/ships.js.map +1 -0
- package/dist/types/ShipSize.d.ts +2 -0
- package/dist/types/ShipSize.d.ts.map +1 -0
- package/dist/types/ShipSize.js +2 -0
- package/dist/types/ShipSize.js.map +1 -0
- package/dist/types/SlotWithGunports.d.ts +8 -0
- package/dist/types/SlotWithGunports.d.ts.map +1 -0
- package/dist/types/SlotWithGunports.js +2 -0
- package/dist/types/SlotWithGunports.js.map +1 -0
- package/languages/ar/ar_achievements.json +271 -271
- package/languages/ar/ar_commodities.json +299 -299
- package/languages/ar/ar_contracts.json +98 -98
- package/languages/ar/ar_cosmetics.json +21771 -21543
- package/languages/ar/ar_events.json +15 -15
- package/languages/ar/ar_factions.json +69 -69
- package/languages/ar/ar_items.json +3113 -3107
- package/languages/ar/ar_locations.json +268 -261
- package/languages/ar/ar_materials.json +631 -631
- package/languages/ar/ar_modifications.json +446 -446
- package/languages/ar/ar_perks.json +3144 -3144
- package/languages/ar/ar_regions.json +15 -15
- package/languages/ar/ar_seasons.json +12 -12
- package/languages/ar/ar_sets.json +423 -418
- package/languages/ar/ar_ships.json +111 -111
- package/languages/ar/ar_territories.json +177 -177
- package/languages/ar/ar_ultimates.json +47 -47
- package/languages/ar/ar_worldEvents.json +82 -80
- package/languages/de/de_achievements.json +271 -271
- package/languages/de/de_commodities.json +299 -299
- package/languages/de/de_contracts.json +98 -98
- package/languages/de/de_cosmetics.json +21771 -21543
- package/languages/de/de_events.json +15 -15
- package/languages/de/de_factions.json +69 -69
- package/languages/de/de_items.json +3113 -3107
- package/languages/de/de_locations.json +268 -261
- package/languages/de/de_materials.json +631 -631
- package/languages/de/de_modifications.json +446 -446
- package/languages/de/de_perks.json +3144 -3144
- package/languages/de/de_seasons.json +12 -12
- package/languages/de/de_sets.json +423 -418
- package/languages/de/de_ships.json +111 -111
- package/languages/de/de_worldEvents.json +82 -80
- package/languages/en/en_achievements.json +271 -271
- package/languages/en/en_commodities.json +299 -299
- package/languages/en/en_contracts.json +98 -98
- package/languages/en/en_cosmetics.json +21771 -21543
- package/languages/en/en_events.json +15 -15
- package/languages/en/en_factions.json +69 -69
- package/languages/en/en_items.json +3113 -3107
- package/languages/en/en_locations.json +268 -261
- package/languages/en/en_materials.json +631 -631
- package/languages/en/en_modifications.json +446 -446
- package/languages/en/en_perks.json +3144 -3144
- package/languages/en/en_regions.json +15 -15
- package/languages/en/en_seasons.json +12 -12
- package/languages/en/en_sets.json +423 -418
- package/languages/en/en_ships.json +111 -111
- package/languages/en/en_territories.json +177 -177
- package/languages/en/en_ultimates.json +47 -47
- package/languages/en/en_worldEvents.json +82 -80
- package/languages/es/es_achievements.json +271 -271
- package/languages/es/es_commodities.json +299 -299
- package/languages/es/es_contracts.json +98 -98
- package/languages/es/es_cosmetics.json +21771 -21543
- package/languages/es/es_events.json +15 -15
- package/languages/es/es_factions.json +69 -69
- package/languages/es/es_items.json +3113 -3107
- package/languages/es/es_locations.json +268 -261
- package/languages/es/es_materials.json +631 -631
- package/languages/es/es_modifications.json +446 -446
- package/languages/es/es_perks.json +3144 -3144
- package/languages/es/es_regions.json +15 -15
- package/languages/es/es_seasons.json +12 -12
- package/languages/es/es_sets.json +423 -418
- package/languages/es/es_ships.json +111 -111
- package/languages/es/es_territories.json +177 -177
- package/languages/es/es_ultimates.json +47 -47
- package/languages/es/es_worldEvents.json +82 -80
- package/languages/fr/fr_achievements.json +271 -271
- package/languages/fr/fr_commodities.json +299 -299
- package/languages/fr/fr_contracts.json +98 -98
- package/languages/fr/fr_cosmetics.json +21771 -21543
- package/languages/fr/fr_events.json +15 -15
- package/languages/fr/fr_factions.json +69 -69
- package/languages/fr/fr_items.json +3113 -3107
- package/languages/fr/fr_locations.json +268 -261
- package/languages/fr/fr_materials.json +631 -631
- package/languages/fr/fr_modifications.json +446 -446
- package/languages/fr/fr_perks.json +3144 -3144
- package/languages/fr/fr_regions.json +15 -15
- package/languages/fr/fr_seasons.json +12 -12
- package/languages/fr/fr_sets.json +423 -418
- package/languages/fr/fr_ships.json +111 -111
- package/languages/fr/fr_territories.json +177 -177
- package/languages/fr/fr_ultimates.json +47 -47
- package/languages/fr/fr_worldEvents.json +82 -80
- package/languages/source/achievements.json +271 -271
- package/languages/source/commodities.json +299 -299
- package/languages/source/contracts.json +98 -98
- package/languages/source/cosmetics.json +21771 -21543
- package/languages/source/events.json +15 -15
- package/languages/source/factions.json +69 -69
- package/languages/source/items.json +3113 -3107
- package/languages/source/locations.json +268 -261
- package/languages/source/materials.json +631 -631
- package/languages/source/modifications.json +446 -446
- package/languages/source/perks.json +3144 -3144
- package/languages/source/regions.json +15 -15
- package/languages/source/seasons.json +12 -12
- package/languages/source/sets.json +423 -418
- package/languages/source/ships.json +111 -111
- package/languages/source/territories.json +177 -177
- package/languages/source/ultimates.json +47 -47
- package/languages/source/worldEvents.json +82 -80
- package/languages/zh/zh_achievements.json +271 -271
- package/languages/zh/zh_commodities.json +299 -299
- package/languages/zh/zh_contracts.json +98 -98
- package/languages/zh/zh_cosmetics.json +21771 -21543
- package/languages/zh/zh_events.json +15 -15
- package/languages/zh/zh_factions.json +69 -69
- package/languages/zh/zh_items.json +3113 -3107
- package/languages/zh/zh_locations.json +268 -261
- package/languages/zh/zh_materials.json +631 -631
- package/languages/zh/zh_modifications.json +446 -446
- package/languages/zh/zh_perks.json +3144 -3144
- package/languages/zh/zh_regions.json +15 -15
- package/languages/zh/zh_seasons.json +12 -12
- package/languages/zh/zh_sets.json +423 -418
- package/languages/zh/zh_ships.json +111 -111
- package/languages/zh/zh_territories.json +177 -177
- package/languages/zh/zh_ultimates.json +47 -47
- package/languages/zh/zh_worldEvents.json +82 -80
- package/package.json +42 -42
package/README.md
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
# Skull and Bones Data
|
|
2
|
-
[](https://github.com/SkullAndBonesTools/SkullAndBonesData/releases/latest) [](https://www.npmjs.com/package/@skullandbonestools/snbdata) [](https://crowdin.com/project/skull-and-bones-tools)
|
|
3
|
-
|
|
4
|
-
Welcome to the inofficial data repository for the Skull and Bones game by Ubisoft.
|
|
5
|
-
|
|
6
|
-
This repository hosts data for the several elements in the game like **Materials**, **Items**, **Cosmetics** and more in a JSON format and provides a npm package to access the data in typescript and javascript.
|
|
7
|
-
|
|
8
|
-
This project is also compliant with the Terms of Service of Skull and Bones and approved by Ubisoft, as the data was/is collected and written down by hand and not acquired in other ways.
|
|
9
|
-
|
|
10
|
-
For each update of the game a new release is provided containing the updated files which can be found under the [Releases](https://github.com/SkullAndBonesTools/SkullAndBonesData/releases) section.
|
|
11
|
-
|
|
12
|
-
The version schema of the release is tied to the Skull and Bones version the data represents and put together like so:\
|
|
13
|
-
**Example**: snbdata@5.1.2
|
|
14
|
-
```
|
|
15
|
-
5 - Season (a year has 4 seasons, so season 5 = Y2S1)
|
|
16
|
-
1 - Patch Level
|
|
17
|
-
4 - Bug Fixes / Minor Changes (this one is related to releases of this repository)
|
|
18
|
-
|
|
19
|
-
This represents the SnB game version Y2S1.1.X
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
*Because the first published version of the package was for Y2S1, so season 5 of Skull and Bones, the first release was the 5.0.0.*
|
|
23
|
-
|
|
24
|
-
## How to Use
|
|
25
|
-
### Raw Data
|
|
26
|
-
You can find the raw data files as JSON in the [data](https://github.com/SkullAndBonesTools/SkullAndBonesData/tree/main/data) folder.
|
|
27
|
-
|
|
28
|
-
### Package
|
|
29
|
-
Based on the raw data is the `snbdata` npm package available, featuring access to the data as objects with type safety and autocompletion.
|
|
30
|
-
|
|
31
|
-
#### Guide
|
|
32
|
-
**Install the Package**
|
|
33
|
-
```
|
|
34
|
-
npm i @skullandbonestools/snbdata
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
**Access the Data**\
|
|
38
|
-
Below are just some examples on how to access certain datasets, a full overview including examples can be found on the wiki page [Datasets](https://github.com/SkullAndBonesTools/SkullAndBonesData/wiki/Datasets).
|
|
39
|
-
|
|
40
|
-
**Ships**\
|
|
41
|
-
Getting the season of the `Barque` (TS):
|
|
42
|
-
```typescript
|
|
43
|
-
import { Ships } from "@skullandbonestools/snbdata";
|
|
44
|
-
import { Season } from '@skullandbonestools/snbdata/dist/daos/seasons';
|
|
45
|
-
|
|
46
|
-
const season:Season = Ships.barque.season; // Retrieves the season object for the barque
|
|
47
|
-
console.log(season.id); // Returns ragingTides
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
**Cosmetics / Items**\
|
|
51
|
-
Getting the `aBloodyPromise` sails emblem and printing all its properties.
|
|
52
|
-
```javascript
|
|
53
|
-
import { Cosmetics, Items } from '@skullandbonestools/snbdata';
|
|
54
|
-
import { Cosmetic } from '@skullandbonestools/snbdata/dist/daos/cosmetics'; //TS type
|
|
55
|
-
|
|
56
|
-
const aBloodyPromise = Cosmetics.aBloodyPromise; // Works the same for items e.g. Items.heydensGuard
|
|
57
|
-
Object.entries(aBloodyPromise).forEach(([key, value]) => {
|
|
58
|
-
if(!value) return;
|
|
59
|
-
console.log(`${key}: ${value}`);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
// Output
|
|
63
|
-
id: aBloodyPromise
|
|
64
|
-
type: sailsEmblem
|
|
65
|
-
dateAdded: 2024-03-16
|
|
66
|
-
lastUpdated: 2024-03-30
|
|
67
|
-
set: ashenCorsair
|
|
68
|
-
obtainable: premiumEdition
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Translation
|
|
72
|
-
You can find all translations of the data in several languages in the [languages](https://github.com/SkullAndBonesTools/SkullAndBonesData/tree/main/languages) folder.\
|
|
73
|
-
The translations are maintained on and automatically pulled before each release from [Crowdin](#adding-translations-for-the-data).
|
|
74
|
-
|
|
75
|
-
## History
|
|
76
|
-
The data available in the repository was originally put together for [Skull and Bones Tools](https://skullandbonestools.de) and got published with **Year 2 Season 1 - Ascent into Chaos** with the goal of supporting other creators and to promote up to date informations by allowing everyone to contribute to the dataset.
|
|
77
|
-
|
|
78
|
-
## Contribute
|
|
79
|
-
If you like the project please give it a ⭐ here on Github.
|
|
80
|
-
|
|
81
|
-
There are several ways to contribute to the project:
|
|
82
|
-
|
|
83
|
-
### Reporting wrong or outdated informations
|
|
84
|
-
If you have noticed a wrong or outdated informations please open an **Issue** so it can be checked and corrected quickly.
|
|
85
|
-
|
|
86
|
-
### Adding translations for the data
|
|
87
|
-
The project uses Crowdin to translate all the data, where everyone can contribute.
|
|
88
|
-
You can find it here: https://crowdin.com/project/skull-and-bones-tools
|
|
89
|
-
|
|
90
|
-
### Adding or updating informations
|
|
91
|
-
If you want to add to or update informations of the dataset, the general open source approach of a Pull Request is used.
|
|
92
|
-
Which consits of creating a **Fork**, adding/updating the code in the forked repository and then creating a **Pull Request** in this repository to merge the changes of your fork into this one.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
## Sponsor
|
|
96
|
-
### Crowdin
|
|
97
|
-
Skull and Bones Data is, as part of the Skull and Bones Tools project, supported by Crowdin 💚
|
|
98
|
-
|
|
99
|
-
[](https://crowdin.com/)
|
|
100
|
-
|
|
101
|
-
Allowing me to provide a direct integration into this github project, an overview of all translations and an easy way for everyone to participate in the translation of the project.
|
|
102
|
-
|
|
103
|
-
## Support
|
|
104
|
-
For general questions or support of any kind you can use the official Skull and Bones Tools Discord (https://discord.gg/fTgvPxR7eR) or the support@skullandbonestools.de email.
|
|
105
|
-
|
|
1
|
+
# Skull and Bones Data
|
|
2
|
+
[](https://github.com/SkullAndBonesTools/SkullAndBonesData/releases/latest) [](https://www.npmjs.com/package/@skullandbonestools/snbdata) [](https://crowdin.com/project/skull-and-bones-tools)
|
|
3
|
+
|
|
4
|
+
Welcome to the inofficial data repository for the Skull and Bones game by Ubisoft.
|
|
5
|
+
|
|
6
|
+
This repository hosts data for the several elements in the game like **Materials**, **Items**, **Cosmetics** and more in a JSON format and provides a npm package to access the data in typescript and javascript.
|
|
7
|
+
|
|
8
|
+
This project is also compliant with the Terms of Service of Skull and Bones and approved by Ubisoft, as the data was/is collected and written down by hand and not acquired in other ways.
|
|
9
|
+
|
|
10
|
+
For each update of the game a new release is provided containing the updated files which can be found under the [Releases](https://github.com/SkullAndBonesTools/SkullAndBonesData/releases) section.
|
|
11
|
+
|
|
12
|
+
The version schema of the release is tied to the Skull and Bones version the data represents and put together like so:\
|
|
13
|
+
**Example**: snbdata@5.1.2
|
|
14
|
+
```
|
|
15
|
+
5 - Season (a year has 4 seasons, so season 5 = Y2S1)
|
|
16
|
+
1 - Patch Level
|
|
17
|
+
4 - Bug Fixes / Minor Changes (this one is related to releases of this repository)
|
|
18
|
+
|
|
19
|
+
This represents the SnB game version Y2S1.1.X
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
*Because the first published version of the package was for Y2S1, so season 5 of Skull and Bones, the first release was the 5.0.0.*
|
|
23
|
+
|
|
24
|
+
## How to Use
|
|
25
|
+
### Raw Data
|
|
26
|
+
You can find the raw data files as JSON in the [data](https://github.com/SkullAndBonesTools/SkullAndBonesData/tree/main/data) folder.
|
|
27
|
+
|
|
28
|
+
### Package
|
|
29
|
+
Based on the raw data is the `snbdata` npm package available, featuring access to the data as objects with type safety and autocompletion.
|
|
30
|
+
|
|
31
|
+
#### Guide
|
|
32
|
+
**Install the Package**
|
|
33
|
+
```
|
|
34
|
+
npm i @skullandbonestools/snbdata
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Access the Data**\
|
|
38
|
+
Below are just some examples on how to access certain datasets, a full overview including examples can be found on the wiki page [Datasets](https://github.com/SkullAndBonesTools/SkullAndBonesData/wiki/Datasets).
|
|
39
|
+
|
|
40
|
+
**Ships**\
|
|
41
|
+
Getting the season of the `Barque` (TS):
|
|
42
|
+
```typescript
|
|
43
|
+
import { Ships } from "@skullandbonestools/snbdata";
|
|
44
|
+
import { Season } from '@skullandbonestools/snbdata/dist/daos/seasons';
|
|
45
|
+
|
|
46
|
+
const season:Season = Ships.barque.season; // Retrieves the season object for the barque
|
|
47
|
+
console.log(season.id); // Returns ragingTides
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Cosmetics / Items**\
|
|
51
|
+
Getting the `aBloodyPromise` sails emblem and printing all its properties.
|
|
52
|
+
```javascript
|
|
53
|
+
import { Cosmetics, Items } from '@skullandbonestools/snbdata';
|
|
54
|
+
import { Cosmetic } from '@skullandbonestools/snbdata/dist/daos/cosmetics'; //TS type
|
|
55
|
+
|
|
56
|
+
const aBloodyPromise = Cosmetics.aBloodyPromise; // Works the same for items e.g. Items.heydensGuard
|
|
57
|
+
Object.entries(aBloodyPromise).forEach(([key, value]) => {
|
|
58
|
+
if(!value) return;
|
|
59
|
+
console.log(`${key}: ${value}`);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
// Output
|
|
63
|
+
id: aBloodyPromise
|
|
64
|
+
type: sailsEmblem
|
|
65
|
+
dateAdded: 2024-03-16
|
|
66
|
+
lastUpdated: 2024-03-30
|
|
67
|
+
set: ashenCorsair
|
|
68
|
+
obtainable: premiumEdition
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Translation
|
|
72
|
+
You can find all translations of the data in several languages in the [languages](https://github.com/SkullAndBonesTools/SkullAndBonesData/tree/main/languages) folder.\
|
|
73
|
+
The translations are maintained on and automatically pulled before each release from [Crowdin](#adding-translations-for-the-data).
|
|
74
|
+
|
|
75
|
+
## History
|
|
76
|
+
The data available in the repository was originally put together for [Skull and Bones Tools](https://skullandbonestools.de) and got published with **Year 2 Season 1 - Ascent into Chaos** with the goal of supporting other creators and to promote up to date informations by allowing everyone to contribute to the dataset.
|
|
77
|
+
|
|
78
|
+
## Contribute
|
|
79
|
+
If you like the project please give it a ⭐ here on Github.
|
|
80
|
+
|
|
81
|
+
There are several ways to contribute to the project:
|
|
82
|
+
|
|
83
|
+
### Reporting wrong or outdated informations
|
|
84
|
+
If you have noticed a wrong or outdated informations please open an **Issue** so it can be checked and corrected quickly.
|
|
85
|
+
|
|
86
|
+
### Adding translations for the data
|
|
87
|
+
The project uses Crowdin to translate all the data, where everyone can contribute.
|
|
88
|
+
You can find it here: https://crowdin.com/project/skull-and-bones-tools
|
|
89
|
+
|
|
90
|
+
### Adding or updating informations
|
|
91
|
+
If you want to add to or update informations of the dataset, the general open source approach of a Pull Request is used.
|
|
92
|
+
Which consits of creating a **Fork**, adding/updating the code in the forked repository and then creating a **Pull Request** in this repository to merge the changes of your fork into this one.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## Sponsor
|
|
96
|
+
### Crowdin
|
|
97
|
+
Skull and Bones Data is, as part of the Skull and Bones Tools project, supported by Crowdin 💚
|
|
98
|
+
|
|
99
|
+
[](https://crowdin.com/)
|
|
100
|
+
|
|
101
|
+
Allowing me to provide a direct integration into this github project, an overview of all translations and an easy way for everyone to participate in the translation of the project.
|
|
102
|
+
|
|
103
|
+
## Support
|
|
104
|
+
For general questions or support of any kind you can use the official Skull and Bones Tools Discord (https://discord.gg/fTgvPxR7eR) or the support@skullandbonestools.de email.
|
|
105
|
+
|
|
106
106
|
For any business inquiries or related questions please use the contact@skullandbonestools.de email.
|