Jump to content

Wonkey Compendium Unlock is Flipped


Hornete
  • Fixed

With the new update, everyone who has Wonkey unlocked now don't see them in the Compendium, and everyone who didn't have Wonkey unlocked will now see them in the Compendium.

function GetFEVisibleCharacterList()
    local all = {}    
    for i,character in ipairs(DST_CHARACTERLIST) do
        local add_char = true
        if character == "wonkey" and TheGenericKV:GetKV("wonkey_played") then --only show wonkey if we've played him
            add_char = false
        end
        if add_char then
            table.insert( all, character )
        end
    end
    return all 
end

With the introduction of the 'TheGenericKV' class, the function responsible for returning visible characters was updated, however, the 'wonkey_played' attribute will now set 'add_char' to false if unlocked, which is not the intended behaviour I would imagine.

if character == "wonkey" and TheGenericKV:GetKV("wonkey_played") ~= "played" then

or

if character == "wonkey" and not TheGenericKV:GetKV("wonkey_played") then

should fix the issue simply.

Cheers.


Steps to Reproduce

1. Don't unlock Wonkey

2. Notice theyre in the Compendium

3. Unlock them

4. Notice theyre now not in the Compendium any longer

 

  • Like 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.
16 minutes ago, nimzowitsch10 said:

dude they should be paying you for this stuff lol

I mean, at least two modders were hired to work in Klei, so who knows...

  • Big Ups 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...