Jump to content

Missing ACTIONFAIL_GENERIC quotes


Tykvesh
  • Closed

Each character has that quote, but only Wilson's is used:

Picture1.png.9cdfbd766cfd1d3572732d6e1093f474.png

Spoiler

function GetActionFailString(inst, action, reason)
    local character =
        type(inst) == "string"
        and inst
        or (inst ~= nil and inst.prefab or nil)

    local specialcharacter =
        type(inst) == "table"
        and ((inst:HasTag("playerghost") and "ghost") or
            (inst:HasTag("mime") and "mime"))
        or character

    local ret = GetSpecialCharacterString(specialcharacter)
    if ret ~= nil then
        return ret
    end

    character = string.upper(character)

    return (STRINGS.CHARACTERS[character] ~= nil and getcharacterstring(STRINGS.CHARACTERS[character].ACTIONFAIL, action, reason))
        or getcharacterstring(STRINGS.CHARACTERS.GENERIC.ACTIONFAIL, action, reason)
        or (STRINGS.CHARACTERS[character] ~= nil and STRINGS.CHARACTERS[character].ACTIONFAIL_GENERIC)
        or STRINGS.CHARACTERS.GENERIC.ACTIONFAIL_GENERIC
end

 


Steps to Reproduce
  1. Fail sweeping with the Clean Sweeper as Wilson
  2. Fail sweeping with the Clean Sweeper as anyone else
  • GL Happy 1



User Feedback


@RobKozoki ACTIONFAIL_GENERIC is a unique quote that each character has. So for example:

  • Wilson's is STRINGS.CHARACTERS.GENERIC.ACTIONFAIL_GENERIC = "I can't do that."
  • Webber's is STRINGS.CHARACTERS.WEBBER.ACTIONFAIL_GENERIC = "Mom told me never to do that."

1387287817_DontStarveTogetherScreenshot2020_12.18-11_12_34_87.png.6385063a360d99b6c2169adc3ec1b046.png

  • GL Happy 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...