diff options
| author | Ray Hogenson <rayhogenson@gmail.com> | 2012-03-18 16:03:34 -0800 |
|---|---|---|
| committer | Ray Hogenson <rayhogenson@gmail.com> | 2012-03-18 16:03:34 -0800 |
| commit | e04f8195b5b8b4f3361fc2a62cca0bbf5cb9fdc8 (patch) | |
| tree | 9da09342aba9499c4f998867752a9c9f010122b7 | |
| parent | a6d0d135c1c1b248468577af447fbeb52b9267f1 (diff) | |
| download | yetihack-e04f8195b5b8b4f3361fc2a62cca0bbf5cb9fdc8.tar.zst | |
fixed yeti spawn rate bug in Arcade, and changed how the survival turns and spawn rate works in story once again.
| -rw-r--r-- | src/YetiHack.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/YetiHack.cpp b/src/YetiHack.cpp index 01c9503..fbcf677 100644 --- a/src/YetiHack.cpp +++ b/src/YetiHack.cpp @@ -45,7 +45,10 @@ int wait(int seconds) } int start(bool immortal, bool story, double escapeturns) { - escapeturns = turns((int)escapeturns)[1]; + if (story) + { + escapeturns = turns((int)escapeturns)[1]; + } int rate; if (story) { @@ -301,11 +304,10 @@ vector<int> turns(int num) vector<int> numbers; int x, y; getmaxyx(stdscr,y,x); - int turn = num; - turn *= 300; + int turn = sqrt(num * 40000); + int rate = turn; + rate /= num; turn = turn / 7810. * x * y; - num *= 5; - int rate = turn / num; numbers.push_back(rate); numbers.push_back(turn); return numbers; |
