stardew-valley-data 0.5.1 → 0.6.0
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 +6 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
|
|
6
6
|
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
### [0.6.0] - 2026-03-18
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Added FishingPole Level to Parser tool
|
|
13
|
+
|
|
8
14
|
### [0.5.1] - 2026-03-18
|
|
9
15
|
|
|
10
16
|
### Fix
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -34054,7 +34054,7 @@ function parseMastery(stats) {
|
|
|
34054
34054
|
perks
|
|
34055
34055
|
};
|
|
34056
34056
|
}
|
|
34057
|
-
var TOOL_TYPES = ["WateringCan", "Pan", "Pickaxe", "Axe", "Hoe"];
|
|
34057
|
+
var TOOL_TYPES = ["WateringCan", "Pan", "Pickaxe", "Axe", "Hoe", "FishingRod"];
|
|
34058
34058
|
var TOOL_KEY_MAP = {
|
|
34059
34059
|
WateringCan: "wateringCan",
|
|
34060
34060
|
Pan: "pan",
|
|
@@ -34062,6 +34062,13 @@ var TOOL_KEY_MAP = {
|
|
|
34062
34062
|
Axe: "axe",
|
|
34063
34063
|
Hoe: "hoe"
|
|
34064
34064
|
};
|
|
34065
|
+
var FISHING_ROD_LEVEL = {
|
|
34066
|
+
"Training Rod": 0,
|
|
34067
|
+
"Bamboo Pole": 1,
|
|
34068
|
+
"Fiberglass Rod": 2,
|
|
34069
|
+
"Iridium Rod": 3,
|
|
34070
|
+
"Advanced Iridium Rod": 4
|
|
34071
|
+
};
|
|
34065
34072
|
function collectToolItems(node, depth = 0) {
|
|
34066
34073
|
if (!node || typeof node !== "object" || depth > 20) return [];
|
|
34067
34074
|
const results = [];
|
|
@@ -34098,7 +34105,8 @@ function parseToolLevels(player, root) {
|
|
|
34098
34105
|
pickaxe: 0,
|
|
34099
34106
|
axe: 0,
|
|
34100
34107
|
hoe: 0,
|
|
34101
|
-
trashCan: num(player.trashCanLevel)
|
|
34108
|
+
trashCan: num(player.trashCanLevel),
|
|
34109
|
+
fishingRod: -1
|
|
34102
34110
|
};
|
|
34103
34111
|
const allItems2 = [
|
|
34104
34112
|
...collectToolItems(player.items),
|
|
@@ -34111,6 +34119,9 @@ function parseToolLevels(player, root) {
|
|
|
34111
34119
|
if (key) {
|
|
34112
34120
|
const level = num(i.upgradeLevel);
|
|
34113
34121
|
if (level > levels[key]) levels[key] = level;
|
|
34122
|
+
} else if (xsiType === "FishingRod") {
|
|
34123
|
+
const rodLevel = FISHING_ROD_LEVEL[i.name] ?? -1;
|
|
34124
|
+
if (rodLevel > levels.fishingRod) levels.fishingRod = rodLevel;
|
|
34114
34125
|
}
|
|
34115
34126
|
}
|
|
34116
34127
|
return levels;
|