Attack and protection artifacts limited to 3 paperdoll slots.

Contributed by nasseka.
This commit is contained in:
MobiusDevelopment
2021-08-15 13:59:06 +00:00
parent 67dc9f5113
commit 6dacfa9b7d
12 changed files with 24 additions and 24 deletions

View File

@ -2336,7 +2336,7 @@ public abstract class Inventory extends ItemContainer
{
for (int i = PAPERDOLL_ARTIFACT13; i < (PAPERDOLL_ARTIFACT13 + slotNumber); i++)
{
if (_paperdoll[i] == null)
if ((i <= PAPERDOLL_ARTIFACT15) && (_paperdoll[i] == null))
{
setPaperdollItem(i, item);
return;
@ -2348,7 +2348,7 @@ public abstract class Inventory extends ItemContainer
{
for (int i = PAPERDOLL_ARTIFACT16; i < (PAPERDOLL_ARTIFACT16 + slotNumber); i++)
{
if (_paperdoll[i] == null)
if ((i <= PAPERDOLL_ARTIFACT18) && (_paperdoll[i] == null))
{
setPaperdollItem(i, item);
return;