Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
727 changes: 727 additions & 0 deletions Content.Server/_HL/Shipyard/ShipSaveYamlSanitizer.cs

Large diffs are not rendered by default.

895 changes: 33 additions & 862 deletions Content.Server/_NF/Shipyard/Systems/ShipyardGridSaveSystem.cs

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions Content.Server/_NF/Shipyard/Systems/ShipyardSystem.Consoles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,14 @@ public void OnLoadMessage(EntityUid uid, ShipyardConsoleComponent component, Shi
bool loaded = false;
try
{
if (!string.IsNullOrWhiteSpace(args.SourceFilePath))
// HardLight start
if (!string.IsNullOrWhiteSpace(args.YamlData))
{
loaded = TryPurchaseShuttleFromYamlData(uid, args.YamlData, out shuttleUidOut);
}

if (!loaded && !string.IsNullOrWhiteSpace(args.SourceFilePath))
// HardLight end
{
// Normalize to a ResPath under /UserData
var norm = args.SourceFilePath!.Replace('\\', '/');
Expand All @@ -508,12 +515,6 @@ public void OnLoadMessage(EntityUid uid, ShipyardConsoleComponent component, Shi
var resPath = new ResPath(norm);
loaded = TryPurchaseShuttleFromFile(uid, resPath, out shuttleUidOut);
}

// Fallback: write to a temp file and then load via purchase-from-file
if (!loaded)
{
loaded = TryPurchaseShuttleFromYamlData(uid, args.YamlData, out shuttleUidOut);
}
}
catch (Exception ex)
{
Expand Down
740 changes: 691 additions & 49 deletions Content.Server/_NF/Shipyard/Systems/ShipyardSystem.cs

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Content.Shared/NPC/Systems/NpcFactionSystem.Exception.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ public IEnumerable<EntityUid> GetHostiles(Entity<FactionExceptionComponent?> ent
/// </summary>
public void IgnoreEntity(Entity<FactionExceptionComponent?> ent, Entity<FactionExceptionTrackerComponent?> target)
{
if (!target.Owner.IsValid() || !EntityManager.EntityExists(target.Owner)) // HardLight
return;

ent.Comp ??= EnsureComp<FactionExceptionComponent>(ent);
ent.Comp.Ignored.Add(target);
target.Comp ??= EnsureComp<FactionExceptionTrackerComponent>(target);
Expand All @@ -99,6 +102,9 @@ public void IgnoreEntities(Entity<FactionExceptionComponent?> ent, IEnumerable<E
/// </summary>
public void AggroEntity(Entity<FactionExceptionComponent?> ent, Entity<FactionExceptionTrackerComponent?> target)
{
if (!target.Owner.IsValid() || !EntityManager.EntityExists(target.Owner)) // HardLight
return;

ent.Comp ??= EnsureComp<FactionExceptionComponent>(ent);
ent.Comp.Hostiles.Add(target);
target.Comp ??= EnsureComp<FactionExceptionTrackerComponent>(target);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
- type: ActivatableUI
key: enum.BorgUiKey.Key
- type: Targeting # Shitmed
- type: SurgeryTarget # HardLight: Necessary for Cyborgs to perform surgery.
- type: SiliconLawBound
- type: ActionGrant
actions:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,51 @@
0.060000002
]
]
},
{
"name": "abyss_laser",
"delays": [
[
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002
]
]
},
{
"name": "impact_abyss_laser",
"delays": [
[
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002
]
]
},
{
"name": "muzzle_abyss_laser",
"delays": [
[
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002,
0.060000002
]
]
},
{
"name": "beamlight",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading