Gleb Mazovetskiy
d7647d6c63
More dependency untangling
...
1. Moves more assets-related stuff from `init` to `engine/assets`.
2. Removes `SDL_audiolib` dependency from `soundsample.h`.
3. Cleans up some unused/missing includes.
1 year ago
Gleb Mazovetskiy
a7651f15d9
Extract `HeadlessMode` from `diablo.h`
...
Untangles some dependencies.
Many places that use `HeadlessMode` do not need all of `diablo.h`.
1 year ago
Gleb Mazovetskiy
c31836eab8
Split up `engine.{h,cpp}`
...
Untangles dependencies by splitting up `engine.{h,cpp}` into 3 files:
1. `primitive_render`
2. `ticks` -- only contains `GetAnimationFrame` for now.
3. `GetWidth2` renamed to `CalculateSpriteTileCenterX` and moved to `levels/dun_tile.hpp`.
1 year ago
Gleb Mazovetskiy
a49b1f2d58
Extract Is{Any,None}Of out of engine.hpp
...
Untangles some of the dependencies
1 year ago
Eric Robinson
cfac786daf
Make invalid items unusable ( #7506 )
1 year ago
Andrew James
1412e25eff
Allow for item drop rates up to 255 ( #7533 )
1 year ago
staphen
bfd289db88
Clear unique item flags in LoadGameLevel()
1 year ago
Andrew James
c7abf2f778
Extract logic from CheckInvCut/AutoPlaceItemInInventory ( #7494 )
...
* Remove unnecessary namespace
* Extract FindSlotUnderCursor
* Split logic for finding a space in the inventory to dedicated functions
1 year ago
Eric Robinson
baaa906583
Remove CheckCheatStats() ( #7461 )
1 year ago
Eric Robinson
0fd4a7b348
Fix Life/Mana bugs ( #5777 )
1 year ago
Eric Robinson
793eb7a835
Fix 0 charge staff in speed spell ( #6502 )
...
* Fix 0 charge staff in speed spell
1 year ago
Eric Robinson
e90855b3c4
Rename stores.cpp global variables ( #7425 )
2 years ago
Eric Robinson
6396af1ff5
Cleanup panel code (Part 2) ( #7421 )
2 years ago
Eric Robinson
d8e58b2547
Fix Elemental Arrows vs Objects ( #6507 )
2 years ago
Eric Robinson
cabc85b660
Fix Magic Rock animations ( #7365 )
2 years ago
Anders Jenbo
e949f41d83
Clean up selection type
2 years ago
obligaron
138f937519
Fix infinite loop in unique item randomization
2 years ago
obligaron
ca16398147
Move DebugSpawn(Unique)Item to lua dev moduls and make necessary functions public
2 years ago
qndel
24f108f193
fix many typos ( #7322 )
2 years ago
Anders Jenbo
28b7ae6b03
Allow for more flexible translations of "Book of {SpellName}"
2 years ago
Gleb Mazovetskiy
177ba45f8d
Controller buttons: Make most of the code private
...
The compiler constant-folds the lookups in `printItemMiscGamepad`
code to the same asm as the manual version.
2 years ago
Gleb Mazovetskiy
742f5fd5f7
Fix a couple of compilation warnings
2 years ago
Eric Robinson
a30f7c0b8e
Randomize Unique Item Generation (Reverse compatible) ( #7060 )
...
Co-authored-by: staphen <staphen@gmail.com>
2 years ago
Eric Robinson
9f6055a4a1
Clean up CalcPlrItemVals() ( #4052 )
2 years ago
Eric Robinson
f67fbfeaca
Conditionally set cursor graphic for unique items ( #7067 )
2 years ago
Eric Robinson
ebe353f105
Revise how unique cursor graphic is obtained ( #7066 )
2 years ago
Tully
ba529feb3e
Fix infravision monsters flickering when manipulating inventory ( #6687 )
2 years ago
PaintingTs
00c8882c73
Unique items InfoBox now visible at 800X600 and lower resolutions. Stashed unique items show InfoBox near the Stash Panel
2 years ago
staphen
bc4f43490f
Load objcurs when creating starting items
2 years ago
obligaron
2da492d203
Change some functions to Player reference
2 years ago
Gleb Mazovetskiy
f566359e4f
Migrate item data to txtdata/
2 years ago
Gleb Mazovetskiy
a2b94cc03c
Lua: Migrate and organize the rest of debug cmds
...
Fully migrates debug commands to Lua and organizes them into logical
groups.
The CLI `+` syntax now runs Lua, e.g.:
```bash
build/devilutionx '+dev.player.trn.plr("infra")'
```
Chat hotkeys run Lua code if they start with `/lua`, e.g.:
```ini
[NetMsg]
QuickMessage1=/lua message(dev.player.info())
```
2 years ago
Gleb Mazovetskiy
c5a5dc9f5c
Fix a few MSVC warnings
2 years ago
Anders Jenbo
bb2e189327
Convert _sfx_id in to class enum
2 years ago
Gleb Mazovetskiy
17d5f05ada
Fix some compilation warnings
2 years ago
Gleb Mazovetskiy
e5881688f4
`text_render`: Replace optional args with struct
...
4 options args are a bit unwieldy, especially when you want
to pass only the first and the last one.
With a struct, there is no need to specify the default values
for the args in between.
2 years ago
ephphatha
4e6517e54c
load starting loadout dynamically
3 years ago
ephphatha
56a6889225
Use generic code to create starting items for new characters
3 years ago
ephphatha
d13bed2a78
Fix broken test case
3 years ago
ephphatha
24a20ce8e2
Extract uses of MyPlayer to prevent future crashes in tests/game init
3 years ago
ephphatha
5d50b5520d
Add PlayerData lookup helper to avoid manual casts
...
This lets us remove the PlayersData global, and we can use a helper in the player class for convenience.
3 years ago
ephphatha
c1f3dcb705
Use safer versions of random number functions instead of GenerateRnd
3 years ago
Eric Robinson
bc3a421622
Debug: Revise Text ( #6625 )
3 years ago
Gleb Mazovetskiy
e090c8bf31
Extract some player attributes to data files
3 years ago
staphen
4a1da5a777
Fix minlvl when generating translated names for staves
3 years ago
ephphatha
da76e131e4
Add getter/setter for character levels to ensure _pNextExper stays synced
3 years ago
ephphatha
d92d152576
Use unsigned type for character levels
3 years ago
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
3 years ago
Gleb Mazovetskiy
c19bfe87fa
Remove utils/stdcompat/algorithm.hpp
3 years ago
staphen
470c028c17
Make Bucklers available in shareware
3 years ago