mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Add Announcement & Small fixes
This commit is contained in:
1 parent
a8f816533f
commit
649ee6d361
5 files changed
+44
-4
No files matched your search
@@ -338,7 +338,7 @@ class ExternalRpcPetPatch
|
||||
if (Pelican.IsEaten(p.PlayerId) || Medic.ProtectList.Contains(p.PlayerId)) continue;
|
||||
dis = UnityEngine.Vector2.Distance(cppos, p.transform.position);
|
||||
cpdistance.Add(p, dis);
|
||||
Logger.Info($"{p?.Data?.PlayerName}の位置{dis}", "Warlock");
|
||||
Logger.Info($"{p?.Data?.PlayerName}'s distance: {dis}", "Warlock");
|
||||
}
|
||||
if (cpdistance.Any())
|
||||
{
|
||||
@@ -347,7 +347,7 @@ class ExternalRpcPetPatch
|
||||
if (cp.RpcCheckAndMurder(targetw, true))
|
||||
{
|
||||
targetw.SetRealKiller(pc);
|
||||
Logger.Info($"{targetw.GetNameWithRole().RemoveHtmlTags()}was killed", "Warlock");
|
||||
Logger.Info($"{targetw.GetNameWithRole().RemoveHtmlTags()} was killed", "Warlock");
|
||||
cp.Kill(targetw);
|
||||
pc.SetKillCooldown();
|
||||
pc.Notify(GetString("WarlockControlKill"));
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using HarmonyLib;
|
||||
using System.Threading;
|
||||
|
||||
namespace TOHE;
|
||||
|
||||
@@ -77,6 +76,8 @@ public static class ElectricTaskInitializePatch
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Logger.Info("Lights sabotage called", "ElectricTask");
|
||||
}
|
||||
}
|
||||
[HarmonyPatch(typeof(ElectricTask), nameof(ElectricTask.Complete))]
|
||||
@@ -97,6 +98,8 @@ public static class ElectricTaskCompletePatch
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Logger.Info("Lights sabotage fixed", "ElectricTask");
|
||||
}
|
||||
}
|
||||
// https://github.com/tukasa0001/TownOfHost/blob/357f7b5523e4bdd0bb58cda1e0ff6cceaa84813d/Patches/SabotageSystemPatch.cs
|
||||
|
||||
@@ -32,9 +32,13 @@ class ShipFixedUpdatePatch
|
||||
[HarmonyPatch(typeof(ShipStatus), nameof(ShipStatus.UpdateSystem), typeof(SystemTypes), typeof(PlayerControl), typeof(MessageReader))]
|
||||
public static class MessageReaderUpdateSystemPatch
|
||||
{
|
||||
public static void Prefix(ShipStatus __instance, [HarmonyArgument(0)] SystemTypes systemType, [HarmonyArgument(1)] PlayerControl player, [HarmonyArgument(2)] MessageReader reader)
|
||||
{
|
||||
RepairSystemPatch.Prefix(__instance, systemType, player, MessageReader.Get(reader).ReadByte());
|
||||
}
|
||||
public static void Postfix(ShipStatus __instance, [HarmonyArgument(0)] SystemTypes systemType, [HarmonyArgument(1)] PlayerControl player, [HarmonyArgument(2)] MessageReader reader)
|
||||
{
|
||||
Camouflage.CheckCamouflage();
|
||||
RepairSystemPatch.Postfix(__instance, systemType, player, MessageReader.Get(reader).ReadByte());
|
||||
}
|
||||
}
|
||||
[HarmonyPatch(typeof(ShipStatus), nameof(ShipStatus.UpdateSystem), typeof(SystemTypes), typeof(PlayerControl), typeof(byte))]
|
||||
@@ -154,6 +158,8 @@ class RepairSystemPatch
|
||||
[HarmonyArgument(1)] PlayerControl player,
|
||||
[HarmonyArgument(2)] byte amount)
|
||||
{
|
||||
Camouflage.CheckCamouflage();
|
||||
|
||||
if (systemType == SystemTypes.Electrical && 0 <= amount && amount <= 4)
|
||||
{
|
||||
var SwitchSystem = ShipStatus.Instance.Systems[SystemTypes.Electrical].Cast<SwitchSystem>();
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
#Number:100067
|
||||
#Title:TOHE PLUS v1.2.0
|
||||
#SubTitle:★★★★Compatibility with Fungle★★★★
|
||||
#ShortTitle:★TOHE+ v1.2.0
|
||||
#Date:2023-10-28T00:00:00Z
|
||||
#-----------------------------
|
||||
|
||||
## Thank you for using TOHE+!
|
||||
|
||||
## Fixes
|
||||
- This version is fully compatible with the new and loved Fungle map!
|
||||
- Updated all roles to work on Fungle
|
||||
- Other minor fixes
|
||||
|
||||
#### Reminder: You can use Pets instead of Venting / Shapeshifting for some roles. You can turn on this option under the Game Modifiers tab, where Guesser Mode is also located.
|
||||
|
||||
## New Setting
|
||||
- You can now change the sabotage time limit on Mira HQ (both Reactor and O2)
|
||||
|
||||
### Notes
|
||||
- I'm sorry if something doesn't work. My time to test the code I add is next to 0, and I work alone on all of this. Still, I hope there aren't any major bugs and this brings you a good experience.
|
||||
- Thank you for reading this and using my mod. Support and feedback is what motivates me to keep developing.
|
||||
@@ -15,6 +15,14 @@
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include=".\Resources\**" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="resources\modnews\english\TOHE+.v1.2.0.txt" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="resources\modnews\english\TOHE+.v1.2.0.txt" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2023.10.24" PrivateAssets="all" />
|
||||
|
||||
Reference in new issue
Block a user