Muted status effect + 2 reagent sources of it (#8673)
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
Pulling,
|
||||
Magboots,
|
||||
Toxins,
|
||||
Muted,
|
||||
VowOfSilence,
|
||||
VowBroken,
|
||||
Debug1,
|
||||
|
||||
6
Content.Shared/Speech/Muting/MutedComponent.cs
Normal file
6
Content.Shared/Speech/Muting/MutedComponent.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Content.Shared.Speech.Muting
|
||||
{
|
||||
[RegisterComponent]
|
||||
public sealed class MutedComponent : Component
|
||||
{}
|
||||
}
|
||||
21
Content.Shared/Speech/Muting/MutingSystem.cs
Normal file
21
Content.Shared/Speech/Muting/MutingSystem.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,3 +21,6 @@ reagent-desc-space-drugs = An illegal compound which induces a number of effects
|
||||
|
||||
reagent-name-nocturine = nocturine
|
||||
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.
|
||||
|
||||
1
Resources/Locale/en-US/speech/speech-effects.ftl
Normal file
1
Resources/Locale/en-US/speech/speech-effects.ftl
Normal file
@@ -0,0 +1 @@
|
||||
speech-muted = You can't speak right now!
|
||||
@@ -191,6 +191,12 @@
|
||||
name: "[color=red]Parched[/color]"
|
||||
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
|
||||
id: VowOfSilence
|
||||
icon: /Textures/Interface/Alerts/Abilities/silenced.png
|
||||
|
||||
@@ -82,6 +82,7 @@
|
||||
- Stutter
|
||||
- Electrocution
|
||||
- PressureImmunity
|
||||
- Muted
|
||||
- type: DiseaseCarrier
|
||||
# Other
|
||||
- type: Inventory
|
||||
|
||||
@@ -912,6 +912,14 @@
|
||||
physicalDesc: reagent-physical-desc-strong-smelling
|
||||
color: "#004666"
|
||||
spritePath: silencerglass.rsi
|
||||
metabolisms:
|
||||
Drink:
|
||||
effects:
|
||||
- !type:GenericStatusEffect
|
||||
key: Muted
|
||||
component: Muted
|
||||
- !type:SatiateThirst
|
||||
factor: 2
|
||||
|
||||
- type: reagent
|
||||
id: Singulo
|
||||
|
||||
@@ -152,3 +152,19 @@
|
||||
key: Stutter
|
||||
time: 1
|
||||
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
|
||||
|
||||
@@ -287,3 +287,16 @@
|
||||
amount: 1
|
||||
products:
|
||||
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
|
||||
|
||||
@@ -27,3 +27,7 @@
|
||||
|
||||
- type: statusEffect
|
||||
id: PressureImmunity
|
||||
|
||||
- type: statusEffect
|
||||
id: Muted
|
||||
alert: Muted
|
||||
|
||||
Reference in New Issue
Block a user