Stacking Problems

Discussion in 'General Modification' started by Rudy, Mar 20, 2013.

Remove all ads!
  1. Rudy

    Rudy Established Member

    Joined:
    Jan 30, 2005
    Messages:
    345
    Likes Received:
    2
    As a completely different topic, I noticed that Amulet of Natural Armor and Brooch of Shielding both stack in the inventory (like gems do). Do you know how to fix this? If not, I'll investigate.
     
  2. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    Re: Creating a Spell Spreadsheet

    You mean they stack when equipped? Off hand I thought there was a 'does not stack' flag or something like that, but I don't see it in Agetian's object flags list. Is there a proto field called stack size or something like that?
     
  3. Rudy

    Rudy Established Member

    Joined:
    Jan 30, 2005
    Messages:
    345
    Likes Received:
    2
    Re: Creating a Spell Spreadsheet

    No, I mean if you have two or more amulets of natural armor in your inventory, they stack in the same way that gems, potions, ammunition and scrolls stack. They take up a single slot. Same for Brooch of Shielding. No other wondrous items do this, as far as I know. I'll look into it if you're not sure how to fix it. I just didn't want to waste time figuring something out if you already knew the answer.
     
  4. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    Re: Creating a Spell Spreadsheet

    That's weird. What are they called upon stacking, given that they've got two different names?
     
  5. Rudy

    Rudy Established Member

    Joined:
    Jan 30, 2005
    Messages:
    345
    Likes Received:
    2
    Re: Creating a Spell Spreadsheet

    Sorry; I'm still not being clear.

    Suppose you craft three Amulet of Wisdom +2. These three amulets would appear in three different slots in your inventory. The same is true of every wondrous item *except* for Brooches of Shielding and Amulets of Natural armor.

    If you craft three Amulets of Natural Armor +2, they will take up only one slot in your inventory, with a little number "3" indicating that there are three of them. Just like ammunition.

    I'm looking into it now; has something to do with the category. Amulets of Natural armor are marked as 17, which is "Stackable jewelry", while Amulets of Wisdom are marked as 10, which is "Medallions". Brooch of Shielding is marked as 5, though, which is "Plate". Odd. I'll let you know what I figure out.
     
  6. Rudy

    Rudy Established Member

    Joined:
    Jan 30, 2005
    Messages:
    345
    Likes Received:
    2
    Re: Creating a Spell Spreadsheet

    Okay, so I solved the problem. It turns out it was a problem for Amulet of Mighty Fists, as well.

    Basically items 6257-6266 (which is all of the Amulets of Natural Armor, as well as Amulets of Mighty Fists) should be changed from category 17 to category 10 in protos.tab. It's not likely to cause any bugs leaving it alone, but it's very odd and inelegant that these two types of magical amulets stack, but other magical jewelry doesn't stack. So, this is more of a consistency fix than a bug fix.

    Item 12652, Brooch of Shielding, needs to be changed from category 5 to category 10, for similar reasons.
     
  7. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    Done, thanks. :)
     
Our Host!