@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.
Files changed (139) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +120 -0
  3. package/data/alchemy.json +31 -0
  4. package/data/ammo.json +32 -0
  5. package/data/backpack.json +23 -0
  6. package/data/buildingElement.json +1757 -0
  7. package/data/cannon.json +11 -0
  8. package/data/crewEquipment.json +12 -0
  9. package/data/food.json +127 -0
  10. package/data/hullModification.json +12 -0
  11. package/data/item.json +44 -0
  12. package/data/medicine.json +30 -0
  13. package/data/metal.json +12 -0
  14. package/data/miscellaneous.json +100 -0
  15. package/data/resource.json +243 -0
  16. package/data/tool.json +52 -0
  17. package/dist/daos/alchemy.d.ts +23 -0
  18. package/dist/daos/alchemy.d.ts.map +1 -0
  19. package/dist/daos/alchemy.js +27 -0
  20. package/dist/daos/alchemy.js.map +1 -0
  21. package/dist/daos/ammo.d.ts +23 -0
  22. package/dist/daos/ammo.d.ts.map +1 -0
  23. package/dist/daos/ammo.js +27 -0
  24. package/dist/daos/ammo.js.map +1 -0
  25. package/dist/daos/backpack.d.ts +23 -0
  26. package/dist/daos/backpack.d.ts.map +1 -0
  27. package/dist/daos/backpack.js +27 -0
  28. package/dist/daos/backpack.js.map +1 -0
  29. package/dist/daos/buildingElement.d.ts +37 -0
  30. package/dist/daos/buildingElement.d.ts.map +1 -0
  31. package/dist/daos/buildingElement.js +34 -0
  32. package/dist/daos/buildingElement.js.map +1 -0
  33. package/dist/daos/cannon.d.ts +21 -0
  34. package/dist/daos/cannon.d.ts.map +1 -0
  35. package/dist/daos/cannon.js +26 -0
  36. package/dist/daos/cannon.js.map +1 -0
  37. package/dist/daos/crewEquipment.d.ts +21 -0
  38. package/dist/daos/crewEquipment.d.ts.map +1 -0
  39. package/dist/daos/crewEquipment.js +26 -0
  40. package/dist/daos/crewEquipment.js.map +1 -0
  41. package/dist/daos/food.d.ts +23 -0
  42. package/dist/daos/food.d.ts.map +1 -0
  43. package/dist/daos/food.js +27 -0
  44. package/dist/daos/food.js.map +1 -0
  45. package/dist/daos/helpers.d.ts +11 -0
  46. package/dist/daos/helpers.d.ts.map +1 -0
  47. package/dist/daos/helpers.js +34 -0
  48. package/dist/daos/helpers.js.map +1 -0
  49. package/dist/daos/hullModification.d.ts +21 -0
  50. package/dist/daos/hullModification.d.ts.map +1 -0
  51. package/dist/daos/hullModification.js +26 -0
  52. package/dist/daos/hullModification.js.map +1 -0
  53. package/dist/daos/item.d.ts +23 -0
  54. package/dist/daos/item.d.ts.map +1 -0
  55. package/dist/daos/item.js +27 -0
  56. package/dist/daos/item.js.map +1 -0
  57. package/dist/daos/medicine.d.ts +23 -0
  58. package/dist/daos/medicine.d.ts.map +1 -0
  59. package/dist/daos/medicine.js +27 -0
  60. package/dist/daos/medicine.js.map +1 -0
  61. package/dist/daos/metal.d.ts +19 -0
  62. package/dist/daos/metal.d.ts.map +1 -0
  63. package/dist/daos/metal.js +20 -0
  64. package/dist/daos/metal.js.map +1 -0
  65. package/dist/daos/metals.d.ts +19 -0
  66. package/dist/daos/metals.d.ts.map +1 -0
  67. package/dist/daos/metals.js +19 -0
  68. package/dist/daos/metals.js.map +1 -0
  69. package/dist/daos/miscellaneous.d.ts +23 -0
  70. package/dist/daos/miscellaneous.d.ts.map +1 -0
  71. package/dist/daos/miscellaneous.js +27 -0
  72. package/dist/daos/miscellaneous.js.map +1 -0
  73. package/dist/daos/requirements.d.ts +48 -0
  74. package/dist/daos/requirements.d.ts.map +1 -0
  75. package/dist/daos/requirements.js +242 -0
  76. package/dist/daos/requirements.js.map +1 -0
  77. package/dist/daos/resource.d.ts +23 -0
  78. package/dist/daos/resource.d.ts.map +1 -0
  79. package/dist/daos/resource.js +30 -0
  80. package/dist/daos/resource.js.map +1 -0
  81. package/dist/daos/resources.d.ts +24 -0
  82. package/dist/daos/resources.d.ts.map +1 -0
  83. package/dist/daos/resources.js +49 -0
  84. package/dist/daos/resources.js.map +1 -0
  85. package/dist/daos/tool.d.ts +23 -0
  86. package/dist/daos/tool.d.ts.map +1 -0
  87. package/dist/daos/tool.js +30 -0
  88. package/dist/daos/tool.js.map +1 -0
  89. package/dist/daos/tools.d.ts +24 -0
  90. package/dist/daos/tools.d.ts.map +1 -0
  91. package/dist/daos/tools.js +23 -0
  92. package/dist/daos/tools.js.map +1 -0
  93. package/dist/daos/validation.d.ts +2 -0
  94. package/dist/daos/validation.d.ts.map +1 -0
  95. package/dist/daos/validation.js +32 -0
  96. package/dist/daos/validation.js.map +1 -0
  97. package/dist/daos/versions.d.ts +18 -0
  98. package/dist/daos/versions.d.ts.map +1 -0
  99. package/dist/daos/versions.js +33 -0
  100. package/dist/daos/versions.js.map +1 -0
  101. package/dist/index.d.ts +25 -0
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/index.js +24 -0
  104. package/dist/index.js.map +1 -0
  105. package/dist/languages.d.ts +1757 -0
  106. package/dist/languages.d.ts.map +1 -0
  107. package/dist/languages.js +44 -0
  108. package/dist/languages.js.map +1 -0
  109. package/dist/types/BuildingElement.d.ts +7 -0
  110. package/dist/types/BuildingElement.d.ts.map +1 -0
  111. package/dist/types/BuildingElement.js +8 -0
  112. package/dist/types/BuildingElement.js.map +1 -0
  113. package/dist/types/Rarity.d.ts +3 -0
  114. package/dist/types/Rarity.d.ts.map +1 -0
  115. package/dist/types/Rarity.js +4 -0
  116. package/dist/types/Rarity.js.map +1 -0
  117. package/dist/unifiedItems.d.ts +27 -0
  118. package/dist/unifiedItems.d.ts.map +1 -0
  119. package/dist/unifiedItems.js +47 -0
  120. package/dist/unifiedItems.js.map +1 -0
  121. package/dist/versions.d.ts +21 -0
  122. package/dist/versions.d.ts.map +1 -0
  123. package/dist/versions.js +36 -0
  124. package/dist/versions.js.map +1 -0
  125. package/languages/source/alchemy.json +36 -0
  126. package/languages/source/ammo.json +36 -0
  127. package/languages/source/backpack.json +18 -0
  128. package/languages/source/buildingElement.json +1567 -0
  129. package/languages/source/cannon.json +10 -0
  130. package/languages/source/crewEquipment.json +11 -0
  131. package/languages/source/food.json +164 -0
  132. package/languages/source/hullModification.json +10 -0
  133. package/languages/source/item.json +50 -0
  134. package/languages/source/medicine.json +39 -0
  135. package/languages/source/metal.json +11 -0
  136. package/languages/source/miscellaneous.json +147 -0
  137. package/languages/source/resource.json +300 -0
  138. package/languages/source/tool.json +44 -0
  139. 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
+ }