Muted status effect + 2 reagent sources of it (#8673)
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
Pulling,
|
Pulling,
|
||||||
Magboots,
|
Magboots,
|
||||||
Toxins,
|
Toxins,
|
||||||
|
Muted,
|
||||||
VowOfSilence,
|
VowOfSilence,
|
||||||
VowBroken,
|
VowBroken,
|
||||||
Debug1,
|
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-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.
|
||||||
|
|||||||
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]"
|
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
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
- Stutter
|
- Stutter
|
||||||
- Electrocution
|
- Electrocution
|
||||||
- PressureImmunity
|
- PressureImmunity
|
||||||
|
- Muted
|
||||||
- type: DiseaseCarrier
|
- type: DiseaseCarrier
|
||||||
# Other
|
# Other
|
||||||
- type: Inventory
|
- type: Inventory
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
- !type:ExplosionReactionEffect
|
- !type:ExplosionReactionEffect
|
||||||
explosionType: Default
|
explosionType: Default
|
||||||
maxIntensity: 1 # at most 15 damage per tile
|
maxIntensity: 1 # at most 15 damage per tile
|
||||||
intensityPerUnit: 0.5 # 50+50 reagent for maximum explosion
|
intensityPerUnit: 0.5 # 50+50 reagent for maximum explosion
|
||||||
intensitySlope: 2
|
intensitySlope: 2
|
||||||
maxTotalIntensity: 25
|
maxTotalIntensity: 25
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -27,3 +27,7 @@
|
|||||||
|
|
||||||
- type: statusEffect
|
- type: statusEffect
|
||||||
id: PressureImmunity
|
id: PressureImmunity
|
||||||
|
|
||||||
|
- type: statusEffect
|
||||||
|
id: Muted
|
||||||
|
alert: Muted
|
||||||
|
|||||||
Reference in New Issue
Block a user