Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Anders Jenbo
6f1498d315
🚚 Move structures to there respective headers
5 years ago
Juliano Leal Goncalves
bcf63dfc1a
🐛 Allow shift+click to equip weapons on monk
5 years ago
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
5 years ago
Juliano Leal Goncalves
95ae8fd5c6
✨ Autoequip items on purchase
5 years ago
Juliano Goncalves
fc1d9b684f
✨ Allow shift+click moving to inventory
5 years ago
Juliano Goncalves
5287d6e329
✨ Allow shift+click moving to belt
5 years ago
Anders Jenbo
a75d09e19d
🚚 Move item_color to inv.h
5 years ago
Gleb Mazovetskiy
b43325028f
Migrate `CelDraw` to `CelDrawTo`
5 years ago
Juliano Leal Goncalves
2c14908cf4
🚚 Move 'ItemStruct' to 'items.h'
5 years ago
Gleb Mazovetskiy
d55a1c8a7d
Pass CelOutputBuffer to game text printing ( #1095 )
...
* Pass CelOutputBuffer to game text printing
* DrawHalfTransparentRectTo: minor cleanup
5 years ago
Juliano Leal Goncalves
3de338e5b6
♻️ Pass item referece on SpecialAutoPlace
...
This simplifies and decouples the logic for determining the size of the
item from ambient variables and makes the function easier to use.
5 years ago
pionere
f5c1079d6f
eliminate unused code
5 years ago
Juliano Goncalves
a6eb92c185
Remove item persistence from 'inv.SpecialAutoPlace'
...
The 'saveFlag' argument used for persisting the changes into the
inventory is never leveraged on this function: all existing consumers
provide 'FALSE'. It was probably a copy-paste leftover from the
standard 'AutoPlace'.
5 years ago
Anders Jenbo
8c261d0966
Merge remaning clean Hellfire code paths
5 years ago
Anders Jenbo
a2a3729491
Enable loading hellfire games form main menu
5 years ago
Anders Jenbo
d20eddf48e
Unifcy a chunk of Hellfire's code pathts
5 years ago
Anders Jenbo
38dbcf7641
Format source
5 years ago
Anders Jenbo
17d70648f5
Clean up inv.h
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 years ago
Joel Falcou
c4223d4c29
Per file basis use of extern C
6 years ago
Joel Falcou
64d26a7934
Sanitize use of namespace
...
Wrap individual headers in dvl namespace to prevent
including standard header in another namespace.
6 years ago
Anders Jenbo
0383f9abcd
Add documentation to more files
6 years ago
Anders Jenbo
87361e8ecc
[hellfire] rename inv_420FD0 to inv_diablo_to_hellfire
6 years ago
Gleb Mazovetskiy
a2e821d241
Game controller support
...
Initial game controller support.
Actions are based on the Switch branch but the controller code itself is
implemented differently, allowing for easy remapping and minimizing
changes to the Source/ directory.
Many subtle and not so subtle controller bugs have been fixed
in this implementation, including:
1. Smoother & more responsive movement with the joysticks.
2. Consistent controls for all the menus in the game (stores, quest log,
etc).
3. Cursor appearance / disappearance at appropriate times.
Low-level controls are abstracted and 3 SDL interfaces are supported:
game controller, joystick, and keyboard. See SourceX/controls/ for more
details on this.
Wishlist for the future:
1. Primary button and use button should attack continously.
This is hard as it requires checking the cooldowns / attack speed.
2. Quick spell menu navigation is very buggy. It is also buggy in the
switch branch. I haven't had a change to investigate.
6 years ago
Sergey Semushin
e133d23946
hellfire: InvPutItem and it callers bin exact.
...
Callers:
On_GETITEM
On_AGETITEM
On_PUTITEM
On_SYNCPUTITEM
On_RESPAWNITEM
7 years ago
Sergey Semushin
4e56571f11
hellfire: inv_420FD0: bin exact.
...
Function is essentialy item clean up with some strange moving of gold
which may overflow InvList.
7 years ago
Anders Jenbo
32a51d17ca
Align function signatures with PSX symbols
...
Using
https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/3/_dump_c_src_/diabpsx/source
as a reference
7 years ago
Anders Jenbo
7c071924ad
Format recently cleaned code
7 years ago
Anders Jenbo
190106c8c5
Clean up CheckInvHLight
7 years ago
Anders Jenbo
bd12c6cce9
Clean up UseInvItem
7 years ago
Anders Jenbo
c0531bfc4c
Some booleans
7 years ago
Anders Jenbo
26737a1594
Clean up StoreAutoPlace ( #956 )
7 years ago
Anders Jenbo
310744866c
Clean up SpecialAutoPlace
7 years ago
Anders Jenbo
c0085bdb95
Clean up GoldAutoPlace
7 years ago
Robin Eklind
3e09e6d70e
AutoPlace bin exact ( #924 )
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
Anders Jenbo
0fb90dee17
Clean up DropItemBeforeTrig
7 years ago
Anders Jenbo
797cf17c19
Clean up UseScroll
7 years ago
Anders Jenbo
59515a9d8c
Clean up CanPut
7 years ago
Anders Jenbo
fd1cb84509
Clean up SyncGetItem
7 years ago
Anders Jenbo
97df986fa3
Clean up FindGetItem
7 years ago
Anders Jenbo
cfbe27f3b8
Clean up ( #568 )
...
* Clean up mana checks
* Don't expose static globals
7 years ago
Andrew Dunstan
47244b9f3c
clean all On_* functions
8 years ago
aperturesecurity
42ce77ce05
Rebirth and Nuke
8 years ago
Anders Jenbo
b7dfcf5ed5
Clean up CheckPlrSpell ( #339 )
8 years ago
galaxyhaxz
38b498ac4b
Add 'const' to data to match original binary ( #200 )
8 years ago
Dennis Duda
07b5dc3939
Cleaned up `inv_update_rem_item`, `RemoveInvItem`, `RemoveSpdBarItem`, `CheckInvItem`, `CheckInvScrn`, `CheckItemStats`
...
All relatively simple and/or use code from other functions already cleaned up. Now binary exact except for the small codegen differences outlined in https://github.com/diasurgical/devil-nightly/issues/15
8 years ago
Dennis Duda
2f25466ed6
Cleaned up `CheckInvSwap`
...
Now binary exact except for the usual `xor; inc` vs `push 1; pop` switch.
Updated the type of `_iIdentified` to `BOOL` as well (since every write to it actually is 0 or 1).
8 years ago