Yuri Pourre
1b1c399a9b
Update all the files that do not have CRLF as line break
3 months ago
staphen
82868d5dfb
Fix crashes at startup in Win9x builds
9 months ago
Stephen C. Wills
cfe9a8ccdd
Introduce xoshiro RNG to generate dungeon seeds ( #7030 )
2 years ago
qndel
24f108f193
fix many typos ( #7322 )
2 years ago
staphen
b676c67261
Introduce class to generate vanilla random number sequences
2 years ago
ephphatha
3bbb80d849
Introduce temporary function to advance the global rng state and discard results
3 years ago
ephphatha
b98e5fcfad
split logic responsible for advancing global generator state to a dedicated function
...
Exposing this also allows updating the engine test case to avoid peeking at the engine state after a roll, also will be useful for setting item/object seeds
3 years ago
ephphatha
9da76e0003
Update CheckReflect to return applied damage
...
Instead of modifying the damage value by reference
3 years ago
ephphatha
7c54066f31
Use PickRandomlyAmong when choosing between two options
4 years ago
ephphatha
bc0a058350
Invert FlipCoin
4 years ago
Cesar Canassa
bb3fb36ddc
✨ Introduces FlipCoin() ( #4908 )
4 years ago
Juliano Leal Goncalves
5607c58daa
🏷️ Add 'PickRandomlyAmong' function that picks one value from a set of values randomly
...
This will be used in a few places where we previously used a raw integer random to index into a local array for selection, simplifying that type of logic to a single statement.
5 years ago
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
5 years ago
ephphatha
921c7af8c6
Expand comments for vanilla RNG functions
...
And put them in the header 😂
5 years ago
ephphatha
357f6f1dc3
Move RNG functions to their own header/source files
5 years ago