Skip to content

Commit

Permalink
Merge pull request #43 from EnhancedNetwork/dev_2.2.0
Browse files Browse the repository at this point in the history
Dev 2.2.0
  • Loading branch information
impostor4291 authored Jan 9, 2025
2 parents d7b7f7b + 8a09db1 commit 2a1d08e
Show file tree
Hide file tree
Showing 22 changed files with 11,480 additions and 8,472 deletions.
2 changes: 1 addition & 1 deletion Patches/ChatCommandPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2100,7 +2100,7 @@ public static void OnReceiveChat(PlayerControl player, string text, out bool can
if (Nemesis.NemesisMsgCheck(player, text)) { Logger.Info($"Is Nemesis Revenge command", "OnReceiveChat"); return; }
if (Retributionist.RetributionistMsgCheck(player, text)) { Logger.Info($"Is Retributionist Revenge command", "OnReceiveChat"); return; }
if (player.GetRoleClass() is Dictator dt && dt.ExilePlayer(player, text)) { canceled = true; Logger.Info($"Is Dictator command", "OnReceiveChat"); return; }
if (Ritualist.RitualistMsgCheck(player, text)) { canceled = true; Logger.Info($"Is Ritualist command", "OnReceiveChat"); return; }
if (Ritualist.RitualistMsgCheck(player, text)) { canceled = true; Logger.Info($"Is Ritualist command", "OnReceiveChat"); return; }

Directory.CreateDirectory(modTagsFiles);
Directory.CreateDirectory(vipTagsFiles);
Expand Down
1 change: 0 additions & 1 deletion Patches/ExilePatch.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using AmongUs.Data;
using System;
using TOHE.Modules;
using TOHE.Roles.Core;
using TOHE.Roles.Neutral;

Expand Down
2 changes: 1 addition & 1 deletion Patches/IntroPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ public static void Postfix(IntroCutscene __instance)
PlayerControl.LocalPlayer.Data.Role.IntroSound = RoleManager.Instance.AllRoles.FirstOrDefault((role) => role.Role == RoleTypes.GuardianAngel)?.UseSound;
break;
case CustomRoles.Illusionist:
case CustomRoles.MoonDancer:
case CustomRoles.MoonDancer:
PlayerControl.LocalPlayer.Data.Role.IntroSound = RoleManager.Instance.AllRoles.FirstOrDefault((role) => role.Role == RoleTypes.Phantom)?.UseSound;
break;
case CustomRoles.Telecommunication:
Expand Down
1,493 changes: 854 additions & 639 deletions Resources/Lang/de_DE.json

Large diffs are not rendered by default.

1,493 changes: 854 additions & 639 deletions Resources/Lang/es_419.json

Large diffs are not rendered by default.

1,493 changes: 854 additions & 639 deletions Resources/Lang/es_ES.json

Large diffs are not rendered by default.

1,494 changes: 855 additions & 639 deletions Resources/Lang/fil_PH.json

Large diffs are not rendered by default.

1,491 changes: 853 additions & 638 deletions Resources/Lang/fr_FR.json

Large diffs are not rendered by default.

1,491 changes: 853 additions & 638 deletions Resources/Lang/it_IT.json

Large diffs are not rendered by default.

1,445 changes: 830 additions & 615 deletions Resources/Lang/ja_JP.json

Large diffs are not rendered by default.

1,494 changes: 855 additions & 639 deletions Resources/Lang/ko_KR.json

Large diffs are not rendered by default.

1,493 changes: 854 additions & 639 deletions Resources/Lang/nl_NL.json

Large diffs are not rendered by default.

1,493 changes: 854 additions & 639 deletions Resources/Lang/pt_BR.json

Large diffs are not rendered by default.

1,494 changes: 855 additions & 639 deletions Resources/Lang/pt_PT.json

Large diffs are not rendered by default.

1,493 changes: 854 additions & 639 deletions Resources/Lang/ru_RU.json

Large diffs are not rendered by default.

1,289 changes: 752 additions & 537 deletions Resources/Lang/zh_CN.json

Large diffs are not rendered by default.

781 changes: 498 additions & 283 deletions Resources/Lang/zh_TW.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion Roles/Coven/Medusa.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using static TOHE.Options;
using static TOHE.Translator;
using static TOHE.Utils;
using static UnityEngine.GraphicsBuffer;

namespace TOHE.Roles.Coven;

Expand Down
2 changes: 0 additions & 2 deletions Roles/Coven/PotionMaster.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using Hazel;
using InnerNet;
using System.Text;
using TOHE.Roles.AddOns.Common;
using UnityEngine;
using static TOHE.Options;
using static TOHE.Translator;
using static TOHE.Utils;
using static UnityEngine.ParticleSystem.PlaybackState;

namespace TOHE.Roles.Coven;

Expand Down
3 changes: 1 addition & 2 deletions Roles/Coven/Ritualist.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using TOHE.Roles.AddOns.Impostor;
using TOHE.Roles.Crewmate;
using TOHE.Roles.Double;
using TOHE.Roles.Impostor;
using TOHE.Roles.Neutral;
using UnityEngine;
using static TOHE.Options;
Expand Down Expand Up @@ -202,7 +201,7 @@ public override void AfterMeetingTasks()
public void ConvertRole(PlayerControl killer, PlayerControl target)
{
if (!killer.Is(CustomRoles.Admired) && !killer.Is(CustomRoles.Recruit) && !killer.Is(CustomRoles.Charmed)
&& !killer.Is(CustomRoles.Infected) && !killer.Is(CustomRoles.Contagious) && !killer.Is(CustomRoles.Madmate)
&& !killer.Is(CustomRoles.Infected) && !killer.Is(CustomRoles.Contagious) && !killer.Is(CustomRoles.Madmate)
&& CanBeConverted(target))
{
Logger.Info("Set converted: " + target.GetNameWithRole().RemoveHtmlTags() + " to " + CustomRoles.Enchanted.ToString(), "Ritualist Assign");
Expand Down
2 changes: 1 addition & 1 deletion Roles/Crewmate/Sheriff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public override void SetupCustomOption()
CanKillContagious = BooleanOptionItem.Create(Id + 27, "SheriffCanKillContagious", true, TabGroup.CrewmateRoles, false).SetParent(Options.CustomRoleSpawnChances[CustomRoles.Sheriff]);
CanKillEnchanted = BooleanOptionItem.Create(Id + 30, "SheriffCanKillEnchanted", true, TabGroup.CrewmateRoles, false).SetParent(Options.CustomRoleSpawnChances[CustomRoles.Sheriff]);
CanKillCoven = BooleanOptionItem.Create(Id + 29, "SheriffCanKillCoven", true, TabGroup.CrewmateRoles, false).SetParent(Options.CustomRoleSpawnChances[CustomRoles.Sheriff]);
MisfireOnAdmired = BooleanOptionItem.Create(Id + 32, "SheriffMisfireOnAdmired", true, TabGroup.CrewmateRoles, false).SetParent(Options.CustomRoleSpawnChances[CustomRoles.Sheriff]);
MisfireOnAdmired = BooleanOptionItem.Create(Id + 32, "SheriffMisfireOnAdmired", true, TabGroup.CrewmateRoles, false).SetParent(Options.CustomRoleSpawnChances[CustomRoles.Sheriff]);
CanKillNeutrals = BooleanOptionItem.Create(Id + 16, "SheriffCanKillNeutrals", true, TabGroup.CrewmateRoles, false).SetParent(Options.CustomRoleSpawnChances[CustomRoles.Sheriff]);
CanKillNeutralsMode = StringOptionItem.Create(Id + 14, "SheriffCanKillNeutralsMode", EnumHelper.GetAllNames<KillOptionList>(), 0, TabGroup.CrewmateRoles, false).SetParent(CanKillNeutrals);
SetUpNeutralOptions(Id + 33);
Expand Down
2 changes: 1 addition & 1 deletion main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class Main : BasePlugin
public static ConfigEntry<string> DebugKeyInput { get; private set; }

public const string PluginGuid = "com.0xdrmoe.townofhostenhanced";
public const string PluginVersion = "2025.0106.220.11000"; // YEAR.MMDD.VERSION.CANARYDEV
public const string PluginVersion = "2025.0109.220.11000"; // YEAR.MMDD.VERSION.CANARYDEV
public const string PluginDisplayVersion = "2.2.0 Alpha 11";
public const string SupportedVersionAU = "2024.10.29"; // Changed becasue Dark theme works at this version.

Expand Down

0 comments on commit 2a1d08e

Please sign in to comment.