summaryrefslogtreecommitdiff
path: root/platypus/platypus.cpp
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-05-26 00:48:29 -0700
committerFuwn <[email protected]>2022-05-26 00:48:29 -0700
commit47ae466fc0c39cc012b7ad48f3c887f434eac8da (patch)
tree35c298f4856cddfd189a9c0efa8bbb32bc936621 /platypus/platypus.cpp
parentrefactor(platypus.cpp): simplify namesFile (diff)
downloadwk7_platypusproject-47ae466fc0c39cc012b7ad48f3c887f434eac8da.tar.xz
wk7_platypusproject-47ae466fc0c39cc012b7ad48f3c887f434eac8da.zip
refactor(platypus.cpp): grammar
Diffstat (limited to 'platypus/platypus.cpp')
-rw-r--r--platypus/platypus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platypus/platypus.cpp b/platypus/platypus.cpp
index fef02e6..cdf7e92 100644
--- a/platypus/platypus.cpp
+++ b/platypus/platypus.cpp
@@ -57,7 +57,7 @@ void Platypus::ageMe() {
// Ricky
void Platypus::fight(Platypus &p1) {
- // Only let two platypi fight if they are both alive
+ // Only let two plats fight if they are both alive
if (this->alive && p1.alive) {
float fightRatio;
int randomVal;
@@ -66,7 +66,7 @@ void Platypus::fight(Platypus &p1) {
fightRatio = ((weight / p1.getWeight()) * 50);
randomVal = rand() % 100 + 1;
- // Adjust the platypi per the fight results
+ // Adjust a platypus per the fight results
if (static_cast<float>(randomVal) < fightRatio) {
alive = false;
} else {