Muted status effect + 2 reagent sources of it (#8673)

This commit is contained in:
Rane
2022-06-06 04:35:24 -04:00
committed by GitHub
parent 98c3b75364
commit 008348e40c
11 changed files with 81 additions and 1 deletions

View File

@@ -32,6 +32,7 @@
Pulling, Pulling,
Magboots, Magboots,
Toxins, Toxins,
Muted,
VowOfSilence, VowOfSilence,
VowBroken, VowBroken,
Debug1, Debug1,

View File

@@ -0,0 +1,6 @@
namespace Content.Shared.Speech.Muting
{
[RegisterComponent]
public sealed class MutedComponent : Component
{}
}

View File

@@ -0,0 +1,21 @@
using Content.Shared.Popups;
using Robust.Shared.Player;
namespace Content.Shared.Speech.Muting
{
public sealed class MutingSystem : EntitySystem
{
[Dependency] private readonly SharedPopupSystem _popupSystem = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<MutedComponent, SpeakAttemptEvent>(OnSpeakAttempt);
}
private void OnSpeakAttempt(EntityUid uid, MutedComponent component, SpeakAttemptEvent args)
{
_popupSystem.PopupEntity(Loc.GetString("speech-muted"), uid, Filter.Entities(uid));
args.Cancel();
}
}
}

View File

@@ -21,3 +21,6 @@ reagent-desc-space-drugs = An illegal compound which induces a number of effects
reagent-name-nocturine = nocturine reagent-name-nocturine = nocturine
reagent-desc-nocturine = Makes you feel very tired and unable to stand up. Basically, it's bone hurting juice. reagent-desc-nocturine = Makes you feel very tired and unable to stand up. Basically, it's bone hurting juice.
reagent-name-mute-toxin = mute toxin
reagent-desc-mute-toxin = Makes you unable to talk while metabolizing.

View File

@@ -0,0 +1 @@
speech-muted = You can't speak right now!

View File

@@ -191,6 +191,12 @@
name: "[color=red]Parched[/color]" name: "[color=red]Parched[/color]"
description: You're severely thirsty. The thirst makes moving around a chore. description: You're severely thirsty. The thirst makes moving around a chore.
- type: alert
id: Muted
icon: /Textures/Interface/Alerts/Abilities/silenced.png
name: Muted
description: You have lost the ability to speak.
- type: alert - type: alert
id: VowOfSilence id: VowOfSilence
icon: /Textures/Interface/Alerts/Abilities/silenced.png icon: /Textures/Interface/Alerts/Abilities/silenced.png

View File

@@ -82,6 +82,7 @@
- Stutter - Stutter
- Electrocution - Electrocution
- PressureImmunity - PressureImmunity
- Muted
- type: DiseaseCarrier - type: DiseaseCarrier
# Other # Other
- type: Inventory - type: Inventory

View File

@@ -912,6 +912,14 @@
physicalDesc: reagent-physical-desc-strong-smelling physicalDesc: reagent-physical-desc-strong-smelling
color: "#004666" color: "#004666"
spritePath: silencerglass.rsi spritePath: silencerglass.rsi
metabolisms:
Drink:
effects:
- !type:GenericStatusEffect
key: Muted
component: Muted
- !type:SatiateThirst
factor: 2
- type: reagent - type: reagent
id: Singulo id: Singulo

View File

@@ -152,3 +152,19 @@
key: Stutter key: Stutter
time: 1 time: 1
component: StutteringAccent component: StutteringAccent
- type: reagent
id: MuteToxin
name: reagent-name-mute-toxin
group: Narcotics
desc: reagent-desc-mute-toxin
physicalDesc: reagent-physical-desc-syrupy
color: "#000000"
boilingPoint: 255.0
meltingPoint: 36.0
metabolisms:
Narcotic:
effects:
- !type:GenericStatusEffect
key: Muted
component: Muted

View File

@@ -287,3 +287,16 @@
amount: 1 amount: 1
products: products:
Ephedrine: 4 Ephedrine: 4
- type: reaction
id: MuteToxin
impact: Medium
reactants:
Uranium:
amount: 2
Water:
amount: 1
Carbon:
amount: 1
products:
MuteToxin: 2 #Lower yield is intentional

View File

@@ -27,3 +27,7 @@
- type: statusEffect - type: statusEffect
id: PressureImmunity id: PressureImmunity
- type: statusEffect
id: Muted
alert: Muted