morfidon
435e901054
Fix i/mixed to i/crlf
1 week ago
morfidon
f08ebcd9ce
Fix empty "Identify all" storyteller flow
1 week ago
morfidon
6619672a6a
Fix Cain identify-all cancel navigation
1 week ago
morfidon
289325ced4
Add Cain identify all option
1 week ago
Trihedraf
04cc99cbde
LuaEvent > lua:: named functions. +lua_event.cpp
2 weeks ago
Yuri Pourre
b684fd143c
Adria refill mana as mod
2 months ago
Eric Robinson
5937734b85
Move *dat files to tables dir
2 months ago
Yuri Pourre
d8b1f00cb5
Load towners via tsv
4 months ago
Yggdrasill
753b566350
Use StaticVector for all vendors
4 months ago
Anders Jenbo
1c76897f2c
Apply simple const rules using clang-tidy
7 months ago
Eric Robinson
f5d430fbf1
Stores - Unhardcode shop values
...
Use constexpr instead of #define, and unhardcode values used in towner stores.
1 year ago
Eric Robinson
8eddf55c3f
Stores - IsPlayerInStore() ( #7843 )
1 year ago
Gleb Mazovetskiy
3bb1d685af
Extract current input mode into its own library
...
Removes a transitive dependency on the entire plrctrl from options.
1 year ago
Gleb Mazovetskiy
d94bc424df
`sgOptions` -> `GetOptions()`
...
In C++, globals initialization order accross translation units is not
defined. Accessing a global via a function ensures that it is initialized.
This will be needed for #7638 , which will statically initialize change
handlers after the Options object has been initialized.
1 year ago
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
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
staphen
09411784d2
Fix value of items bought from Wirt's shop
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
e90855b3c4
Rename stores.cpp global variables ( #7425 )
2 years ago
Eric Robinson
6396af1ff5
Cleanup panel code (Part 2) ( #7421 )
2 years ago
qndel
724cce7d90
fix being able to repair equipped items for free
2 years ago
Stephen C. Wills
cfe9a8ccdd
Introduce xoshiro RNG to generate dungeon seeds ( #7030 )
2 years ago
qndel
71650f981f
fix repair and recharge ( #7360 )
2 years ago
KPhoenix
889d07b355
Clean up store inferface
2 years ago
staphen
9e682afe13
Rename glSeedTbl
2 years ago
obligaron
95205294e8
Fix MSVC x86 warnings
2 years ago
obligaron
ecb781db03
Fix MSVC warnings in stores.cpp
2 years ago
Anders Jenbo
bb2e189327
Convert _sfx_id in to class enum
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
KPhoenix
db1ab771d6
Bugfix: Indestructible Items at Smith Repair
3 years ago
ephphatha
24a20ce8e2
Extract uses of MyPlayer to prevent future crashes in tests/game init
3 years ago
Eric Robinson
e60a4dca3e
Close Towner window when clicking outside ( #6504 )
3 years ago
ephphatha
da76e131e4
Add getter/setter for character levels to ensure _pNextExper stays synced
3 years ago
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
3 years ago
Gleb Mazovetskiy
e9b5ec77f9
Remove AppendStrView
3 years ago
Gleb Mazovetskiy
c19bfe87fa
Remove utils/stdcompat/algorithm.hpp
3 years ago
qndel
728b632960
fix typos
3 years ago
qndel
1e6277595d
deduplicate NPC sell/buy code
3 years ago
DakkJaniels
ad19caf667
Move hp/mana display and item graphics to gameplay options
3 years ago
Andrew James
1b7608ea3b
Map from _talker_id to towner pointer when using gossip option ( #6136 )
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
b7b9996290
Remove global gossip variables and Towner::seed
...
Replace this with a direct reference to the chosen gossip topic when towners are init.
3 years ago
obligaron
7985a9211d
Change Player::_pSplLvl to uint8_t
3 years ago
obligaron
b916c8e428
Introduce Open/Close/ToggleCharPanel
3 years ago
obligaron
590c990c80
Introduce Item::getName
3 years ago
staphen
695949d901
Sync staff charges after recharging
3 years ago
Gleb Mazovetskiy
ebcd6b222d
Optimize `SpellData` size: 40 bytes -> 24
3 years ago
KPhoenix
8955700e67
Refactor enums
3 years ago
KPhoenix
a1fbf5253f
`enum talk_id` -> `enum class TalkID`
3 years ago
Gleb Mazovetskiy
b61dac853b
Add `GetSpellData(SpellID)`
3 years ago