From 58277d8ce3798b1d10991074b483f49b049b204c Mon Sep 17 00:00:00 2001 From: Lukas Urbonas Date: Fri, 18 Oct 2024 23:57:40 +0300 Subject: [PATCH 1/2] bump cssharp version update 247 -> 281, change BitsDamageType to latest api --- gitignore => .gitignore | 3 ++- mod/TTT.Roles/RoleManager.cs | 2 +- public/TTT.Public/TTT.Public.csproj | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) rename gitignore => .gitignore (61%) diff --git a/gitignore b/.gitignore similarity index 61% rename from gitignore rename to .gitignore index aad3b71..1e9bcc5 100644 --- a/gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ - # Repository build files build/ bin/ @@ -10,3 +9,5 @@ Release/ # IDE files .idea/ .vs/ +/mod/TTT.Detective/bin +mod/TTT.Shop/TTT.Shop.csproj diff --git a/mod/TTT.Roles/RoleManager.cs b/mod/TTT.Roles/RoleManager.cs index 4c8147b..4d88498 100644 --- a/mod/TTT.Roles/RoleManager.cs +++ b/mod/TTT.Roles/RoleManager.cs @@ -67,7 +67,7 @@ public void Start(BasePlugin parent) } - if (info.BitsDamageType is not 256) return HookResult.Continue; + if (info.BitsDamageType != DamageTypes_t.DMG_SHOCK) return HookResult.Continue; if (attacker == null) return HookResult.Continue; info.Damage = 0; diff --git a/public/TTT.Public/TTT.Public.csproj b/public/TTT.Public/TTT.Public.csproj index 97a24db..7d965c2 100644 --- a/public/TTT.Public/TTT.Public.csproj +++ b/public/TTT.Public/TTT.Public.csproj @@ -5,7 +5,7 @@ enable - + From 49da629914b5a42b8dc07a16a8c712fadc3ca008 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sat, 19 Oct 2024 00:01:24 +0300 Subject: [PATCH 2/2] Update .gitignore --- .gitignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1e9bcc5..fbf16f0 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,3 @@ Release/ # IDE files .idea/ .vs/ -/mod/TTT.Detective/bin -mod/TTT.Shop/TTT.Shop.csproj