ephphatha
c1f3dcb705
Use safer versions of random number functions instead of GenerateRnd
3 years ago
Anders Jenbo
8f74f86a6e
🐛 Use the alternate stairs up banner is active
3 years ago
Gleb Mazovetskiy
4fa3732526
Add missing <cstdint> includes
...
Done with the following script:
```ruby
Dir["Source/**/*.{h,c,cc,cpp,hpp}"].each do |path|
v = File.read(path)
next if !v.include?("uint32_t") || v.include?("cstdint")
lines = v.lines
line_num = if lines[2].start_with?(" *")
lines.index { |l| l.start_with?(" */") } + 3
else
3
end
lines.insert(line_num, "#include <cstdint>\n")
File.write(path, lines.join(""))
end
```
then fixed-up manually
3 years ago
ephphatha
3bbb80d849
Introduce temporary function to advance the global rng state and discard results
3 years ago
Anders Jenbo
4db65d94de
Add glow to Crypt lava tiles
3 years ago
obligaron
1a150ed193
Multiplayer: Ensure monster hitpoints are calculated reproducable in quest/set-maps ( #5958 )
...
* Always use the same seed for generating set/quest maps
* Use setlvltype for loading quest/set-map (instead of leveltype)
* Ensure dungeon flags are reset when loading a quest/set-map
3 years ago
obligaron
44de539afb
Introduce CronerStoneStruct::isAvailable()
3 years ago
obligaron
f8705c51a2
Make skeleton king's lair multiplayer compatible
3 years ago
Gleb Mazovetskiy
759ca7f055
`WorldTileRectangle/Size`
...
Adds a custom sized type for the world tile rectagle.
This allows us to better express intent.
It also allows us to make certain globals smaller, e.g. `THEME_LOC`.
3 years ago
obligaron
69338e1733
Fix poison water entrace position
4 years ago
Anders Jenbo
715926e751
Fix single room cathedral with quest piece ( #5321 )
4 years ago
obligaron
7ad5a45905
Fix warp position offset and adjust some spawn positions ( #5364 )
4 years ago
Gleb Mazovetskiy
6327e713e0
Lowercase all file paths
...
We want to be able to use unpacked MPQs on low-end platforms
(PS2/rg99/etc).
This is tricky on case-sensitive filesystems. Avoids case issues by
lowercasing all paths in the code (then we'll just need lowercased
listfiles).
4 years ago
galaxyhaxz
b42c731ae5
Fix broken dirt tile in cathedral/crypt
4 years ago
Andrew James
b56907672f
Add Bitset2d::count() and use it when counting set Dungeonmask tiles ( #5083 )
...
Added comments and renamed other functions to give context why this is different to the use in drlg_l1
4 years ago
Anders Jenbo
6ec782fb7a
Fix FillChambers() and clean up rotated layout
4 years ago
ephphatha
7bda8dcc9a
Include coin flips from room gen cleanup
4 years ago
ephphatha
420a248e0c
Use FlipCoin for most uses of GenerateRnd with variable frequency
4 years ago
ephphatha
7c54066f31
Use PickRandomlyAmong when choosing between two options
4 years ago
ephphatha
bc0a058350
Invert FlipCoin
4 years ago
Anders Jenbo
a633951947
Move crypt code to crypt.cpp
4 years ago
Anders Jenbo
8765160885
Apply enums to the remaining Cathedral Mega tiles
4 years ago
Anders Jenbo
ce4595b440
Split Crypt from Cathedral
4 years ago
Anders Jenbo
be35285cdb
Clean up parameters
4 years ago
Anders Jenbo
8ed3cb476b
Clean up initial room generation
4 years ago
Cesar Canassa
bb3fb36ddc
✨ Introduces FlipCoin() ( #4908 )
4 years ago
Gleb Mazovetskiy
eb8721885d
Fix clang warnings
...
As seen in the Xbox NDK build.
4 years ago
Anders Jenbo
6d56058708
Move level generation to subfolder
4 years ago
Gleb Mazovetskiy
de3c9874c7
Migrate large bool arrays to `std::bitset`
...
E.g. `dRendered` size is reduced by 10 KiB
4 years ago
Anders Jenbo
4cc3a5264c
Make dPiece zero-indexed
4 years ago
Anders Jenbo
60856fb724
Clean up ApplyCryptShadowsPatterns
4 years ago
Anders Jenbo
0d5f07d93c
Clean up chamber generation
...
Share soom selection, remove unreachable cases
4 years ago
Anders Jenbo
fd98aff9f1
Move shared dungeon level code to common function
4 years ago
Anders Jenbo
6fa681e567
Clean up level initialization
4 years ago
Anders Jenbo
6fffbb4676
Clean up selecting what chamber to spawn quests in
4 years ago
Anders Jenbo
d17d7e018d
Use common function for loading .dun tile data
4 years ago
Anders Jenbo
98a10d262e
Unify PlaceMiniSet
4 years ago
Anders Jenbo
357d477f65
Update DRLG_L1 to use Miniset
4 years ago
Anders Jenbo
655e879116
Lable Crypt tiles
4 years ago
Anders Jenbo
359e31a900
Add PlaceMiniSetRandom1x1() helper for simple replacements
4 years ago
Anders Jenbo
6962fcd63e
Clean up PlaceMiniSet()
4 years ago
Anders Jenbo
b2278b85f8
Apply workaround for OOB in DRLG L1
4 years ago
Anders Jenbo
d8e8be49d1
Remove unused code from l1 PlaceMiniSet
4 years ago
Anders Jenbo
afec954c9a
Convert dflags to boolean
4 years ago
Anders Jenbo
5c17c92b01
Clean up drlg_l1 door placement
4 years ago
Anders Jenbo
1203514383
Clean up use of currlevel
4 years ago
qndel
354e329644
Players[MyPlayerId] -> MyPlayer
4 years ago
Gleb Mazovetskiy
ade8aba822
Fix some more warnings
4 years ago
Juliano Leal Goncalves
ba66a9dc87
♻️ Replace 'dmaxx' and 'dmaxy' globals with single 'dmaxPosition'
5 years ago
Juliano Leal Goncalves
6583410152
♻️ Replace 'dminx' and 'dminy' globals with single 'dminPosition'
5 years ago