#Oblivious Setting

40 messages · Page 1 of 1 (latest)

somber wasp
#

Will ignore Bait: ON/OFF
Off by Default
Self Explanatory, but If toggled ON, it ignores Bait and doesn't self report. If toggled OFF, it performs as usual.

candid parrot
#

uh

#

you do realize this is what broke it, right?

#

the setting is legit unused

somber wasp
#

uhhhh

#

how would i realize

#

i dont code clueless

candid parrot
#

i dunno.

somber wasp
#

maybe

#

maybe its fixable

vestal yarrow
candid parrot
#

Oblivious could report hehe_sip

vestal yarrow
#

not anymore.. (need to do 1 last test)

candid parrot
#

Oblivious works again though, what are you fixing?

vestal yarrow
#

okay i think it is fixed

#

change the code in ReportDeadBodyPatch prefix function for oblivious

                var tpc = Utils.GetPlayerById(target.PlayerId);
                if (__instance.Is(CustomRoles.Oblivious))
                {
                    if (!tpc.Is(CustomRoles.Bait) || (tpc.Is(CustomRoles.Bait) && Options.ObliviousBaitImmune.GetBool())) /* && (target?.Object != null)*/
                    {
                        return false;
                    } 
                }

and change the if condition inside if (target.Is(CustomRoles.Bait)) in MurderPlayerPatch postfix function to:-

            if (killer.PlayerId != target.PlayerId || (target.GetRealKiller()?.GetCustomRole() is CustomRoles.Swooper or CustomRoles.Wraith) || !killer.Is(CustomRoles.Oblivious) || (killer.Is(CustomRoles.Oblivious) && !Options.ObliviousBaitImmune.GetBool()))
candid parrot
#

code's different in mine

vestal yarrow
#

Oblivious could only report bait when immune to bait was off

vestal yarrow
candid parrot
#

Oblivious

vestal yarrow
#

what is changed?

candid parrot
#
                if (__instance.Is(CustomRoles.Oblivious) && (target?.Object == null || !target.Object.Is(CustomRoles.Bait))) return false;

vestal yarrow
#

it will work for immune to bait

main night
#

Noice.

vestal yarrow
#

PlayerContorol.cs

main night
#

Is good rn?

main night
#

@vestal yarrow It is copycat.

#

I have the problem after i copy oblivious code in playercontorolpatch.cs.

vestal yarrow
main night
vestal yarrow
#

You need to port the role again, bcoz it has been changed a lot

#

Also wrong place for this conversation

main night
#

;-;

#

Ok.

main night
vestal yarrow