Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/january-vanilla-upstream-merge' …
Browse files Browse the repository at this point in the history
…into january-vanilla-upstream-merge
  • Loading branch information
Cheackraze committed Feb 4, 2024
2 parents f5568e1 + a156129 commit bc5e23f
Show file tree
Hide file tree
Showing 162 changed files with 134,377 additions and 121,051 deletions.
10 changes: 9 additions & 1 deletion Content.Server/Power/Generator/PortableGeneratorSystem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Content.Server.DoAfter;
using Content.Server.DoAfter;
using Content.Server.Popups;
using Content.Shared.DoAfter;
using Content.Shared.Power.Generator;
Expand Down Expand Up @@ -39,6 +39,14 @@ public override void Initialize()
SubscribeLocalEvent<PortableGeneratorComponent, PortableGeneratorSwitchOutputMessage>(GeneratorSwitchOutputMessage);

SubscribeLocalEvent<FuelGeneratorComponent, SwitchPowerCheckEvent>(OnSwitchPowerCheck);

SubscribeLocalEvent<PortableGeneratorComponent, MapInitEvent>(GeneratorMapInit); // Frontier
}

private void GeneratorMapInit(EntityUid uid, PortableGeneratorComponent component, MapInitEvent args) // Frontier - Init on map generator
{
if (component.StartOnMapInit)
_generator.SetFuelGeneratorOn(uid, true);
}

private void GeneratorSwitchOutputMessage(EntityUid uid, PortableGeneratorComponent component, PortableGeneratorSwitchOutputMessage args)
Expand Down
26 changes: 18 additions & 8 deletions Content.Server/Puppet/VentriloquistPuppetSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
using Content.Server.Speech.Muting;
using Content.Shared.CombatMode;
using Content.Shared.Hands;
using Robust.Shared.Random;

namespace Content.Server.Puppet
{
public sealed class VentriloquistPuppetSystem : SharedVentriloquistPuppetSystem
{
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly IRobustRandom _random = default!;

public override void Initialize()
{
Expand All @@ -36,22 +38,27 @@ private void OnUseInHand(EntityUid uid, VentriloquistPuppetComponent component,

if (!RemComp<MutedComponent>(uid))
{
_popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-remove-hand"), uid, args.User);
_popupSystem.PopupEntity(Loc.GetString(_random.Pick(component.RemoveHand)), uid, args.User); // Frontier
//_popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-remove-hand"), uid, args.User);
MuteDummy(uid, component);
return;
}

// TODO why does this need a combat component???
EnsureComp<CombatModeComponent>(uid);
_popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-insert-hand"), uid, args.User);
_popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-inserted-hand"), uid, uid);
_popupSystem.PopupEntity(Loc.GetString(_random.Pick(component.InsertHand)), uid, args.User); // Frontier
_popupSystem.PopupEntity(Loc.GetString(_random.Pick(component.InsertedHand)), uid, uid); // Frontier
// _popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-insert-hand"), uid, args.User);
// _popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-inserted-hand"), uid, uid);

if (!HasComp<GhostTakeoverAvailableComponent>(uid))
{
AddComp<GhostTakeoverAvailableComponent>(uid);
var ghostRole = EnsureComp<GhostRoleComponent>(uid);
ghostRole.RoleName = Loc.GetString("ventriloquist-puppet-role-name");
ghostRole.RoleDescription = Loc.GetString("ventriloquist-puppet-role-description");
ghostRole.RoleName = Loc.GetString(_random.Pick(component.PuppetRoleName)); // Frontier
ghostRole.RoleDescription = Loc.GetString(_random.Pick(component.PuppetRoleDescription)); // Frontier
//ghostRole.RoleName = Loc.GetString("ventriloquist-puppet-role-name");
//ghostRole.RoleDescription = Loc.GetString("ventriloquist-puppet-role-description");
}

args.Handled = true;
Expand All @@ -65,7 +72,8 @@ private void OnDropped(EntityUid uid, VentriloquistPuppetComponent component, Dr
if (HasComp<MutedComponent>(uid))
return;

_popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-remove-hand"), uid, args.User);
_popupSystem.PopupEntity(Loc.GetString(_random.Pick(component.RemoveHand)), uid, args.User); // Frontier
//_popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-remove-hand"), uid, args.User);
MuteDummy(uid, component);
}

Expand All @@ -77,7 +85,8 @@ private void OnUnequippedHand(EntityUid uid, VentriloquistPuppetComponent compon
if (HasComp<MutedComponent>(uid))
return;

_popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-remove-hand"), uid, args.User);
_popupSystem.PopupEntity(Loc.GetString(_random.Pick(component.RemoveHand)), uid, args.User); // Frontier
//_popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-remove-hand"), uid, args.User);
MuteDummy(uid, component);
}

Expand All @@ -86,7 +95,8 @@ private void OnUnequippedHand(EntityUid uid, VentriloquistPuppetComponent compon
/// </summary>
private void MuteDummy(EntityUid uid, VentriloquistPuppetComponent component)
{
_popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-removed-hand"), uid, uid);
_popupSystem.PopupEntity(Loc.GetString(_random.Pick(component.RemovedHand)), uid, uid); // Frontier
//_popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-removed-hand"), uid, uid);
EnsureComp<MutedComponent>(uid);
RemComp<CombatModeComponent>(uid);
RemComp<GhostTakeoverAvailableComponent>(uid);
Expand Down
3 changes: 3 additions & 0 deletions Content.Server/_NF/SizeAttribute/SizeAttributeSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ private void Scale(EntityUid uid, SizeAttributeComponent component, float scale,
{
foreach (var (id, fixture) in manager.Fixtures)
{
if (!fixture.Hard || fixture.Density <= 1f)
continue; // This will skip the flammable fixture and any other fixture that is not supposed to contribute to mass

switch (fixture.Shape)
{
case PhysShapeCircle circle:
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/CCVar/CCVars.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public static readonly CVarDef<bool>
/// Whether a random position offset will be applied to the station on roundstart.
/// </summary>
public static readonly CVarDef<bool> StationOffset =
CVarDef.Create("game.station_offset", true);
CVarDef.Create("game.station_offset", false);

/// <summary>
/// When the default blueprint is loaded what is the maximum amount it can be offset from 0,0.
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Power/Generator/FuelGeneratorComponent.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Robust.Shared.GameStates;
using Robust.Shared.GameStates;

namespace Content.Shared.Power.Generator;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Robust.Shared.Audio;
using Robust.Shared.Audio;
using Robust.Shared.Serialization;

namespace Content.Shared.Power.Generator;
Expand Down Expand Up @@ -42,6 +42,12 @@ public sealed partial class PortableGeneratorComponent : Component
[DataField("startSoundEmpty")]
[ViewVariables(VVAccess.ReadWrite)]
public SoundSpecifier? StartSoundEmpty { get; set; }

/// <summary>
/// Frontier - Start the generator with the map.
/// </summary>
[DataField("startOnMapInit")]
public bool StartOnMapInit { get; set; } = false;
}

/// <summary>
Expand Down
19 changes: 18 additions & 1 deletion Content.Shared/Puppet/VentriloquistPuppetComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,21 @@ namespace Content.Shared.Puppet;
[RegisterComponent, NetworkedComponent]
public sealed partial class VentriloquistPuppetComponent : Component
{
}
[DataField, ViewVariables(VVAccess.ReadWrite)]
public List<LocId> RemoveHand = new ();

[DataField, ViewVariables(VVAccess.ReadWrite)]
public List<LocId> RemovedHand = new();

[DataField, ViewVariables(VVAccess.ReadWrite)]
public List<LocId> InsertHand = new ();

[DataField, ViewVariables(VVAccess.ReadWrite)]
public List<LocId> InsertedHand = new ();

[DataField, ViewVariables(VVAccess.ReadWrite)]
public List<LocId> PuppetRoleName = new ();

[DataField, ViewVariables(VVAccess.ReadWrite)]
public List<LocId> PuppetRoleDescription = new ();
}
58 changes: 58 additions & 0 deletions Resources/Changelog/Changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3134,3 +3134,61 @@ Entries:
message: Updated SV Nugget to current mapping standards.
id: 4793
time: '2024-01-30T16:39:36.0000000+00:00'
- author: Mnemotechnician
changes:
- type: Fix
message: >-
NanoTrasen cloning facilities no longer cause tall lizards, small
vulpkanin, and tall felinids to have their body weight doubled.
id: 4794
time: '2024-01-31T14:32:30.0000000+00:00'
- author: erhardsteinhauer
changes:
- type: Add
message: Added pilot's mask, pilot's webbing.
id: 4795
time: '2024-01-31T15:15:04.0000000+00:00'
- author: TsjipTsjip
changes:
- type: Tweak
message: >-
NFSD Outpost should now be practicing proper social distancing towards
Frontier Outpost.
id: 4796
time: '2024-02-02T00:56:13.0000000+00:00'
- author: erhardsteinhauer
changes:
- type: Tweak
message: Updated NM Pulse to current mapping standards.
id: 4797
time: '2024-02-02T18:48:50.0000000+00:00'
- author: erhardsteinhauer
changes:
- type: Tweak
message: Updated NM Helix to current mapping standards.
id: 4798
time: '2024-02-02T18:49:05.0000000+00:00'
- author: erhardsteinhauer
changes:
- type: Tweak
message: Updated (and slightly reworked) NR Sparrow to current mapping standards.
id: 4799
time: '2024-02-02T23:12:12.0000000+00:00'
- author: dvir01
changes:
- type: Add
message: Added clown & mime gear to AutoDrob.
id: 4800
time: '2024-02-03T17:56:47.0000000+00:00'
- author: dvir01
changes:
- type: Add
message: Added small gyro and thrusters to cargo and sci tech.
id: 4801
time: '2024-02-03T17:58:48.0000000+00:00'
- author: dvir01
changes:
- type: Tweak
message: Emotional support cats can now swap hats (Mail, Pirate, Chef)
id: 4802
time: '2024-02-03T17:59:55.0000000+00:00'
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ ent-CrateThruster = { ent-BaseThruster }
ent-CrateGyroscope = { ent-Gyroscope }
.desc = { ent-Gyroscope.desc }
ent-CrateSmallThruster = { ent-SmallThruster }
.desc = { ent-BaseThruster.desc }
ent-CrateSmallGyroscope = { ent-SmallGyroscope }
.desc = { ent-Gyroscope.desc }
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ent-SmallThruster = small thruster
.desc = { ent-BaseThruster.desc }
ent-SmallGyroscope = small gyroscope
.desc = { ent-Gyroscope.desc }
7 changes: 7 additions & 0 deletions Resources/Locale/en-US/_NF/ventriloquist/ventriloquist.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ventriloquist-rock-grasp-hand = You firmly grasp the pet rock.
ventriloquist-rock-release-hand = You release your grip on the pet rock.
ventriloquist-rock-grasped-hand = You have been grasped.
ventriloquist-rock-released-hand = You been released.
ventriloquist-rock-role-name = A pet rock
ventriloquist-rock-role-description = You are a pet mineral.
Loading

0 comments on commit bc5e23f

Please sign in to comment.