Skip to content
Snippets Groups Projects
Commit ef922631 authored by PowerfulShuffle's avatar PowerfulShuffle
Browse files

win message change

parent b80e0450
No related branches found
No related tags found
No related merge requests found
......@@ -319,15 +319,15 @@ namespace PuzzlePlayer_Namespace
if (Board is Minesweeper ms) penalty += ms.getBoardPenalty();
int reward = (int)GetMoney((double)completiontime, (double)Board.getBoardBaseScore(), 15*(double)penalty);
MessageBox.Show($"oi oi oi, {completiontime}, +{reward} out of {Board.getBoardBaseScore()}, legit:{legit}, penalty:{penalty}");
//MessageBox.Show($"You won in {completiontime} seconds and earned {reward} cash!");
//MessageBox.Show($"oi oi oi, {completiontime}, +{reward} out of {Board.getBoardBaseScore()}, legit:{legit}, penalty:{penalty}");
MessageBox.Show($"You won in {completiontime} seconds and earned {reward} cash!");
UserDataManager.Money += reward;
static double GetMoney(double t, double basescore, double p)
static double GetMoney(double t, double basescore, double extratime)
{
return basescore * (5 - 4 / (1 + Math.Exp(-2 * (t+p) / basescore)));
return basescore * (5 - 4 / (1 + Math.Exp(-2 * (t+extratime) / basescore)));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment