+using Content.Shared.StatusEffectNew;
using Content.Server.Speech.Components;
using Content.Shared.Speech;
using Robust.Shared.Random;
public override void Initialize()
{
SubscribeLocalEvent<BarkAccentComponent, AccentGetEvent>(OnAccent);
+ SubscribeLocalEvent<BarkAccentComponent, StatusEffectRelayedEvent<AccentGetEvent>>(OnAccentRelayed);
}
public string Accentuate(string message)
.Replace("l", "r").Replace("L", "R");
}
- private void OnAccent(EntityUid uid, BarkAccentComponent component, AccentGetEvent args)
+ private void OnAccent(Entity<BarkAccentComponent> entity, ref AccentGetEvent args)
{
args.Message = Accentuate(args.Message);
}
+
+ private void OnAccentRelayed(Entity<BarkAccentComponent> entity, ref StatusEffectRelayedEvent<AccentGetEvent> args)
+ {
+ args.Args.Message = Accentuate(args.Args.Message);
+ }
}
}
using Content.Server.Speech.Components;
using Content.Shared.Speech;
+using Content.Shared.StatusEffectNew;
using Robust.Shared.Random;
namespace Content.Server.Speech.EntitySystems
public override void Initialize()
{
SubscribeLocalEvent<OwOAccentComponent, AccentGetEvent>(OnAccent);
+ SubscribeLocalEvent<OwOAccentComponent, StatusEffectRelayedEvent<AccentGetEvent>>(OnAccentRelayed);
}
public string Accentuate(string message)
.Replace("l", "w").Replace("L", "W");
}
- private void OnAccent(EntityUid uid, OwOAccentComponent component, AccentGetEvent args)
+ private void OnAccent(Entity<OwOAccentComponent> entity, ref AccentGetEvent args)
{
args.Message = Accentuate(args.Message);
}
+
+ private void OnAccentRelayed(Entity<OwOAccentComponent> entity, ref StatusEffectRelayedEvent<AccentGetEvent> args)
+ {
+ args.Args.Message = Accentuate(args.Args.Message);
+ }
+
}
}
flavor-complex-paper = like mushy pulp
flavor-complex-compressed-meat = like compressed meat
flavor-complex-dog-food = like dog food
+flavor-complex-canned-tuna = like canned tuna
# Drink-specific flavors.
reagent-name-corgiessence = corgium
reagent-desc-corgiessence = Tastes like dog food. Clearly an acquired taste.
+
+reagent-name-catessence = felinase
+reagent-desc-catessence = A type of carcinogenic enzyme known to break down proteins found within the vocal cords of most animals. Mixing is NOT recommended.
+
+reagent-name-canidessence = caninase
+reagent-desc-canidessence = A type of carcinogenic enzyme known to break down proteins found within the vocal cords of most animals. Mixing is NOT recommended.
name: scrambled
components:
- type: ScrambledAccent
+
+# Causes wu to tawk wike a cat. ^w^
+- type: entity
+ parent: SpeechStatusEffectBase
+ id: StatusEffectOwO
+ name: owoaccent
+ components:
+ - type: OwOAccent
+
+# Causes you to tark rike a dog. Woof!
+- type: entity
+ parent: SpeechStatusEffectBase
+ id: StatusEffectBark
+ name: barkaccent
+ components:
+ - type: BarkAccent
flavorType: Base
description: flavor-complex-dog-food
+- type: flavor
+ id: cannedtuna
+ flavorType: Complex
+ description: flavor-complex-canned-tuna
+
- type: flavor
id: fishops
flavorType: Complex
- !type:ReagentCondition
reagent: CorgiJuice
min: 50
+
+- type: reagent
+ id: Felinase
+ name: reagent-name-catessence
+ group: Toxins
+ desc: reagent-desc-catessence
+ physicalDesc: reagent-physical-desc-milky
+ flavor: cannedtuna
+ color: "#d8bed8"
+ metabolisms:
+ Poison:
+ metabolismRate: 0.2
+ effects:
+ - !type:HealthChange
+ conditions:
+ - !type:ReagentCondition
+ reagent: Felinase
+ min: 25
+ damage:
+ types:
+ Radiation: 0.5
+ - !type:AdjustReagent
+ reagent: Felinase
+ amount: -15
+ conditions:
+ - !type:ReagentCondition
+ reagent: Felinase
+ min: 40
+ - !type:ModifyStatusEffect
+ conditions:
+ - !type:ReagentCondition
+ reagent: Felinase
+ min: 25
+ effectProto: StatusEffectOwO
+ time: 25.0
+ type: Add
+ - !type:Emote
+ conditions:
+ - !type:ReagentCondition
+ reagent: Felinase
+ min: 25
+ emote: Cough
+ showInChat: true
+ showInGuidebook: true
+ force: true
+ probability: 0.05
+ - !type:PopupMessage
+ conditions:
+ - !type:ReagentCondition
+ reagent: Felinase
+ min: 25
+ type: Local
+ visualType: Small
+ messages: [ "capsaicin-effect-light-burn" ]
+ probability: 0.05
+
+- type: reagent
+ id: Caninase
+ name: reagent-name-canidessence
+ group: Toxins
+ desc: reagent-desc-canidessence
+ physicalDesc: reagent-physical-desc-bubbly
+ flavor: dogfood
+ color: "#b87333"
+ metabolisms:
+ Poison:
+ metabolismRate: 0.2
+ effects:
+ - !type:HealthChange
+ conditions:
+ - !type:ReagentCondition
+ reagent: Caninase
+ min: 25
+ damage:
+ types:
+ Radiation: 0.5
+ - !type:AdjustReagent
+ reagent: Caninase
+ amount: -15
+ conditions:
+ - !type:ReagentCondition
+ reagent: Caninase
+ min: 40
+ - !type:ModifyStatusEffect
+ conditions:
+ - !type:ReagentCondition
+ reagent: Caninase
+ min: 25
+ effectProto: StatusEffectBark
+ time: 25.0
+ type: Add
+ - !type:Emote
+ conditions:
+ - !type:ReagentCondition
+ reagent: Caninase
+ min: 25
+ emote: Cough
+ showInChat: true
+ showInGuidebook: true
+ force: true
+ probability: 0.05
+ - !type:PopupMessage
+ conditions:
+ - !type:ReagentCondition
+ reagent: Caninase
+ min: 25
+ type: Local
+ visualType: Small
+ messages: [ "capsaicin-effect-light-burn" ]
+ probability: 0.05
amount: 1
products:
CorgiJuice: 2
+
+- type: reaction
+ id: Felinase
+ reactants:
+ Haloperidol:
+ amount: 3
+ Cognizine:
+ amount: 2
+ CarpoToxin:
+ amount: 2
+ Enzyme:
+ amount: 1
+ products:
+ Felinase: 2
+
+- type: reaction
+ id: Caninase
+ reactants:
+ Haloperidol:
+ amount: 3
+ Cognizine:
+ amount: 2
+ Happiness:
+ amount: 2
+ Enzyme:
+ amount: 1
+ products:
+ Caninase: 2
+
+- type: reaction
+ id: CaninaseFelinaseReaction
+ impact: High
+ priority: 20
+ reactants:
+ Caninase:
+ amount: 1
+ Felinase:
+ amount: 1
+ products:
+ Razorium: 2
+ effects:
+ - !type:Explosion
+ explosionType: Radioactive
+ maxIntensity: 5
+ intensityPerUnit: 1
+ intensitySlope: 2.7
+ maxTotalIntensity: 50