Skip to content

Commit

Permalink
Bifeee
Browse files Browse the repository at this point in the history
  • Loading branch information
radumcostache committed May 15, 2023
1 parent e66486a commit 787b6fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Characteristics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ float Characteristics::getMatching(const Characteristics &c) {
return ret;
}

void Characteristics::updateCharacteristics(const Characteristics &characteristics, int multiplier) {
void Characteristics::updateCharacteristics(const Characteristics &extra, int multiplier) {
for (int i = 0; i < 4; i++)
if (characteristics.characteristics[i].getVal() != 0)
if (extra.characteristics[i].getVal() != 0)
for (int j = 0; j < multiplier; j++)
this->characteristics[i].addRating(characteristics.characteristics[i].getVal());
this->characteristics[i].addRating(extra.characteristics[i].getVal());
}

Characteristics::Characteristics(int a, int b, int c, int d) {
Expand Down
2 changes: 1 addition & 1 deletion Characteristics.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Characteristics {

float getMatching(const Characteristics &c);

void updateCharacteristics(const Characteristics &characteristics, int multiplier);
void updateCharacteristics(const Characteristics &extra, int multiplier);
};

#endif //OOP_CHARACTERISTICS_H
Expand Down

0 comments on commit 787b6fc

Please sign in to comment.