Изменение автоэмоций (#625)

This commit is contained in:
iertis 2024-11-13 06:13:50 +05:00 committed by GitHub
parent 72bac26ebe
commit 035b5288e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 68 additions and 13 deletions

View file

@ -0,0 +1,10 @@
namespace Content.Server._Sunrise.NoEmotions;
/// <summary>
/// This is used for the NoEmotions trait.
/// </summary>
[RegisterComponent]
public sealed partial class NoEmotionsComponent : Component
{
}

View file

@ -18,11 +18,9 @@ namespace Content.Server.Sunrise.Paws
[DataField("thresholdDamage")]
public FixedPoint2 ThresholdDamage = 5;
public List<string> EmotesTakeDamage = new()
{
"Scream",
"Crying"
};
[ViewVariables(VVAccess.ReadWrite)]
[DataField("emotesTakeDamage")]
public List<string> EmotesTakeDamage = new();
[DataField("nextChargeTime", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
public TimeSpan NextScreamTime = TimeSpan.FromSeconds(0);

View file

@ -1,3 +1,4 @@
using Content.Server._Sunrise.NoEmotions;
using Content.Server.Chat.Systems;
using Content.Shared.Damage;
using Content.Shared.Mobs;
@ -30,6 +31,9 @@ namespace Content.Server.Sunrise.Paws
private void OnDamaged(EntityUid uid, PawsComponent component, DamageChangedEvent args)
{
if (HasComp<NoEmotionsComponent>(uid))
return;
if (!_mobStateSystem.IsAlive(uid))
return;

View file

@ -1,7 +1,7 @@
chat-emote-name-bark = Лаять
chat-emote-name-hisses = Шипеть
chat-emote-name-purrs = Мурчать
chat-emote-name-growls = Рычять
chat-emote-name-growls = Рычать
chat-emote-name-mews = Мявкать
chat-emote-name-howl = Выть
chat-emote-name-oink = Хрюкать

View file

@ -1,7 +1,7 @@
chat-emote-name-bark = Лаять
chat-emote-name-hisses = Шипеть
chat-emote-name-purrs = Мурчать
chat-emote-name-growls = Рычять
chat-emote-name-growls = Рычать
chat-emote-name-mews = Мявкать
chat-emote-name-howl = Выть
chat-emote-name-oink = Хрюкать

View file

@ -30,6 +30,7 @@ chat-emote-name-monkeyscreeches = Обезьяньи крики
chat-emote-name-robotbeep = Робот
chat-emote-name-yawn = Зевать
chat-emote-name-snore = Храпеть
chat-emote-name-whines = Скулить
# Сообщение
chat-emote-msg-scream = кричит!
chat-emote-msg-laugh = смеётся
@ -61,3 +62,4 @@ chat-emote-msg-cathisses = шипит
chat-emote-msg-monkeyscreeches = кричит
chat-emote-msg-yawn = зевает
chat-emote-msg-snore = храпит
chat-emote-msg-whines = скулит!

View file

@ -39,3 +39,5 @@ trait-french-name = Французский акцент
trait-french-desc = Ваш акцент имеет некое «je ne sais quoi».
trait-spanish-name = Испанский акцент
trait-spanish-desc = Hola señor, где находится библиотека?
trait-noemotions-name = Крепкий орешек
trait-noemotions-desc = Вы настолько очерствели, что физическая боль не вызывает у вас произвольных звуков.

View file

@ -229,6 +229,9 @@
screamInterval: 3
thresholdDamage: 5
coughInterval: 5
emotesTakeDamage:
- Scream
- Crying
# Sunrise-End
- type: entity

View file

@ -20,6 +20,10 @@
- type: Inventory
speciesId: human
- type: VulpaAccent
- type: Paws
emotesTakeDamage:
- Scream
- Whines
- type: entity

View file

@ -15,6 +15,12 @@
- /Audio/_Sunrise/Voice/Vulpkanin/dog_growl5.ogg
- /Audio/_Sunrise/Voice/Vulpkanin/dog_growl6.ogg
- type: soundCollection
id: VulpkaninWhines
files:
- /Audio/_Sunrise/Voice/Vulpkanin/dog_whimpering_1.ogg
- /Audio/_Sunrise/Voice/Vulpkanin/dog_whine.ogg
- type: soundCollection
id: PlushieVulpkaninGrowls
files:
@ -28,11 +34,6 @@
- /Audio/_Sunrise/Voice/Vulpkanin/dog_snarl2.ogg
- /Audio/_Sunrise/Voice/Vulpkanin/dog_snarl3.ogg
- type: soundCollection
id: VulpkaninWhines
files:
- /Audio/_Sunrise/Voice/Vulpkanin/dog_whine.ogg
- type: soundCollection
id: VulpkaninHowls
files:

View file

@ -0,0 +1,7 @@
- type: trait
id: NoEmotions
name: trait-noemotions-name
description: trait-noemotions-desc
category: Quirks
components:
- type: NoEmotions

View file

@ -69,6 +69,8 @@
collection: MaleCoughs
Crying:
collection: MaleCry
Whines:
collection: VulpkaninWhines
Whistle:
collection: Whistles
Sigh:
@ -95,6 +97,8 @@
collection: FemaleCoughs
Crying:
collection: FemaleCry
Whines:
collection: VulpkaninWhines
Whistle:
collection: Whistles
Sigh:
@ -168,4 +172,4 @@
variation: 0.125
sounds:
Scream:
collection: ClownGoblinScream
collection: ClownGoblinScream

View file

@ -207,3 +207,23 @@
name: chat-emote-name-insult
category: Vocal
chatMessages: [инсульт]
- type: emote
id: Whines
name: chat-emote-name-whines
category: Vocal
icon: Interface/Emotes/cry.png
whitelist:
components:
- Vocal
blacklist:
components:
- BorgChassis
chatMessages: ["chat-emote-msg-whines"]
chatTriggers:
- скулит.
- скулит!
- скулить.
- скулить!
- скулит
- скулить