Change value of int

Tbonehunter

Greenhorn
I realize I’m exposing myself to ridicule with this question, but I’ve scoured the wiki modding tutorials, looked on various web tutorials, and can’t find an answer to how one codes a mod to change an “int” value to a different “int” value. I’m tired of my dog constantly blocking my path in/out the door.
Specifically I want to change the values in the following lines from StardewValley/Characters/Pet.cs:

public override int getTimeFarmerMustPushBeforeStartShaking()
{
return 300
}

public override int getTimeFarmerMustPushBeforePassingThrough()
{
return 750
}

Any insights would be welcome.
Many thanks,
 

SomeoneEls

Sodbuster
So basically the 300 and 750 is the number of milliseconds that you need to wait. A harmony prefix that changes the result to 0 would work here.

 

Tbonehunter

Greenhorn
Thank you! I saw another mod with similar goals that used Harmony but the SMAPI tutorial on this site’s wiki seemed to strongly advise against it so I shied away. I’ll go farther down that path.
Many thanks.
 
Top