mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Add Compelled, Inquisitor, Postponer, Tree
This commit is contained in:
1 parent
7913cbffe7
commit
fc57ca87a0
19 files changed
+341
-3
No files matched your search
@@ -22,6 +22,7 @@ using TMPro;
|
||||
using UnityEngine;
|
||||
using static EHR.Translator;
|
||||
using static EHR.Utils;
|
||||
using Tree = EHR.Crewmate.Tree;
|
||||
|
||||
namespace EHR;
|
||||
|
||||
@@ -1784,6 +1785,13 @@ internal static class FixedUpdatePatch
|
||||
return;
|
||||
}
|
||||
|
||||
if (Main.PlayerStates.TryGetValue(target.PlayerId, out var targetState) && targetState.Role is Tree { TreeSpriteActive: true })
|
||||
{
|
||||
target.cosmetics.nameText.text = Tree.Sprite;
|
||||
roleText.enabled = false;
|
||||
return;
|
||||
}
|
||||
|
||||
Mark.Clear();
|
||||
Suffix.Clear();
|
||||
|
||||
|
||||
Reference in new issue
Block a user