Skip to content

Commit fd4e753

Browse files
authored
Merge pull request #29 from ZakisM/development
Set ability points in character_data
2 parents e7b344e + c92bdb7 commit fd4e753

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

bl3_save_edit_core/src/bl3_save/character_data.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,11 @@ impl CharacterData {
401401
.for_each(|ti| ti.points = 0);
402402

403403
if self.player_level > 2 {
404-
ability_data.ability_points = self.player_level - 2;
404+
let new_ability_points = self.player_level - 2;
405+
406+
ability_data.ability_points = new_ability_points;
407+
408+
self.ability_points = new_ability_points;
405409
}
406410

407411
self.player_class = player_class;
@@ -445,7 +449,11 @@ impl CharacterData {
445449
}
446450

447451
if self.player_level > 2 {
448-
ability_data.ability_points = self.player_level - 2;
452+
let new_ability_points = self.player_level - 2;
453+
454+
ability_data.ability_points = new_ability_points;
455+
456+
self.ability_points = new_ability_points;
449457
}
450458

451459
for (challenge_level, challenge_obj) in LEVEL_CHALLENGES {

0 commit comments

Comments
 (0)