ephphatha
29f65a92bb
Return direct from switch in all cases of CheckThemeReqs
4 years ago
ephphatha
9c245f8ec4
Expand anonymous namespace in themes.cpp
4 years ago
ephphatha
08acd4aac0
Tidy up T_FitObj5
4 years ago
ephphatha
6656c74842
Use 0 as a default for non-random object placement tests
4 years ago
Anders Jenbo
e348fa3b1e
Implement town map
4 years ago
obligaron
054930256c
Fix skeleton kings lair spawn position
4 years ago
obligaron
f8a3212fba
Fix incorrect SOLData for L1 Piece 27 (BlockMissile is missing)
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
obligaron
a410e989bf
Remove ScrollInfo
4 years ago
Gleb Mazovetskiy
961866e1c4
CLX: A new graphics format
...
The format is almost identical to CL2, except it uses the frame header
to store frame width and height instead of 5 32-line offsets.
This means we always have access to frame dimensions, so we can use it
as an on-disk format for our graphics as well.
Additionally, we may be able to optimize the rendering even more
in the future now that we have guaranteed knowledge of frame dimensions.
4 years ago
Anders Jenbo
efe6b18900
Move two basic crypt setpices in to dun files
4 years ago
galaxyhaxz
b42c731ae5
Fix broken dirt tile in cathedral/crypt
4 years ago
ephphatha
0ce76a3f13
Add Object lookup method to mimic map::at()
4 years ago
ephphatha
cdcccef47a
Return pointer from AddObject
...
This allows removing the immediate lookup for call sites which need further initialisation.
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
Andrew James
2786a65e7b
Tidy up ActivateSkeleton and take monster by reference ( #5080 )
...
* Take reference in OperateSarcophagus
* Use monster reference instead of pointer in ActivateSkeleton
* Clean up ActivateSkeleton
4 years ago
Anders Jenbo
a45a96fb88
Fix opening crypt and hive
4 years ago
Anders Jenbo
d1189388f5
Use user by reference
4 years ago
ephphatha
e7708f44d9
Ensures that tests pass
4 years ago
Anders Jenbo
bd175f1c53
Reduce double scans in GetSizeForThemeRoom
...
This takes it from 200% to just 110% tiles scanned during the processes
4 years ago
Vladimir Olteanu
78f2fa6221
drlg_l2: refactor ROOMNODE and HALLNODE
4 years ago
Anders Jenbo
dd2644373d
Use a single main loop in GetSizeForThemeRoom
4 years ago
Anders Jenbo
3f6e6b19db
Restore optional optimization of GetSizeForThemeRoom
...
Looks like this improves performance by about 8%
4 years ago
Anders Jenbo
8d32782b12
Cleanup GetSizeForThemeRoom
4 years ago
ephphatha
e8a50f104e
Restore legacy behaviour
...
Ensures that tests pass
4 years ago
Gleb Mazovetskiy
33ac2cca8e
♻️ Make Monster counters `size_t`
4 years ago
Andrew James
629fe1647a
Fix incorrect size determination in GetSizeForThemeRoom ( #4959 )
...
This was a corner case where a boundary was determined by the edge of the search region. Not 100% sure it's correct in all cases, aiming to add some tests to try cover every possible case.
4 years ago
Anders Jenbo
3d08f951d6
Clean up use of miniwin
4 years ago
Anders Jenbo
3ae834148a
Split event handeling from general miniwin features
4 years ago
Anders Jenbo
2d21fc372e
Remove more miniwin code
4 years ago
ephphatha
7df7b6fa54
Address warning for comparing signed and unsigned values
4 years ago
Anders Jenbo
764c1c6fb9
Extract crypt 1x1 patterns in to arrays ( #4936 )
4 years ago
Anders Jenbo
6ec782fb7a
Fix FillChambers() and clean up rotated layout
4 years ago
Gleb Mazovetskiy
197e1180b2
Add StrCat and StrAppend
...
Adds simple string / integer concatenation functions.
Many of the uses of `fmt::format` are simply concatenation
of a few strings and integers.
`StrCat` is an easier-to-read alternative to such uses of `fmt`.
4 years ago
ephphatha
4802c0c8cf
Split loops by phases
...
Hoping the comments make it easier to understand, I think this is what the intent was.
4 years ago
ephphatha
3812d75480
Use point/size for WillThemeRoomFit, rename to match use
4 years ago
ephphatha
7bb401d9e8
Simplify loop used to find the area for a theme room
4 years ago
ephphatha
7a8fa64e69
Include leftover coinflips following conflict resolution
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
791a6b6266
Decode DRLG2 ASCII
4 years ago
Anders Jenbo
e09059c20e
Reuse DungeonMask for lockout in DRLG3
4 years ago
Anders Jenbo
8ed3cb476b
Clean up initial room generation
4 years ago
Cesar Canassa
bb3fb36ddc
✨ Introduces FlipCoin() ( #4908 )
4 years ago