Jump to content

Need HELP to understand Woodie were-form's werenesss [SOLVED]


Recommended Posts

Hi guys, thank you for coming here!!!

Ok, the thing is: i found these lines in tuning.lua file:

Spoiler

BEAVER_WORKING_DRAIN_TIME_MULTIPLIER2 = 16,
BEAVER_WORKING_DRAIN_TIME_MULTIPLIER1 = 10,

WEREMOOSE_FIGHTING_DRAIN_TIME_MULTIPLIER2 = 16,
WEREMOOSE_FIGHTING_DRAIN_TIME_MULTIPLIER1 = 10,

WEREGOOSE_RUN_DRAIN_TIME_MULTIPLIER2 = 16,
WEREGOOSE_RUN_DRAIN_TIME_MULTIPLIER1 = 10,

and a section call CalculateWerenessDrainRate in the woodie.lua file, which i think affect the wereness drain rate (some will say it's written in the name, for god's sake). I don't want to mess with that section, it's too many thing going in there. And just tuning these line is good enough to get the job done, i guess.

Spoiler

local function CalculateWerenessDrainRate(inst, mode, isfullmoon)
    local t = isfullmoon and TUNING.WERE_FULLMOON_DRAIN_TIME_MULTIPLIER or 1
    if mode == WEREMODES.BEAVER then
        t = t * TUNING.BEAVER_DRAIN_TIME
        if inst._beaverworkinglevel ~= nil then
            t = t * (inst._beaverworkinglevel > 1 and TUNING.BEAVER_WORKING_DRAIN_TIME_MULTIPLIER2 or TUNING.BEAVER_WORKING_DRAIN_TIME_MULTIPLIER1)
        end
    elseif mode == WEREMODES.MOOSE then
        t = t * TUNING.WEREMOOSE_DRAIN_TIME
        if inst._moosefightinglevel ~= nil then
            t = t * (inst._moosefightinglevel > 1 and TUNING.WEREMOOSE_FIGHTING_DRAIN_TIME_MULTIPLIER2 or TUNING.WEREMOOSE_FIGHTING_DRAIN_TIME_MULTIPLIER1)
        end
    else--if mode == WEREMODES.GOOSE then
        t = t * TUNING.WEREGOOSE_DRAIN_TIME
        if inst.sg:HasStateTag("moving") then
            if inst._gooserunning ~= nil then
                inst._gooserunning:Cancel()
            end
            inst._gooserunning = inst:DoTaskInTime(TUNING.WEREGOOSE_RUN_DRAIN_TIME_DURATION, OnGooseRunningOver, CalculateWerenessDrainRate)
            inst._gooserunninglevel = 2
        end
        if inst._gooserunninglevel ~= nil then
            t = t * (inst._gooserunninglevel > 1 and TUNING.WEREGOOSE_RUN_DRAIN_TIME_MULTIPLIER2 or TUNING.WEREGOOSE_RUN_DRAIN_TIME_MULTIPLIER1)
        end
    end
    return -100 / t
end

Because i know next to nothing about modding, for that i don't know which one (of the 2 lines for each form) is being use when the wereform performing certain actions (gnawing for Werebeaver, fighting for Weremoose, running for Weregoose).

Why i want to know?! Because i want to decrease the drain rate when performing certain actions (so i can stay in that form longer) and also increase the drain rate when not (so i can transform back to woodie faster when i accidentally got transform, like when full moon caught me by surprise).

And the question is: Which one (MULTIPLIER2 or MULTIPLIER1) is being used to decrease the drain rate when the wereform performing certain actions?!

Thank you for reading. Have a good day.

Edited by Psychomaniac
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
 Share

×
  • Create New...