Anders Jenbo
e969a8ad01
Invert player to vision relation
2023-04-21 21:25:19 +02:00
Anders Jenbo
13c5c09990
Clean up Light related naming
...
A few are left unchanged as they will be removed in a later commit
2023-04-21 21:25:19 +02:00
Anders Jenbo
6c893e4977
Remove unused code
2023-04-18 21:21:53 +02:00
DakkJaniels
64d5a328e7
modify SpawnOnePremium in items.dat for readability ( #4095 )
2023-04-18 03:12:21 +02:00
obligaron
1a3e72bf17
Unify normal casting and casting from inventory
2023-04-17 03:22:50 +02:00
obligaron
b87711bc08
Reintroduce Player::spellFrom to seperate teleport cursor from queued spell
2023-04-17 03:22:50 +02:00
obligaron
e9e959cc7c
Improve debug drop(u) command (multiplayer compatible, support quest uniques and don't drop items on failure)
2023-04-15 13:13:13 +02:00
obligaron
be82cff1ef
Ensure we don't load graphics for players that aren't on our level
2023-04-14 23:40:08 +02:00
obligaron
1522dc7031
Multiplayer: Add arena potions
2023-04-13 21:20:53 +02:00
obligaron
eeca953615
Introduce UpdateHellfireFlag to set missing CF_HELLFIRE flag
2023-04-13 00:07:00 +02:00
obligaron
2f5a236c4c
Store only none translated names in Item::_iName/_iIName
2023-04-13 00:07:00 +02:00
obligaron
0426908988
Introduce GetTranslatedItemName/GetTranslatedItemNameMagical
2023-04-13 00:07:00 +02:00
obligaron
8c49524aa3
GenerateMagicItemName make translation configurable
2023-04-13 00:07:00 +02:00
obligaron
6f9453c00e
Introduce GenerateStaffName/GenerateStaffNameMagical
2023-04-13 00:07:00 +02:00
obligaron
590c990c80
Introduce Item::getName
2023-04-13 00:07:00 +02:00
obligaron
f65152c556
Introduce GetItemBLevel
2023-04-13 00:07:00 +02:00
obligaron
f154bad1bd
IsPrefixValidForItemType/IsSuffixValidForItemType doesn't rely on gbIsHellfire
2023-04-13 00:07:00 +02:00
obligaron
0d7711ee63
Introduce GetItemPowerPrefixAndSuffix
2023-04-13 00:07:00 +02:00
obligaron
085f98c9a1
Introduce GetStaffPrefixId
2023-04-13 00:07:00 +02:00
Łukasz Łapiński
243c3ffcd4
items.cpp: fix inconsistent localization for miscellanous items ( #5890 )
...
* Update line 'Right-click to read, then left-click to target'
* Update line 'Select from spell book, then\n cast spell to read' across languages
2023-03-17 04:07:52 +01:00
Gleb Mazovetskiy
957bd03b98
Remove FMT_COMPILE in "cold" places
...
Removes most `FMT_COMPILE` calls.
`FMT_COMPILE` results in better performance but larger code size.
Removes `FMT_COMPILE` calls for places that are called infrequently,
i.e. not on every frame.
RG-99 binary size reduced by ~4 KiB.
2023-03-12 19:29:35 +01:00
Gleb Mazovetskiy
c858ab4d2c
Fix some compilation warnings
...
also removes a couple of unused filesystem includes
2023-03-12 13:21:40 +00:00
staphen
695949d901
Sync staff charges after recharging
2023-03-05 23:59:21 +01:00
obligaron
a629aa9153
Disable corner stone of the world in multiplayer
2023-03-02 01:23:59 +01:00
obligaron
44de539afb
Introduce CronerStoneStruct::isAvailable()
2023-03-02 01:23:59 +01:00
obligaron
6a5210e14a
Multiplayer: Enable Lachdanan Quest
2023-02-25 02:48:58 +01:00
obligaron
8b64546b21
Move spectral elixir special logic from Player::CanUseItem to Item::isUsable
2023-02-10 22:28:52 +01:00
obligaron
715e689ecb
Introduce Item::isUsable()
2023-02-10 22:28:52 +01:00
obligaron
0267a11db2
Fix item levels for set/quest-maps
2023-02-10 14:09:13 +01:00
Eric Robinson
f75f66d54b
Add playerdat ( #5763 )
2023-02-10 12:56:28 +00:00
Gleb Mazovetskiy
ebcd6b222d
Optimize SpellData size: 40 bytes -> 24
2023-02-10 10:51:06 +00:00
obligaron
34d5aeb853
In multiplayer drop the brain as extra item to ensure that all clients see the brain drop
2023-02-07 08:02:38 +01:00
obligaron
12ffc855e5
Fix quest items can't get picked up after dropping
2023-02-07 08:02:38 +01:00
obligaron
475f1d67fb
Spawn Fungal Tome during level generation to avoid desyncs
2023-02-07 08:02:38 +01:00
KPhoenix
30e815f835
Change ground color of Potion of Rejuevenation
2023-02-06 02:02:27 +01:00
Gleb Mazovetskiy
b61dac853b
Add GetSpellData(SpellID)
2023-02-05 12:12:48 +00:00
KPhoenix
d813f13700
enum spell_id -> enum class SpellID
2023-02-05 10:24:58 +00:00
KPhoenix
fa889625b3
Fix wrong flip sound: Tavern Sign
2023-02-05 07:06:56 +01:00
KPhoenix
c534e0e93c
Refactor
2023-02-03 06:46:26 +01:00
Eric Robinson
ef3a57b7d9
enum spell_type -> enum class SpellType (#5674 )
2023-01-28 22:25:37 +01:00
KPhoenix
f52b2cb71f
Enum Class: MagicType
...
Changes enum magic_type to enum class MagicType
2023-01-17 03:56:10 +01:00
qndel
efaf334965
typos and code cleanup
2022-12-19 17:34:15 +01:00
obligaron
b3a9968c90
Timedemo: Support switching player equipment
2022-12-15 05:37:33 +01:00
obligaron
79f423191c
Introduce GetItemIndexForDroppableItem
2022-12-15 05:37:33 +01:00
obligaron
75a81c6f11
Change RndVendorItem to ItemData
2022-12-15 05:37:33 +01:00
staphen
99a1230ee6
Reintroduce code to burn random number when spawning pinned books in Adria's shop
2022-12-14 06:05:28 +01:00
Andrew James
7d618aac9c
simplify monk damage calculation
...
clang format wants the if conditions all on one line -_-. Not as nice as I was hoping.
2022-11-23 03:09:22 +01:00
obligaron
c18380c2e7
Sync SpawnUnique
2022-11-13 02:53:39 +01:00
obligaron
1b1ea50cba
Refactor SpawnItem
2022-11-13 02:53:39 +01:00
obligaron
0711e6af4d
Sync SpawnQuestItem (multiplayer quest items)
2022-11-12 19:27:36 +01:00