Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4141,3 +4141,6 @@ When setting a property like MORE to the a spell or skill defname, trying to rea
19-05-2026, nightNR
- Fixed: pre-AOS armor rating (AR) calculation (#1550).
- Fixed NPCs can't cast spells from spellbook after respawn (#1551).

29-05-2026, canerksk
- Added: NAME.PREFIX and NAME.SUFFIX support for items in addItemName, matching existing addCharName behaviour.
8 changes: 7 additions & 1 deletion src/game/clients/CClientMsg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,13 @@ void CClient::addItemName( CItem * pItem )
lpctstr pszNameFull = pItem->GetNameFull( fIdentified );

tchar szName[ MAX_ITEM_NAME_SIZE * 2 ];
size_t len = Str_CopyLimitNull( szName, pszNameFull, ARRAY_COUNT(szName) );

Str_CopyLimitNull(szName, pItem->GetKeyStr("NAME.PREFIX"), ARRAY_COUNT(szName));
Str_ConcatLimitNull(szName, pszNameFull, ARRAY_COUNT(szName));
Str_ConcatLimitNull(szName, pItem->GetKeyStr("NAME.SUFFIX"), ARRAY_COUNT(szName));

//size_t len = Str_CopyLimitNull( szName, pszNameFull, ARRAY_COUNT(szName) );
size_t len = strlen(szName);

const CContainer* pCont = dynamic_cast<const CContainer*>(pItem);
if ( pCont != nullptr )
Expand Down
Loading