Jump to content

Charged Ending Spear Disappearing When Wigfrid Enters/Exits Cave


Maltose
  • Fixed

The issue is with the charged ending spear. When Wigfrid enters or exits a cave while holding a charged ending spear, the spear disappears.

image.png.27c6ee370ab74c1bb4f625f348796a71.png

image.png.66fda0403f1759646167c5fd31b95162.png


Steps to Reproduce
  • Equip Wigfrid with a charged ending spear.
  • Enter a cave.
  • Exit the cave.
  • Sanity 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Me and my friends are having this exact same issue. I believe it is due to the uptade in the files regarding skilltrees yesterday. Wigfrid spear can only be held by her while the skilltree is unlocked and it is, somehow, not managing to hold to this perk while changing shards or loging out.

Share this comment


Link to comment
Share on other sites

-- scripts/components/equippable.lua
function Equippable:IsRestricted_FromLoad(target)
    if SKILLTREE_EQUIPPABLE_RESTRICTED_TAGS[self.restrictedtag] == target.prefab then
        -- NOTES(JBK): If a player is resolving equipment from a snapshot load assume the player has the tag only if the tag is from a skill tree.
        return false
    end
    return self:IsRestricted(target)
end

-- scripts/constants.lua
SKILLTREE_EQUIPPABLE_RESTRICTED_TAGS = 
{
    -- Using quotes for searching purposes.
    ["inspectacleshatuser"]  = "winona",
    ["wathgrithrshielduser"] = "wathgrithr",
    ["spear_lightning_upgradeuser"] = "wathgrithr",
}

I found it to be related to the equippable component's restrictedtag field. Removing the restrictedtag for Wigfrid's Elding Spear prevents this bug from occurring. After a bit of testing, I believe I have a solution for the bug. In scripts/components/equippable.lua, the game checks to see if an equippable item should be restricted. However, it first checks a global tag table SKILLTREE_EQUIPPABLE_RESTRICTED_TAGS in scripts/constants.lua for skill tree related items that should bypass restrictions. Wigfrid's Elding Spear isn't listed in this table. Adding ["spear_lightning_upgradeuser"] = "wathgrithr" to the bypass table fixes the issue.

In the previous version of the game before the most recent update, there was a table TECH_SKILLTREE_BUILDER_TAG_OWNERS that did include the Elding Spear in scripts/constants.lua, but Klei refactored the table in the most recent update and likely forgot to add the Elding Spear in the table.

  • Like 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...