MatchRules is a struct in Secret neighbor script, we can modify it so we can add the amount of locks that will be spawned on the basement door, in the script basement door are called BasementDoorInteractable,
Well we will just go straight modifying the MatchRules, we can find MatchRules struct from sn v0.9.5 and Up, in the SN v0.8.15 and older There’s no match rules struct
First go to GameModes.LobbyMode.Rules
And we now need to modify the LocksAmountRule enum, and add some more options.
Here we just need to right click and click edit class.
I just add SEVEN, EIGHT, and NINE in the enum, after you added it just compile and save assembly.
and next we need to open LocksAmountRuleExtensions class.
Here’s the class.
Now we will edit the GetValue Method.
Just add it like this compile and save.
Congratulations now we can add Locks up to 9 locks in a custom game ;).
Now we will modify the Time Rules.
now we will modify the TimeLimitRule enum
it should look like this, now right click and click Edit Class.
Here i added Sixty and OneTwenty.
after that just compile and save assembly.
and now we need to go to TImeLimitRuleExtensionClass
and we will modify the GetHumanReadableValue Method
Here i added case Sixty and Case OneTwenty, adter that just compile and save it.
now we have to modify the GetValue method inside TimeLimitRuleExtensions Class
This are the Unmodified GetValue Method from TimeLimitRuleExtensions class
Now We will modify it into this image below
i added the Sixty and one twenty here.
1800f (float) there means 1800 seconds that mean it’s 30 mins, so 60 minutes are 3600f and 120 minutes are 7200f just like that after that just compile and save it, now done, you can launch the game.
if you did something wrong your game might be stuck at loading when opening
this Tutorial are worked from SN v0.9.5 until SN v184.108.40.206 since start from SN v220.127.116.11 the game are il2cpp, SN v18.104.22.168 are still XMAS 2019 but it’s IL2CPP
thanks for visiting my site, leave a comment if you need any help ;D