Skip to content

Commit

Permalink
Fix minor bug - random damage did not
Browse files Browse the repository at this point in the history
also reduce actual value.
  • Loading branch information
royfalk committed May 2, 2024
1 parent 6b928c9 commit 3e098e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/src/resource/resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void Resource<T>::RandomDamage() {

if(severity > .95) {
// Destroy system
adjusted_max_value_ = min_value_;
Destroy();
} else {
// Damage system
DamageByPercent(severity);
Expand Down

0 comments on commit 3e098e3

Please sign in to comment.