Skip to content

Commit a75f530

Browse files
committed
TINIER chance!
1 parent c4bbd41 commit a75f530

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/classes/Rand.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace horrible {
1010
// Get a number between 0 and 100
1111
static int fast();
1212

13-
// Get a number between 0 and 2500, recommended to balance chances when firing every frame
13+
// Get a number between 0 and 5000, recommended to balance chances when firing every frame
1414
static int tiny();
1515
};
1616
};

src/classes/src/Rand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ int Rand::fast() {
1414
};
1515

1616
int Rand::tiny() {
17-
return static_cast<int>(GameToolbox::fast_rand()) % 2500;
17+
return static_cast<int>(GameToolbox::fast_rand()) % 5000;
1818
};

src/hooks/Pause.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class $modify(RandomPausePlayerObject, PlayerObject) {
2020

2121
// if the rng is lower than the chance, pause the game
2222
if (rnd <= m_fields->chance) {
23-
log::debug("Pausing the game randomly ({}/2500 < {})", rnd, m_fields->chance);
23+
log::debug("Pausing the game randomly ({}/5000 < {})", rnd, m_fields->chance);
2424
playLayer->pauseGame(true); // pause the game randomly
2525
};
2626
};

0 commit comments

Comments
 (0)