Fixes & Tweaks (#356)

* Revert "captains sword reflect chance (#18133)"

This reverts commit e393eedd09.

* Mirror shield passive reflect

* Traitor stuff fixes and tweaks

* Connected dispenser click sound

* No medipen heavy attack

* Slice sound for blades

* Crossbow & material stacking fixes

* Hypospray fixes

* Chenge crossbow damage type

* Fix penetrating on land

* Antispam tweak
This commit is contained in:
Aviu00
2023-09-04 12:03:28 +03:00
committed by Aviu00
parent 800225271c
commit e64c1b7e81
23 changed files with 143 additions and 27 deletions

View File

@@ -216,9 +216,9 @@ namespace Content.Server.Chat.Managers
_utkaSocketWrapper.SendMessageToAll(asayEventMessage);
}
public bool TrySendNewMessage(ICommonSession session, string newMessage)
public bool TrySendNewMessage(ICommonSession session, string newMessage, bool checkLength = false)
{
if (!_antispam || newMessage.Length < _antispamMinLength)
if (!_antispam || checkLength && newMessage.Length < _antispamMinLength)
{
_lastMessages.Remove(session.Data.UserId);
return true;

View File

@@ -24,7 +24,7 @@ namespace Content.Server.Chat.Managers
// WD-EDIT
void SendHookAdminChat(string sender, string message);
bool TrySendNewMessage(ICommonSession session, string newMessage);
bool TrySendNewMessage(ICommonSession session, string newMessage, bool checkLength = false);
// WD-EDIT
void SendAdminAnnouncement(string message);