Set max length of battlecry to 12 chars. (#16958)
* Set max length of battlecry to 12 chars. Deleted a duplicate file. * Also cleanup some leftovers
This commit is contained in:
@@ -5,15 +5,17 @@ namespace Content.Shared.Speech.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[AutoGenerateComponentState]
|
||||
[Access(typeof(SharedMeleeSpeechSystem), Other = AccessPermissions.ReadWrite)]
|
||||
public sealed partial class MeleeSpeechComponent : Component
|
||||
{
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("Battlecry")]
|
||||
[AutoNetworkedField]
|
||||
[Access(typeof(SharedMeleeSpeechSystem), Other = AccessPermissions.ReadWrite)]
|
||||
public string? Battlecry;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("MaxBattlecryLength")]
|
||||
public int MaxBattlecryLength = 12;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Weapons.Melee;
|
||||
namespace Content.Shared.Speech.EntitySystems;
|
||||
|
||||
public abstract class SharedMeleeSpeechSystem : EntitySystem
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user