Yggdrasill
753b566350
Use StaticVector for all vendors
4 months ago
Andrettin
e2e8446be1
Added Lua Bindings for Adding Unique Items
7 months ago
Anders Jenbo
04ce8a97c5
clang-tidy: simple cleanup of items
7 months ago
Anders Jenbo
3b18dd35d9
Move some Hellfire differences to data files ( #7943 )
...
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
11 months ago
Yggdrasill
176819a072
Make RecreateItem() take whole dwBuff flag as argument ( #7870 )
1 year ago
staphen
c798253587
Use constexpr for length of item names
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
Gleb Mazovetskiy
a49b1f2d58
Extract Is{Any,None}Of out of engine.hpp
...
Untangles some of the dependencies
1 year ago
Eric Robinson
cfac786daf
Make invalid items unusable ( #7506 )
1 year ago
staphen
bfd289db88
Clear unique item flags in LoadGameLevel()
1 year ago
Anders Jenbo
e949f41d83
Clean up selection type
2 years ago
obligaron
138f937519
Fix infinite loop in unique item randomization
2 years ago
obligaron
ca16398147
Move DebugSpawn(Unique)Item to lua dev moduls and make necessary functions public
2 years ago
Eric Robinson
a30f7c0b8e
Randomize Unique Item Generation (Reverse compatible) ( #7060 )
...
Co-authored-by: staphen <staphen@gmail.com>
2 years ago
obligaron
2da492d203
Change some functions to Player reference
2 years ago
Anders Jenbo
bb2e189327
Convert _sfx_id in to class enum
2 years ago
tetektoza
44aeea0f22
Items: Add isGold() function to items.h
...
This patch adds isGold() function to items.h, which checks if the item's
type is gold.
2 years ago
tetektoza
a387f73aa7
Refactor: simplify logic in items.h
...
Currently some of the "isItem" functions add an unnecessary check of
isEmpty which is redundant, because a few lines lower they also check
for item type inside the same object.
This patch removes those unnecessary checks.
2 years ago
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
3 years ago
Gleb Mazovetskiy
14540164a7
Remove utils/stdcompat/optional.hpp
3 years ago
obligaron
578ce01432
Introduce Towner/Player/Object/Item/Monster::currentSprite/getRenderingOffset
3 years ago
Eric Robinson
b835460541
Fix iCreateInfo comment ( #6354 )
3 years ago
Anders Jenbo
01d2a46a8d
Validate items when unpacking importing
3 years ago
obligaron
c8f1804d04
Spawn Optic Amulet and Arkaine's Valor always at the same tile ( #6167 )
...
* Spawn Optic Amulet and Arkaine's Valor always at the same tile
* Multiplayer: To complete Halls of Blind and Arkaine's Valor also check drop position, because quest rewards items can be randomized
3 years ago
obligaron
571e770e68
In multiplayer randomly drop unique quest reward or magic item of same type
3 years ago
obligaron
bac8535564
Sync Little Girl Quest
3 years ago
obligaron
3f195ae29b
Use CMD_SPAWNITEM to spawn Ghardbards first item
3 years ago
obligaron
e1082126a3
Use CMD_SPAWNITEM to spawn Zhars first book
3 years ago
ephphatha
9987bb6be2
Avoid unnecessary item initialisation and copy
3 years ago
ephphatha
4f3c70aa95
Move PlaceItemInWorld to items.h/cpp
...
Seems like a more appropriate home
3 years ago
qndel
3500dc1861
code cleanup
3 years ago
ephphatha
3a7ae732cd
use unsigned types for item seeds
3 years ago
obligaron
b87711bc08
Reintroduce Player::spellFrom to seperate teleport cursor from queued spell
3 years ago
obligaron
eeca953615
Introduce UpdateHellfireFlag to set missing CF_HELLFIRE flag
3 years ago
obligaron
590c990c80
Introduce Item::getName
3 years ago
obligaron
44de539afb
Introduce CronerStoneStruct::isAvailable()
3 years ago
obligaron
715e689ecb
Introduce Item::isUsable()
3 years ago
KPhoenix
d813f13700
`enum spell_id` -> `enum class SpellID`
3 years ago
obligaron
c18380c2e7
Sync SpawnUnique
3 years ago
obligaron
1b1ea50cba
Refactor SpawnItem
3 years ago
obligaron
0711e6af4d
Sync SpawnQuestItem (multiplayer quest items)
3 years ago
staphen
21bd760bfa
Bypass CMD_PUTITEM when triggering CMD_OPENHIVE or CMD_OPENGRAVE
3 years ago
ephphatha
ea3ecbd619
Use _item_indexes type where appropriate
3 years ago
Gleb Mazovetskiy
ac26f3a23b
Item: Optimize to save 16 bytes (312->288)
3 years ago
staphen
73028ec04a
Define network struct for ears
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
obligaron
6804221199
Store scroll/rune location in SpellCastInfo.spellFrom and remove the scroll/rune only after the spell is casted
4 years ago
Anders Jenbo
3250472789
Clean up player references
4 years ago
Anders Jenbo
2d21fc372e
Remove more miniwin code
4 years ago