Skip to content

Commit 0ffa038

Browse files
committed
0.2.3: update libhalbu and implement mercenary fixes
1 parent 9122961 commit 0ffa038

16 files changed

Lines changed: 224 additions & 34 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ jobs:
5151
includeUpdaterJson: false
5252
releaseName: 'App v__VERSION__'
5353
releaseBody: 'See the assets to download this version and install.'
54+
releaseAssetNamePattern: "Halbu.Editor_[version]_[platform]_[arch]_[bundle][ext]"
5455
releaseDraft: true
5556
prerelease: false

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.2.3
4+
5+
- Updated libhalbu to the latest main branch and synced the editor with the backend changes
6+
- Added save review warnings for class and mercenary type changes that may affect equipped items
7+
- Locked hired state for mercenaries and added cleanup for stale inactive mercenary data
8+
39
## 0.2.2
410

511
- Improved save workflow with clearer warnings
@@ -18,4 +24,4 @@
1824
- Added templates for new character creation
1925
- Added conversion to separate versions including compatibility checks
2026
- Added a status page with technical information about the file
21-
- Complete rewrite of UI
27+
- Complete rewrite of UI

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "halbu-editor",
33
"private": true,
4-
"version": "0.2.2",
4+
"version": "0.2.3",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "halbu-editor"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
description = "Halbu Editor"
55
authors = ["feor"]
66
edition = "2021"

src-tauri/src/cmds/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ fn format_id_label(format: FormatId) -> String {
9696
FormatId::V99 => "V99".to_string(),
9797
FormatId::V105 => "V105".to_string(),
9898
FormatId::Unknown(version) => format!("Unknown({version})"),
99+
_ => format!("Unknown({})", format.version()),
99100
}
100101
}
101102

src-tauri/src/cmds/parsing.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ fn detect_hardcore_and_last_played(
5555
FormatId::V99 => (CHARACTER_SECTION_START + 20, CHARACTER_SECTION_START + 32),
5656
FormatId::V105 => (CHARACTER_SECTION_START + 4, CHARACTER_SECTION_START + 16),
5757
FormatId::Unknown(_) => return (None, None),
58+
_ => return (None, None),
5859
};
5960

6061
let hardcore = bytes
@@ -85,6 +86,7 @@ pub fn get_character_from_path_with_meta(
8586
FormatId::V99 => Some(99),
8687
FormatId::V105 => Some(105),
8788
FormatId::Unknown(_) => None,
89+
_ => None,
8890
};
8991
let suggested_target_version = match detected_format {
9092
FormatId::Unknown(version) => {
@@ -95,6 +97,11 @@ pub fn get_character_from_path_with_meta(
9597
Some(GameEdition::RotW) => Some(105),
9698
None => None,
9799
},
100+
_ => match edition_hint {
101+
Some(GameEdition::D2RLegacy) => Some(99),
102+
Some(GameEdition::RotW) => Some(105),
103+
None => None,
104+
},
98105
};
99106
Ok(ParsedCharacter {
100107
save,

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"productName": "Halbu Editor",
2020
"mainBinaryName": "halbu-editor",
21-
"version": "0.2.2",
21+
"version": "0.2.3",
2222
"identifier": "org.feor.halbu",
2323
"plugins": {},
2424
"app": {

0 commit comments

Comments
 (0)