Robin Eklind
0c50c87cf5
items: add BUGFIX, item get records not reset when resetting items
...
The item get record array tracks items being recently looted in an
effort to prevent the same item from being looted more than once.
Prior to this commit, the item get record array (and corresponding
item get record array length) variables were not cleared when
creating a new game. Therefore, the item get record array of a
previous game could remain in between games and prevent an item
from being looted (if it was looted in a previous), even if it was
never looted in the current game. In practice this almost never
shows up, since each item get record is valid for a total of 6
seconds before being cleared. So, you would either have to save
a game, quickly loot an item, when load the game and try to loot
the same item before 6 seconds pass. OR, you could use the demo
replay functionality to run test cases, and speed up execution to
run e.g. 10'000'000 logic ticks per second. Both would exhibit the
bug and prevent the item from being looted.
ref: diasurgical/devilutionX#2691
5 years ago
Robin
da7ea7b593
items: add BUGFIX for PrintItemPower ( #2241 )
5 years ago
Anders Jenbo
e426c38adb
Correct AddInitItems
5 years ago
Anders Jenbo
4419635fcc
BUGFIX wrong itype in InitItems
5 years ago
Martin Wolters
baf3a4cc17
Bugfix: MaxGold shouldn't depend on auricGold. ( #2218 )
5 years ago
Anders Jenbo
adf5f8f504
Clean up hellfire related code
5 years ago
Anders Jenbo
2b6286dd7f
Clean ups and BUGFIX notes
5 years ago
Anders Jenbo
1e86577fc8
Some random cleanups
5 years ago
Anders Jenbo
be917d43c2
Make diablo vegan frindly
5 years ago
Anders Jenbo
c7b32ec4e4
Clean ups
5 years ago
Anders Jenbo
448281a916
[hellfire] SpawnWitch
5 years ago
Anders Jenbo
557af48363
[hellfire] SpawnBoy
5 years ago
Anders Jenbo
f7a8d515fe
[hellfire] CalcPlrItemVals
5 years ago
Anders Jenbo
a23e039412
Clean up PrintItemPower
5 years ago
Anders Jenbo
e80d87a9bc
[hellfire] UseItem
5 years ago
Anders Jenbo
21d18d5c31
[hellfire] SpawnOnePremium
5 years ago
qndel
e73e1fc114
some cleanup
5 years ago
Anders Jenbo
5b085ad957
[hellfire] GetItemPower
5 years ago
qndel
c4c2e0420c
spell defines and macros ( #2162 )
5 years ago
qndel
7f7ae623df
Goe ( #2163 )
...
* proper random_ comparisons
* proper mienemy comparisons
* add mienemy/micaster enum
* GOE enum
5 years ago
qndel
a597e6d0d5
fix compiling ( #2166 )
5 years ago
Anders Jenbo
38dbcf7641
Format source
5 years ago
qndel
f2c7ee7dfd
ids next to items
5 years ago
qndel
a2dc735f6b
some cleanup
5 years ago
Anders Jenbo
3b04a4d6d9
[hellfire] SpawnPremium min diff
5 years ago
Anders Jenbo
9f9a7920d4
Reorder items.cpp
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 years ago
Anders Jenbo
d665dfae9a
Clean up RndItem
6 years ago
Anders Jenbo
e0825eb60a
Clean up SaveItemPower
6 years ago
qndel
95e084dbd3
apply enums ( #2088 )
6 years ago
qndel
7b8dd91979
[hellfire] HealerItemOk bin exact
6 years ago
qndel
b0142637b7
Ear cleanup #2 ( #2100 )
6 years ago
qndel
46e38e025e
RechargeItem cleanup
6 years ago
qndel
1d308c5f95
CalcSelfItems cleanup
6 years ago
qndel
01ef654093
RndItem cleanup
6 years ago
pionere
f0a51ccf65
use defs instead of literals
6 years ago
Tyler
c803c6aa66
Calculate position of screen elements
6 years ago
qndel
2cc494581f
Add enum for icreateinfo
6 years ago
Anders Jenbo
c1b4d3d8b5
Copy documentation from sanctuary/notes
6 years ago
Robin Eklind
60eb5c946c
items: add BUGFIX comment for DrawULine
6 years ago
Anders Jenbo
18bec27121
Hellfire clean ups
6 years ago
Robin Eklind
e6fa244fa7
items: add BUGFIX comment for SaveItemPower
6 years ago
Anders Jenbo
fe82c0b1f1
Clean up GetItemPower
...
Thanks @tsunamistate for bringing attention to this
6 years ago
Anders Jenbo
46224337d8
Fix bin diff
6 years ago
Anders Jenbo
3b8bcf98bf
Enable assertions
6 years ago
Anders Jenbo
d008af43b0
Semantic code style cleanups
6 years ago
Anders Jenbo
30f4f1d71b
Add struct for CornerStone
6 years ago
Anders Jenbo
c384711a5f
Backport cleanups from hellfire branch
6 years ago
Anders Jenbo
f1c216e688
Make player struct x/y fields match monster struct
6 years ago
qndel
92c4824820
[hellfire] CalcPlrItemVals
6 years ago