Skip to content

Commit

Permalink
Fix merge issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
LankLTE committed Oct 30, 2024
1 parent 7c3a54b commit 3772f17
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 44 deletions.
6 changes: 3 additions & 3 deletions Content.IntegrationTests/Tests/StackTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ await Assert.MultipleAsync(async () =>
ItemComponent? itemComponent = null;
await server.WaitPost(() =>
{
entity.TryGetComponent(out stackComponent, compFact);
entity.TryGetComponent(out itemComponent, compFact);
entity.Item1.TryGetComponent(out itemComponent, compFact);
entity.Item1.TryGetComponent(out itemComponent, compFact);
});
if (stackComponent == null || itemComponent == null)
continue;
Expand All @@ -37,7 +37,7 @@ await server.WaitPost(() =>
continue;
var expectedSize = stackProto.ItemSize * stackComponent.Count;
Assert.That(itemComponent.Size, Is.EqualTo(expectedSize), $"Prototype id: {entity.ID} has an item size of {itemComponent.Size} but expected size of {expectedSize}.");
Assert.That(itemComponent.Size, Is.EqualTo(expectedSize), $"Prototype id: {entity.Item1.ID} has an item size of {itemComponent.Size} but expected size of {expectedSize}.");
}
});

Expand Down
10 changes: 5 additions & 5 deletions Content.Shared/Bed/Sleep/SleepingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public override void Initialize()

SubscribeLocalEvent<ForcedSleepingComponent, ComponentInit>(OnInit);
SubscribeLocalEvent<SleepingComponent, UnbuckleAttemptEvent>(OnUnbuckleAttempt);
SubscribeLocalEvent<SleepingComponent, EmoteAttemptEvent>(OnEmoteAttempt);
// SubscribeLocalEvent<SleepingComponent, EmoteAttemptEvent>(OnEmoteAttempt); CD: Disable
}

private void OnUnbuckleAttempt(Entity<SleepingComponent> ent, ref UnbuckleAttemptEvent args)
Expand Down Expand Up @@ -316,10 +316,10 @@ public bool TryWaking(Entity<SleepingComponent?> ent, bool force = false, Entity
/// <summary>
/// Prevents the use of emote actions while sleeping
/// </summary>
public void OnEmoteAttempt(Entity<SleepingComponent> ent, ref EmoteAttemptEvent args)
{
args.Cancel();
}
// public void OnEmoteAttempt(Entity<SleepingComponent> ent, ref EmoteAttemptEvent args)
// {
// args.Cancel();
// }
}


Expand Down
12 changes: 6 additions & 6 deletions Content.Shared/Interaction/SharedInteractionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ public void InteractUsing(
bool checkCanUse = true)
{
if (IsDeleted(user) || IsDeleted(used) || IsDeleted(target))
return false;
return;

if (checkCanInteract && !_actionBlockerSystem.CanInteract(user, target))
return;
Expand All @@ -1000,7 +1000,7 @@ public void InteractUsing(
$"{ToPrettyString(user):user} interacted with {ToPrettyString(target):target} using {ToPrettyString(used):used}");

if (RangedInteractDoBefore(user, used, target, clickLocation, canReach: true, checkDeletion: false))
return true;
return;

DebugTools.Assert(!IsDeleted(user) && !IsDeleted(used) && !IsDeleted(target));
// all interactions should only happen when in range / unobstructed, so no range check is needed
Expand All @@ -1013,10 +1013,10 @@ public void InteractUsing(
return;

if (InteractDoAfter(user, used, target, clickLocation, canReach: true, checkDeletion: false))
return true;
return;

DebugTools.Assert(!IsDeleted(user) && !IsDeleted(used) && !IsDeleted(target));
return false;
return;
}

/// <summary>
Expand Down Expand Up @@ -1045,10 +1045,10 @@ public bool InteractDoAfter(EntityUid user, EntityUid used, EntityUid? target, E
}

if (afterInteractEvent.Handled)
return;
return false;

if (target == null)
return;
return false;

DebugTools.Assert(!IsDeleted(user) && !IsDeleted(used) && !IsDeleted(target));
var afterInteractUsingEvent = new AfterInteractUsingEvent(user, used, target, clickLocation, canReach);
Expand Down
6 changes: 0 additions & 6 deletions Resources/Prototypes/Body/Organs/Animal/animal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
- ReagentId: UncookedAnimalProteins
Quantity: 5
- type: Item
size: Small
heldPrefix: lungs

- type: entity
Expand Down Expand Up @@ -90,7 +89,6 @@
- id: Food
- id: Drink
- type: Item
size: Small
heldPrefix: stomach

- type: entity
Expand All @@ -104,7 +102,6 @@
stomach:
maxVol: 30
- type: Item
size: Small
heldPrefix: stomach

- type: entity
Expand All @@ -123,7 +120,6 @@
- id: Alcohol
rateModifier: 0.1
- type: Item
size: Small
heldPrefix: liver

- type: entity
Expand All @@ -143,7 +139,6 @@
- id: Poison
- id: Narcotic
- type: Item
size: Small
heldPrefix: heart

- type: entity
Expand All @@ -162,5 +157,4 @@
metabolizerTypes: [ Animal ]
removeEmpty: true
- type: Item
size: Small
heldPrefix: kidneys
5 changes: 0 additions & 5 deletions Resources/Prototypes/Body/Organs/arachnid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
sprite: Mobs/Species/Arachnid/organs.rsi
state: stomach
- type: Item
size: Small
heldPrefix: stomach
- type: Stomach
updateInterval: 1.5
Expand Down Expand Up @@ -95,7 +94,6 @@
- type: Sprite
state: heart-on
- type: Item
size: Small
heldPrefix: heart
- type: Metabolizer
updateInterval: 1.5
Expand All @@ -114,7 +112,6 @@
categories: [ HideSpawnMenu ]
components:
- type: Item
size: Small
heldPrefix: liver
- type: Sprite
state: liver
Expand All @@ -139,7 +136,6 @@
- state: kidney-r
# The kidneys just remove anything that doesn't currently have any metabolisms, as a stopgap.
- type: Item
size: Small
heldPrefix: kidneys
- type: Metabolizer
updateInterval: 1.5
Expand All @@ -158,7 +154,6 @@
- state: eyeball-l
- state: eyeball-r
- type: Item
size: Small
heldPrefix: eyeballs

- type: entity
Expand Down
3 changes: 0 additions & 3 deletions Resources/Prototypes/Body/Organs/diona.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
description: "The central hub of a diona's pseudo-neurological activity, its root-like tendrils search for its former body."
components:
- type: Item
size: Small
heldPrefix: brain
- type: Sprite
state: brain
Expand Down Expand Up @@ -94,7 +93,6 @@
- id: Alcohol
rateModifier: 0.1
- type: Item
size: Small
heldPrefix: stomach

- type: entity
Expand All @@ -106,7 +104,6 @@
- type: Sprite
state: lungs
- type: Item
size: Small
heldPrefix: lungs
- type: Lung
- type: Metabolizer
Expand Down
7 changes: 0 additions & 7 deletions Resources/Prototypes/Body/Organs/human.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
Burger: Brain
Taco: Brain
- type: Item
size: Small
heldPrefix: brain

- type: entity
Expand All @@ -86,7 +85,6 @@
- state: eyeball-l
- state: eyeball-r
- type: Item
size: Small
heldPrefix: eyeballs

- type: entity
Expand Down Expand Up @@ -129,7 +127,6 @@
- state: lung-l
- state: lung-r
- type: Item
size: Small
heldPrefix: lungs
- type: Lung
- type: Metabolizer
Expand Down Expand Up @@ -174,7 +171,6 @@
- id: Poison
- id: Narcotic
- type: Item
size: Small
heldPrefix: heart

- type: entity
Expand All @@ -186,7 +182,6 @@
- type: Sprite
state: stomach
- type: Item
size: Small
heldPrefix: stomach
- type: SolutionContainerManager
solutions:
Expand Down Expand Up @@ -218,7 +213,6 @@
- type: Sprite
state: liver
- type: Item
size: Small
heldPrefix: liver
- type: Metabolizer # The liver metabolizes certain chemicals only, like alcohol.
maxReagents: 1
Expand All @@ -238,7 +232,6 @@
- state: kidney-l
- state: kidney-r
- type: Item
size: Small
heldPrefix: kidneys
# The kidneys just remove anything that doesn't currently have any metabolisms, as a stopgap.
- type: Metabolizer
Expand Down
2 changes: 0 additions & 2 deletions Resources/Prototypes/Body/Organs/slime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
- ReagentId: Slime
Quantity: 10
- type: Item
size: Small
heldPrefix: brain


Expand Down Expand Up @@ -74,5 +73,4 @@
- ReagentId: UncookedAnimalProteins
Quantity: 5
- type: Item
size: Small
heldPrefix: lungs
1 change: 0 additions & 1 deletion Resources/Prototypes/Body/Organs/vox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
- type: Lung
alert: LowNitrogen
- type: Item
size: Small
heldPrefix: lungs
1 change: 0 additions & 1 deletion Resources/Prototypes/Entities/Clothing/Multiple/towel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
fiberColor: fibers-white
- type: DnaSubstanceTrace
- type: Item
size: Small

- type: entity
id: TowelColorWhite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@
layers:
- state: syringe_gun
- type: Storage
maxItemSize: Normal
grid:
- 0,0,2,0
capacity: 20
whitelist:
tags:
- SyringeGunAmmo
Expand All @@ -131,7 +129,7 @@
- type: ContainerAmmoProvider
container: storagebase
- type: Item
size: Normal
size: 30
- type: ContainerContainer
containers:
storagebase: !type:Container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
- BoxDonkSoftBox
- BoxCartridgeCap
- BeachBall
- CandyBucket
# - CandyBucket
- CrayonBox
- ClothingHeadHatCowboyRed
- FoamCrossbow
Expand Down

0 comments on commit 3772f17

Please sign in to comment.