173 Commits (development)

Author SHA1 Message Date
Gleb Mazovetskiy 62e9aa0448 `MissilePosition`: Use `WorldTilePosition` 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
Anders Jenbo 5a12f7b0d5 Always spawn players in a valid location 3 years ago
obligaron b87711bc08 Reintroduce Player::spellFrom to seperate teleport cursor from queued spell 3 years ago
Gleb Mazovetskiy ebcd6b222d Optimize `SpellData` size: 40 bytes -> 24 3 years ago
Gleb Mazovetskiy b61dac853b Add `GetSpellData(SpellID)` 3 years ago
KPhoenix d813f13700 `enum spell_id` -> `enum class SpellID` 3 years ago
Eric Robinson ef3a57b7d9
`enum spell_type` -> `enum class SpellType` (#5674) 3 years ago
Eric Robinson 3642904a4c
Fix Resurrect Crash (#5718) 3 years ago
Anders Jenbo c99f7cf644
Floating numbers (#5639) 3 years ago
KPhoenix 8db521727d
`enum missile_id` -> `enum class MissileID` 3 years ago
Gleb Mazovetskiy 680ab5ec40 Overhaul backbuffer state handling 3 years ago
staphen 702fedbc54 Remove ConsumeSpell() from AddMissile() functions 3 years ago
Gleb Mazovetskiy 188dc79f6e Make `Players` a vector 4 years ago
obligaron 439a9926e5 Clean up spell usage function names 4 years ago
obligaron 279e92e69c Checks conditions for spell again, cause initial check was done when spell was queued 4 years ago
obligaron 1cfd1ca99d Fix double casting bug - use separated info for casted and queued spells 4 years ago
Anders Jenbo 56915974d6 Minimize passing of player indexes 4 years ago
Anders Jenbo d1189388f5 Use user by reference 4 years ago
Anders Jenbo 3d08f951d6 Clean up use of miniwin 4 years ago
Anders Jenbo 2d21fc372e Remove more miniwin code 4 years ago
Anders Jenbo 6a8fd04067
Use player by references (#4938) 4 years ago
staphen cab75ded6b Check both SPL_NULL and SPL_INVALID to determine spell validity 4 years ago
Gleb Mazovetskiy 17f8cdddc4 Clean up `GetSpellLevel` 4 years ago
Anders Jenbo ab55877adc Take player by reference in UseMana 4 years ago
Anders Jenbo b00ae287b8 Minimize propegation of global Players index 4 years ago
obligaron 19749420b5 Introduce Player::isOnActiveLevel 4 years ago
Vladimir Olteanu 4d6ff58c22
Reduce reliance on `bool done` for control flow (part 1 of x) (#4720) 4 years ago
staphen b363d5d962 Fix order of loop conditions when adding spell missiles 4 years ago
Gleb Mazovetskiy 628406a44c Refactor inventory/belt item presence and removal 4 years ago
qndel 354e329644 Players[MyPlayerId] -> MyPlayer 4 years ago
DakkJaniels 313cdb853c
GetManaAmount - fix usage of pMaxManaBase 4 years ago
staphen e6182709d1 Allow casting Town Portal, Teleport, and Guardian scrolls from inventory 4 years ago
ephphatha 92fcdda3a7 Refactor OnHealOther to operate on Player references 4 years ago
ephphatha 25c2123849 Change cursor after acknowledging attempt to cast spell 4 years ago
qndel be0b79f9f5
Add IsWallSpell helper 4 years ago
ephphatha b12de6fe12 Use scoped enum for Direction 5 years ago
Juliano Leal Goncalves 940a120bf9 ♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition' 5 years ago
Siddharth singh chouhan 18125aac6a
Move documentation from implementations to declarations #2735 (#2782) 5 years ago
Juliano Leal Goncalves bbf529c65a 🚚 Rename 'PlayerStruct' to 'Player' 5 years ago
Anders Jenbo 4044fadeb5 Clean up some players references 5 years ago
Anders Jenbo d7c6d8b189 Use proper Direction type for AddMissile midir 5 years ago
Anders Jenbo 5be9b1529e Do not use mana in god mode 5 years ago
qndel bb4d087d60
fix resurrect (#2577) 5 years ago
vladtepesch 0e56e52c75
fixes casting level 0 spell says "not enough mana" (#2568) 5 years ago
BC Ko 221718250f
cleanup manual value clamping: spells.cpp GetManaAmount() (#2556) 5 years ago
Anders Jenbo 7effa1a931
Merge pull request #2433 from diasurgical/player 5 years ago
Anders Jenbo de0b3a38b8 Apply code style 5 years ago
Anders Jenbo e5fc7fd17c Move remaning symbols in to anonymous namespaces 5 years ago