@windrosetools/windrosedata 0.0.1
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 -0
- package/README.md +120 -0
- package/data/alchemy.json +31 -0
- package/data/ammo.json +32 -0
- package/data/backpack.json +23 -0
- package/data/buildingElement.json +1757 -0
- package/data/cannon.json +11 -0
- package/data/crewEquipment.json +12 -0
- package/data/food.json +127 -0
- package/data/hullModification.json +12 -0
- package/data/item.json +44 -0
- package/data/medicine.json +30 -0
- package/data/metal.json +12 -0
- package/data/miscellaneous.json +100 -0
- package/data/resource.json +243 -0
- package/data/tool.json +52 -0
- package/dist/daos/alchemy.d.ts +23 -0
- package/dist/daos/alchemy.d.ts.map +1 -0
- package/dist/daos/alchemy.js +27 -0
- package/dist/daos/alchemy.js.map +1 -0
- package/dist/daos/ammo.d.ts +23 -0
- package/dist/daos/ammo.d.ts.map +1 -0
- package/dist/daos/ammo.js +27 -0
- package/dist/daos/ammo.js.map +1 -0
- package/dist/daos/backpack.d.ts +23 -0
- package/dist/daos/backpack.d.ts.map +1 -0
- package/dist/daos/backpack.js +27 -0
- package/dist/daos/backpack.js.map +1 -0
- package/dist/daos/buildingElement.d.ts +37 -0
- package/dist/daos/buildingElement.d.ts.map +1 -0
- package/dist/daos/buildingElement.js +34 -0
- package/dist/daos/buildingElement.js.map +1 -0
- package/dist/daos/cannon.d.ts +21 -0
- package/dist/daos/cannon.d.ts.map +1 -0
- package/dist/daos/cannon.js +26 -0
- package/dist/daos/cannon.js.map +1 -0
- package/dist/daos/crewEquipment.d.ts +21 -0
- package/dist/daos/crewEquipment.d.ts.map +1 -0
- package/dist/daos/crewEquipment.js +26 -0
- package/dist/daos/crewEquipment.js.map +1 -0
- package/dist/daos/food.d.ts +23 -0
- package/dist/daos/food.d.ts.map +1 -0
- package/dist/daos/food.js +27 -0
- package/dist/daos/food.js.map +1 -0
- package/dist/daos/helpers.d.ts +11 -0
- package/dist/daos/helpers.d.ts.map +1 -0
- package/dist/daos/helpers.js +34 -0
- package/dist/daos/helpers.js.map +1 -0
- package/dist/daos/hullModification.d.ts +21 -0
- package/dist/daos/hullModification.d.ts.map +1 -0
- package/dist/daos/hullModification.js +26 -0
- package/dist/daos/hullModification.js.map +1 -0
- package/dist/daos/item.d.ts +23 -0
- package/dist/daos/item.d.ts.map +1 -0
- package/dist/daos/item.js +27 -0
- package/dist/daos/item.js.map +1 -0
- package/dist/daos/medicine.d.ts +23 -0
- package/dist/daos/medicine.d.ts.map +1 -0
- package/dist/daos/medicine.js +27 -0
- package/dist/daos/medicine.js.map +1 -0
- package/dist/daos/metal.d.ts +19 -0
- package/dist/daos/metal.d.ts.map +1 -0
- package/dist/daos/metal.js +20 -0
- package/dist/daos/metal.js.map +1 -0
- package/dist/daos/metals.d.ts +19 -0
- package/dist/daos/metals.d.ts.map +1 -0
- package/dist/daos/metals.js +19 -0
- package/dist/daos/metals.js.map +1 -0
- package/dist/daos/miscellaneous.d.ts +23 -0
- package/dist/daos/miscellaneous.d.ts.map +1 -0
- package/dist/daos/miscellaneous.js +27 -0
- package/dist/daos/miscellaneous.js.map +1 -0
- package/dist/daos/requirements.d.ts +48 -0
- package/dist/daos/requirements.d.ts.map +1 -0
- package/dist/daos/requirements.js +242 -0
- package/dist/daos/requirements.js.map +1 -0
- package/dist/daos/resource.d.ts +23 -0
- package/dist/daos/resource.d.ts.map +1 -0
- package/dist/daos/resource.js +30 -0
- package/dist/daos/resource.js.map +1 -0
- package/dist/daos/resources.d.ts +24 -0
- package/dist/daos/resources.d.ts.map +1 -0
- package/dist/daos/resources.js +49 -0
- package/dist/daos/resources.js.map +1 -0
- package/dist/daos/tool.d.ts +23 -0
- package/dist/daos/tool.d.ts.map +1 -0
- package/dist/daos/tool.js +30 -0
- package/dist/daos/tool.js.map +1 -0
- package/dist/daos/tools.d.ts +24 -0
- package/dist/daos/tools.d.ts.map +1 -0
- package/dist/daos/tools.js +23 -0
- package/dist/daos/tools.js.map +1 -0
- package/dist/daos/validation.d.ts +2 -0
- package/dist/daos/validation.d.ts.map +1 -0
- package/dist/daos/validation.js +32 -0
- package/dist/daos/validation.js.map +1 -0
- package/dist/daos/versions.d.ts +18 -0
- package/dist/daos/versions.d.ts.map +1 -0
- package/dist/daos/versions.js +33 -0
- package/dist/daos/versions.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/languages.d.ts +1757 -0
- package/dist/languages.d.ts.map +1 -0
- package/dist/languages.js +44 -0
- package/dist/languages.js.map +1 -0
- package/dist/types/BuildingElement.d.ts +7 -0
- package/dist/types/BuildingElement.d.ts.map +1 -0
- package/dist/types/BuildingElement.js +8 -0
- package/dist/types/BuildingElement.js.map +1 -0
- package/dist/types/Rarity.d.ts +3 -0
- package/dist/types/Rarity.d.ts.map +1 -0
- package/dist/types/Rarity.js +4 -0
- package/dist/types/Rarity.js.map +1 -0
- package/dist/unifiedItems.d.ts +27 -0
- package/dist/unifiedItems.d.ts.map +1 -0
- package/dist/unifiedItems.js +47 -0
- package/dist/unifiedItems.js.map +1 -0
- package/dist/versions.d.ts +21 -0
- package/dist/versions.d.ts.map +1 -0
- package/dist/versions.js +36 -0
- package/dist/versions.js.map +1 -0
- package/languages/source/alchemy.json +36 -0
- package/languages/source/ammo.json +36 -0
- package/languages/source/backpack.json +18 -0
- package/languages/source/buildingElement.json +1567 -0
- package/languages/source/cannon.json +10 -0
- package/languages/source/crewEquipment.json +11 -0
- package/languages/source/food.json +164 -0
- package/languages/source/hullModification.json +10 -0
- package/languages/source/item.json +50 -0
- package/languages/source/medicine.json +39 -0
- package/languages/source/metal.json +11 -0
- package/languages/source/miscellaneous.json +147 -0
- package/languages/source/resource.json +300 -0
- package/languages/source/tool.json +44 -0
- package/package.json +41 -0
package/README.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Windrose Data
|
|
2
|
+
Welcome to the inofficial data repository for Windrose.
|
|
3
|
+
|
|
4
|
+
The repository hosts data and translations for most things in the game and is currently in the build-up, but will in the end feature information like required materials for **tools**, **building structures/elements** and various other information specific to the type of data.
|
|
5
|
+
|
|
6
|
+
> [!NOTE]
|
|
7
|
+
> The current release, 0.0.X, is based on the **demo** version of the game and acts as a starting point.\
|
|
8
|
+
> With the Early Access release will the data receive a bigger update and starts the regular version schema of 0.1.X.
|
|
9
|
+
|
|
10
|
+
## Data Structure Concept
|
|
11
|
+
Before using it, its important to understand that both the data and translations are structured in a **version historic** way, so each data object and translation contains its own history across the various versions. This offers the big feature of being able to load the data and translation for a specific game version on the fly via the npm package (see below).
|
|
12
|
+
|
|
13
|
+
## How to Use
|
|
14
|
+
|
|
15
|
+
### Package
|
|
16
|
+
Based on the data is the `windrosedata` npm package available, featuring access to the data with full types support and autocompletion.
|
|
17
|
+
|
|
18
|
+
**Installing the Package**
|
|
19
|
+
```
|
|
20
|
+
npm i @windrosetools/windrosedata
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Data
|
|
24
|
+
#### UnifiedItem
|
|
25
|
+
In general are all elements like items, ammunition, metals, building elements and more accessible via the `UnifiedItems` dao.
|
|
26
|
+
It exposes all shared properties as mandatory and those who appear only on some daos as optional fields.
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import { UnifiedItems, Version } from "@windrosetools/windrosedata";
|
|
30
|
+
|
|
31
|
+
const version: Version = "demo";
|
|
32
|
+
const resolvedItem = UnifiedItems[version]["homewardJourney"];
|
|
33
|
+
console.log(resolvedItem);
|
|
34
|
+
|
|
35
|
+
// Logs
|
|
36
|
+
Alchemy { // The returned element is using it's own correct type
|
|
37
|
+
id: 'homewardJourney',
|
|
38
|
+
rarity: 'rare',
|
|
39
|
+
stackLimit: 0,
|
|
40
|
+
required: {
|
|
41
|
+
alchemicalBase: { id: 'alchemicalBase', amount: 3, resolved: [Object] },
|
|
42
|
+
rumBottle: { id: 'rumBottle', amount: 2, resolved: [Object] },
|
|
43
|
+
feather: { id: 'feather', amount: 4, resolved: [Object] },
|
|
44
|
+
undeadEssence: { id: 'undeadEssence', amount: 1, resolved: [Object] }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// Each resolved value represents the resolved required material, so you don't need
|
|
48
|
+
// to look them up yourself.
|
|
49
|
+
|
|
50
|
+
const { id, rarity, requiresBonfire } = resolvedItem!;
|
|
51
|
+
console.log("id: %s, rarity: %s, requiresBonfire: %s", id, rarity, requiresBonfire);
|
|
52
|
+
// id: homewardJourney, rarity: rare, requiresBonfire: undefined - requiresBonfire is an optional
|
|
53
|
+
// property of UnifiedItem that is set for some building elements for example as such it appears,
|
|
54
|
+
// but is undefined in this case.
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
#### Direct
|
|
58
|
+
In addition to that can each type of element of course also be directly accessed by its corresponding dao.
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import { Alchemies, Version } from "@windrosetools/windrosedata";
|
|
62
|
+
|
|
63
|
+
const version: Version = "demo";
|
|
64
|
+
const data = Alchemies[version]["homewardJourney"];
|
|
65
|
+
console.log(data);
|
|
66
|
+
|
|
67
|
+
// Logs
|
|
68
|
+
Alchemy {
|
|
69
|
+
id: 'homewardJourney',
|
|
70
|
+
rarity: 'rare',
|
|
71
|
+
stackLimit: 0,
|
|
72
|
+
required: {
|
|
73
|
+
alchemicalBase: { id: 'alchemicalBase', amount: 3, resolved: [Object] },
|
|
74
|
+
rumBottle: { id: 'rumBottle', amount: 2, resolved: [Object] },
|
|
75
|
+
feather: { id: 'feather', amount: 4, resolved: [Object] },
|
|
76
|
+
undeadEssence: { id: 'undeadEssence', amount: 1, resolved: [Object] }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
### Translation
|
|
81
|
+
Based on the example above the translation data for homewardJourney can be easily retrieved by the following way:
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
import { Alchemies, Languages, Version } from "@windrosetools/windrosedata";
|
|
85
|
+
|
|
86
|
+
const version: Version = "demo";
|
|
87
|
+
const data = Alchemies[version]["homewardJourney"];
|
|
88
|
+
|
|
89
|
+
const translation = Languages["EN"][version]["homewardJourney"]; // type of LanguageData
|
|
90
|
+
console.log(translation);
|
|
91
|
+
|
|
92
|
+
// Logs
|
|
93
|
+
{
|
|
94
|
+
name: 'Homeward Journey',
|
|
95
|
+
description: [
|
|
96
|
+
'A light drink with a slightly sweet taste.',
|
|
97
|
+
"Too bad it isn't easy to make -- rare ingredients are required."
|
|
98
|
+
],
|
|
99
|
+
comment: [
|
|
100
|
+
"To leave a midnight tavern and wake up in a sweat-soaked bed with no idea how you got there - that's magic practiced only by Tortuga's most seasoned 'wizards.'"
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Contribute
|
|
106
|
+
If you like the project please give it a ⭐ here on Github.
|
|
107
|
+
|
|
108
|
+
As the game is quite big every contribution is appreciated to make the data as complete as possible!
|
|
109
|
+
|
|
110
|
+
There are several ways to contribute to the project.
|
|
111
|
+
|
|
112
|
+
### Reporting wrong or outdated information
|
|
113
|
+
If you have noticed a wrong or outdated information please open an [Issue](https://github.com/WindroseTools/WindroseData/issues) so it can be checked and corrected quickly.
|
|
114
|
+
|
|
115
|
+
### Adding or updating information
|
|
116
|
+
If you want to add to or update information of the dataset, the general open source approach of a Pull Request is used.\
|
|
117
|
+
Which consists 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. Pull Requests need to made against the **nightly** branch!
|
|
118
|
+
|
|
119
|
+
## Questions
|
|
120
|
+
If you have any questions regarding the data or on one of the points above please use the [Windrose Tools Discord](https://discord.gg/7mYQ5fPtE3).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"homewardJourney": {
|
|
3
|
+
"demo": {
|
|
4
|
+
"rarity": "rare",
|
|
5
|
+
"stackLimit": 0,
|
|
6
|
+
"required": {
|
|
7
|
+
"alchemicalBase": 3,
|
|
8
|
+
"rumBottle": 2,
|
|
9
|
+
"feather": 4,
|
|
10
|
+
"undeadEssence": 1
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"undeadEssence": {
|
|
15
|
+
"demo": {
|
|
16
|
+
"rarity": "rare",
|
|
17
|
+
"stackLimit": 0
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"elixirOfFirmHand": {
|
|
21
|
+
"demo": {
|
|
22
|
+
"rarity": "rare",
|
|
23
|
+
"stackLimit": 0,
|
|
24
|
+
"required": {
|
|
25
|
+
"alchemicalBase": 1,
|
|
26
|
+
"boarTusk": 1,
|
|
27
|
+
"pearl": 1
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
package/data/ammo.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"copperBullet": {
|
|
3
|
+
"demo": {
|
|
4
|
+
"rarity": "uncommon",
|
|
5
|
+
"stackLimit": 20,
|
|
6
|
+
"required": {
|
|
7
|
+
"copperIngot": 0.2
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"stoneBullet": {
|
|
12
|
+
"demo": {
|
|
13
|
+
"rarity": "uncommon",
|
|
14
|
+
"stackLimit": 20,
|
|
15
|
+
"required": {
|
|
16
|
+
"stone": 0.6
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"homemadeGunpowder": {
|
|
21
|
+
"demo": {
|
|
22
|
+
"rarity": "uncommon",
|
|
23
|
+
"stackLimit": 0
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"ironBullet": {
|
|
27
|
+
"demo": {
|
|
28
|
+
"rarity": "uncommon",
|
|
29
|
+
"stackLimit": 0
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tornSailclothBag": {
|
|
3
|
+
"demo": {
|
|
4
|
+
"rarity": "uncommon",
|
|
5
|
+
"stackLimit": 1,
|
|
6
|
+
"required": {
|
|
7
|
+
"coarseFabric": 2,
|
|
8
|
+
"rope": 1
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"sailorBackpack": {
|
|
13
|
+
"demo": {
|
|
14
|
+
"rarity": "uncommon",
|
|
15
|
+
"stackLimit": 1,
|
|
16
|
+
"required": {
|
|
17
|
+
"tornSailclothBag": 1,
|
|
18
|
+
"roughHide": 5,
|
|
19
|
+
"copperIngot": 2
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|