ephphatha
ea3ecbd619
Use _item_indexes type where appropriate
3 years ago
ephphatha
236b672687
Move increment of monster drop index to caller
...
This allows the caller which combines unrelated values into a single return value to take ownership of the transformation.
3 years ago
ephphatha
3e8715a3fd
Remove pointless increment/decrement of indexes returned by RndVendorItem
3 years ago
ephphatha
fc2a158a8f
Tidy up code dealing with temporary arrays
3 years ago
ephphatha
6c32945571
Use _item_indexes enum values instead of magic numbers
3 years ago
Gleb Mazovetskiy
ec12d7ce44
Player: Optimize to save 40 bytes
3 years ago
Gleb Mazovetskiy
6150973c1b
Clean up gamepad icons code
...
1. Correctly defined button strings.
2. Clean up the printing code.
3. Use translatable strings for the generic gamepad type.
3 years ago
Nicholas Calaway
eb45857422
Gamepad icons ( #5357 )
3 years ago
obligaron
c80fcf42c8
Fix infravision lasts forever ( #5404 )
3 years ago
DakkJaniels
4015dc186a
Prevent oil damage wrap around
...
per discussion in #development on 30/Sep/2022 (could hypothetically use gloomy shrine to subtract 1 max damage and eventually exceed max value for damage)
4 years ago
Trihedraf
895ae95ef9
Fix Activate to use showing on all items ( #5379 )
...
* Revert "Fix activate to use showing up on all items"
This reverts commit 597030d250 .
* Fix Activate to use showing on all items
4 years ago
burningserenity
597030d250
Fix activate to use showing up on all items
4 years ago
Mikołaj Piróg
5e340d3261
Replace level member with a member function in monster ( #5336 )
4 years ago
staphen
73028ec04a
Define network struct for ears
4 years ago
obligaron
a2ec22667f
Use AnimationInfo::isLastFrame in more places
4 years ago
obligaron
c1abeeac5a
Use getAnimationFramesAndTicksPerFrame when swapping gear
4 years ago
obligaron
b3aa08589b
Don't use MyPlayer in UnPackItem and dependend methods
4 years ago
Anders Jenbo
872456ae5d
Use size_t for a select few pnum variables
4 years ago
Gleb Mazovetskiy
188dc79f6e
Make `Players` a vector
4 years ago
obligaron
034eacda98
PrintItemMisc: Fix staffs and flash scrolls
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
Nicholas Calaway
cf33230293
#3380 Use appropriate terms for mouse/gamepad/touch #5234 ( #5235 )
4 years ago
Vladimir Olteanu
58ae9169f1
Item effect cleanup ( #5229 )
4 years ago
Gleb Mazovetskiy
a6ab8df2a6
Make the debug `drop` command work in town
4 years ago
Robin Eklind
aa2ab57539
items: add BUGFIX for SpawnItem, uninitialized use of onlygood
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
obligaron
6804221199
Store scroll/rune location in SpellCastInfo.spellFrom and remove the scroll/rune only after the spell is casted
4 years ago
obligaron
1cfd1ca99d
Fix double casting bug - use separated info for casted and queued spells
4 years ago
Anders Jenbo
3250472789
Clean up player references
4 years ago
Anders Jenbo
e83c55d444
Clean up object references
4 years ago
qndel
ed8964907a
fix jester's affix description ( #5120 )
...
* fix jester's affix description
4 years ago
Gleb Mazovetskiy
8ca71272b8
Load all CEL as CL2
...
Convert CEL files to CL2 at load time. CL2 format is more efficient and is about as fast to render.
CEL vs CL2 sizes, on dLvl 5: https://gist.github.com/glebm/9bbdd76962abcd4fd2405ecd3379af97
Memory:
* Peak memory (while loading): -300 KiB
* Memory in-game (dLvl5): -700 KiB
* RG99 binary size: -15 KiB (1333096 -> 1317192)
Performance on rg99:
* On average, -1 FPS in town.
* Same FPS in dungeon (20 FPS on dLvl 1).
4 years ago
Vladimir Olteanu
75ea31e89c
Remove unused misc items
4 years ago
Mikołaj Piróg
262fa9ac2d
Rename MonsterData members ( #5000 )
4 years ago
Anders Jenbo
ac2bf9aaac
Limit what gets called in headless mode
4 years ago
obligaron
0d00d75cd3
Items: Handle if CelSprite is not present
4 years ago
ephphatha
019b52c247
Remove temporary variables in SpawnRock
4 years ago
ephphatha
1337ff6ea2
Add check if a monster potentially has leashed minions
4 years ago
Anders Jenbo
2d21fc372e
Remove more miniwin code
4 years ago
Anders Jenbo
6a8fd04067
Use player by references ( #4938 )
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
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
burningserenity
b5378f74d5
Apply formatting
4 years ago
burningserenity
69e0c51d8c
Another approach
4 years ago
Anders Jenbo
bd7d5a0143
Deduplicate using spells
4 years ago
staphen
cab75ded6b
Check both SPL_NULL and SPL_INVALID to determine spell validity
4 years ago
Cesar Canassa
bb3fb36ddc
✨ Introduces FlipCoin() ( #4908 )
4 years ago
Mikołaj Piróg
15989609a8
Members' name changes and comments in Monster struct ( #4861 )
4 years ago