Skip to content

Commit

Permalink
:trollface:
Browse files Browse the repository at this point in the history
  • Loading branch information
deltanedas committed Dec 21, 2024
1 parent 9a55d3b commit 3bcbea6
Show file tree
Hide file tree
Showing 16 changed files with 40 additions and 53 deletions.
2 changes: 1 addition & 1 deletion Content.Client/DeltaV/Hologram/HologramSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public override void Initialize()
{
base.Initialize();

_shader = _protoMan.Index<ShaderPrototype>("Hologram").InstanceUnique();
_shader = _protoMan.Index<ShaderPrototype>("HologramDeltaV").InstanceUnique();
SubscribeLocalEvent<HologramComponent, ComponentShutdown>(OnShutdown);
SubscribeLocalEvent<HologramComponent, ComponentStartup>(OnStartup);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Content.Server.Nutrition;
using Content.Server.Speech;
using Content.Server.Speech.EntitySystems;
using Content.Shared.DeltaV.Storage.Components;
Expand All @@ -10,12 +9,12 @@ namespace Content.Server.DeltaV.Storage.EntitySystems;
public sealed class MouthStorageSystem : SharedMouthStorageSystem
{
[Dependency] private readonly ReplacementAccentSystem _replacement = default!;

public override void Initialize()
{
base.Initialize();

SubscribeLocalEvent<MouthStorageComponent, AccentGetEvent>(OnAccent);
SubscribeLocalEvent<MouthStorageComponent, IngestionAttemptEvent>(OnIngestAttempt);
}

// Force you to mumble if you have items in your mouth
Expand All @@ -24,18 +23,4 @@ private void OnAccent(EntityUid uid, MouthStorageComponent component, AccentGetE
if (IsMouthBlocked(component))
args.Message = _replacement.ApplyReplacements(args.Message, "mumble");
}

// Attempting to eat or drink anything with items in your mouth won't work
private void OnIngestAttempt(EntityUid uid, MouthStorageComponent component, IngestionAttemptEvent args)
{
if (!IsMouthBlocked(component))
return;

if (!TryComp<StorageComponent>(component.MouthId, out var storage))
return;

var firstItem = storage.Container.ContainedEntities[0];
args.Blocker = firstItem;
args.Cancel();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Content.Shared.DeltaV.Storage.Components;
using Content.Shared.Examine;
using Content.Shared.IdentityManagement;
using Content.Shared.Nutrition;
using Content.Shared.Standing;
using Content.Shared.Storage;
using Content.Shared.Storage.EntitySystems;
Expand All @@ -27,6 +28,7 @@ public override void Initialize()
SubscribeLocalEvent<MouthStorageComponent, DisarmedEvent>(DropAllContents);
SubscribeLocalEvent<MouthStorageComponent, DamageChangedEvent>(OnDamageModified);
SubscribeLocalEvent<MouthStorageComponent, ExaminedEvent>(OnExamined);
SubscribeLocalEvent<MouthStorageComponent, IngestionAttemptEvent>(OnIngestAttempt);
}

protected bool IsMouthBlocked(MouthStorageComponent component)
Expand Down Expand Up @@ -81,4 +83,18 @@ private void OnExamined(EntityUid uid, MouthStorageComponent component, Examined
args.PushMarkup(Loc.GetString("mouth-storage-examine-condition-occupied", ("entity", subject)));
}
}

// Attempting to eat or drink anything with items in your mouth won't work
private void OnIngestAttempt(EntityUid uid, MouthStorageComponent component, IngestionAttemptEvent args)
{
if (!IsMouthBlocked(component))
return;

if (!TryComp<StorageComponent>(component.MouthId, out var storage))
return;

var firstItem = storage.Container.ContainedEntities[0];
args.Blocker = firstItem;
args.Cancel();
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;

namespace Content.Shared.Abilities.Psionics
namespace Content.Shared.Abilities.Psionics;

[RegisterComponent, NetworkedComponent]
public sealed partial class MindSwapPowerComponent : Component
{
[RegisterComponent]
public sealed partial class MindSwapPowerComponent : Component
{
[DataField("mindSwapActionId",
customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? MindSwapActionId = "ActionMindSwap";
[DataField]
public EntProtoId? MindSwapActionId = "ActionMindSwap";

[DataField("mindSwapActionEntity")]
public EntityUid? MindSwapActionEntity;
}
[DataField]
public EntityUid? MindSwapActionEntity;
}
1 change: 0 additions & 1 deletion Resources/Locale/en-US/deltav/flavors/flavor-profiles.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ flavor-base-acidic = acidic
flavor-complex-nuggie = like "chicken"
flavor-complex-enthralling = enthralling
flavor-complex-sublime = sublime
flavor-complex-holy = heavenly
flavor-base-seeds = seeds
flavor-complex-vanilla = like vanilla
flavor-complex-soju = like bold, alcoholic rice
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/hammurabi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26135,7 +26135,7 @@ entities:
name: null
reagents:
- data: null
ReagentId: HolyWater
ReagentId: Holywater
Quantity: 60
- proto: AnomalyScanner
entities:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/tortuga.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19581,7 +19581,7 @@ entities:
name: null
reagents:
- data: null
ReagentId: HolyWater
ReagentId: Holywater
Quantity: 10
- uid: 28285
components:
Expand Down
5 changes: 0 additions & 5 deletions Resources/Prototypes/DeltaV/Flavors/flavors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
flavorType: Complex
description: flavor-complex-sublime

- type: flavor
id: holy
flavorType: Complex
description: flavor-complex-holy

- type: flavor
id: seeds
flavorType: Base
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/DeltaV/shaders.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hologram
- type: shader
id: Hologram
id: HologramDeltaV
kind: source
path: "/Textures/DeltaV/Shaders/hologram.swsl"
params:
Expand All @@ -11,4 +11,4 @@
- type: shader
id: Crispy
kind: source
path: "/Textures/Shaders/crispy.swsl"
path: "/Textures/Shaders/crispy.swsl"
3 changes: 1 addition & 2 deletions Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,7 @@
state: slug
sprite: Mobs/Animals/slug.rsi
- type: Carriable #DeltaV
freeHandsRequired: 1
freeHandsRequired: 1
- type: Physics
- type: Fixtures
fixtures:
Expand Down Expand Up @@ -2396,7 +2396,6 @@
- MobGiantSpider
- MobSpiderAngryBase
id: MobGiantSpiderAngry
>>>>>>> 18fe8b9df0 (Sprite Movement working with AI movement (#33494))

- type: entity
name: clown spider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2054,7 +2054,7 @@
Quantity: 10
- ReagentId: Vitamin
Quantity: 5
- ReagentId: HolyWater # DeltaV - use our holy water
- ReagentId: Holywater
Quantity: 10
- type: Sprite
sprite: Objects/Specific/Hydroponics/holymelon.rsi
Expand Down Expand Up @@ -2119,7 +2119,7 @@
Quantity: 2
- ReagentId: Vitamin
Quantity: 1
- ReagentId: HolyWater # DeltaV - use our holy water
- ReagentId: Holywater
Quantity: 2
- type: Extractable
juiceSolution:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
collection: Punch
damage:
types:
Holy: 25
Holy: 10 # DeltaV: was 25
Blunt: 1
- type: Prayable
bibleUserOnly: true
Expand All @@ -49,11 +49,6 @@
interfaces:
enum.StorageUiKey.Key:
type: StorageBoundUserInterface
- type: MeleeWeapon # Nyanotrasen - Bibles do Holy damage
damage:
types:
Blunt: 3
Holy: 10
- type: Tag
tags:
- Book
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Hydroponics/seeds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@
Min: 1
Max: 10
PotencyDivisor: 10
HolyWater: # DeltaV - use our holy water
Holywater:
Min: 1
Max: 10
PotencyDivisor: 10
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Nyanotrasen/Actions/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
event: !type:MassSleepPowerActionEvent

- type: entity
id: ActionMindSwap
id: ActionMindSwapPsionic
name: action-name-mind-swap
description: action-description-mind-swap
components:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
solutions:
drink:
reagents:
- ReagentId: HolyWater
- ReagentId: Holywater
Quantity: 100
- type: Sprite
sprite: Nyanotrasen/Objects/Consumable/Drinks/flaskholywater.rsi
4 changes: 2 additions & 2 deletions Resources/Prototypes/Nyanotrasen/Recipes/Reactions/drink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
GrapeSoda: 3

- type: reaction
id: HolyWater
id: Holywater
reactants:
Water:
amount: 1
Expand All @@ -154,4 +154,4 @@
Mercury:
amount: 1
products:
HolyWater: 3
Holywater: 3

0 comments on commit 3bcbea6

Please sign in to comment.