-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
125 changed files
with
4,710 additions
and
4,185 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Submodule ReworkedAssets
updated
42 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
namespace TownOfUsReworked.BetterMaps; | ||
|
||
[HarmonyPatch(typeof(ReactorSystemType), nameof(ReactorSystemType.UpdateSystem))] | ||
public static class ReactorFungle | ||
{ | ||
public static bool Prefix(ReactorSystemType __instance, ref MessageReader msgReader) | ||
{ | ||
if (!CustomGameOptions.EnableBetterFungle) | ||
return true; | ||
|
||
if (ShipStatus.Instance.Type == ShipStatus.MapType.Fungle && msgReader.ReadByte() == 128 && !__instance.IsActive) | ||
{ | ||
__instance.Countdown = __instance.ReactorDuration = CustomGameOptions.FungleReactorTimer; | ||
__instance.UserConsolePairs.Clear(); | ||
__instance.IsDirty = true; | ||
return false; | ||
} | ||
|
||
return true; | ||
} | ||
} | ||
|
||
[HarmonyPatch(typeof(MushroomMixupSabotageSystem), nameof(MushroomMixupSabotageSystem.UpdateSystem))] | ||
public static class MushroomFungle | ||
{ | ||
public static bool Prefix(MushroomMixupSabotageSystem __instance, ref MessageReader msgReader) | ||
{ | ||
if (!CustomGameOptions.EnableBetterFungle) | ||
return true; | ||
|
||
if ((MushroomMixupSabotageSystem.Operation)msgReader.ReadByte() == MushroomMixupSabotageSystem.Operation.TriggerSabotage && !__instance.IsActive) | ||
{ | ||
__instance.Host_GenerateRandomOutfits(); | ||
__instance.MushroomMixUp(); | ||
__instance.currentState = MushroomMixupSabotageSystem.State.JustTriggered; | ||
__instance.secondsForAutoHeal = __instance.currentSecondsUntilHeal = CustomGameOptions.FungleMixupTimer; | ||
__instance.IsDirty = true; | ||
return false; | ||
} | ||
|
||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.