Skip to content

Commit

Permalink
Merge pull request #13 from NetheriteMiner/weekly-and-grammar
Browse files Browse the repository at this point in the history
Fixed weekly detection and adjusted grammar
  • Loading branch information
TechStudent10 authored Mar 8, 2024
2 parents 88d6f24 + 18c7646 commit 469b7a5
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,15 +474,25 @@ class $modify(MyPlayLayer, PlayLayer) {
bestString = std::to_string(m_level->m_normalPercent.value()) + "%";
}

std::string details = "Playing a";
std::string details = "Playing";
if (m_level->isPlatformer()) {
details = details + " platformer";
details = details + " a platformer";
}

bool isDaily = m_level->m_dailyID.value() != 0;
bool isDemon = m_level->m_demon.value() != 0;

if (isDaily) {
details = details + " daily";
if (isDemon) {
details = details + " the weekly";
}
else {
details = details + " the daily";
}
}

if (details == "Playing") {
details = "Playing a";
}

std::string detailsPercentString = "";
Expand Down

0 comments on commit 469b7a5

Please sign in to comment.