Jump to content

Mimicked Staves without skins become real when inserted into Moon Stone


loganpea
  • Pending

Steps to Reproduce

Obtain a fake staff without a skin applied to it, insert it into the moon stone, then break the economy.




User Feedback


I don't know how it works. But if it's a mimic staff with skin on it, then it won't become a real staff.

Edited by Cassielu

Share this comment


Link to comment
Share on other sites

I think what's going on here is that if it has a skin, it will not replace it, which keeps the data in that case.

    if skin_build ~= nil then
        inst.AnimState:OverrideItemSkinSymbol("swap_staffs", skin_build, GetStaffSymbol(staffname), item.GUID, "staffs")
        inst.components.pickable:ChangeProduct(nil)
        inst._staffinst = item
        inst._staffuse = nil
        inst:AddChild(item)
        item.Transform:SetPosition(0, 0, 0)
        item:RemoveFromScene()
    else
        inst.AnimState:OverrideSymbol("swap_staffs", "staffs", GetStaffSymbol(staffname))
        if type(item) == "table" then
            if inst._staffinst ~= nil then
                --Shouldn't happen
                inst._staffinst:Remove()
                inst._staffinst = nil
            end
            inst._staffuse = item.components.finiteuses ~= nil and item.components.finiteuses:GetUses() or nil
            item:Remove()
        end
    end

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...