Fulton tweaks (#19786)

This commit is contained in:
metalgearsloth
2023-09-03 22:18:09 +10:00
committed by GitHub
parent 1127b7961a
commit 0c42533433
5 changed files with 11 additions and 3 deletions

View File

@@ -57,7 +57,10 @@ public sealed class FultonSystem : SharedFultonSystem
var xform = Transform(uid);
var oldCoords = xform.Coordinates;
var offset = _random.NextVector2(1.5f);
TransformSystem.SetCoordinates(uid, new EntityCoordinates(beaconXform.ParentUid, offset));
var localPos = TransformSystem.GetInvWorldMatrix(beaconXform.ParentUid)
.Transform(TransformSystem.GetWorldPosition(beaconXform)) + offset;
TransformSystem.SetCoordinates(uid, new EntityCoordinates(beaconXform.ParentUid, localPos));
RaiseNetworkEvent(new FultonAnimationMessage()
{

View File

@@ -105,7 +105,7 @@ public abstract partial class SharedFultonSystem : EntitySystem
private void OnFultonInteract(EntityUid uid, FultonComponent component, AfterInteractEvent args)
{
if (args.Target == null || args.Handled)
if (args.Target == null || args.Handled || !args.CanReach)
return;
if (TryComp<FultonBeaconComponent>(args.Target, out var beacon))

View File

@@ -12,3 +12,5 @@
WeaponCrusher: 2
WeaponCrusherDagger: 2
WeaponProtoKineticAccelerator: 2
FultonBeacon: 1
Fulton: 2

View File

@@ -30,6 +30,7 @@
- type: Item
size: 30
- type: Foldable
folded: true
- type: Clickable
- type: InteractionOutline
- type: FultonBeacon

View File

@@ -3,7 +3,9 @@
result: Fulton1
completetime: 5
materials:
Cloth: 200
Steel: 200
# TODO: Need better sources of cloth as otherwise these will never get made.
# Cloth: 200
- type: latheRecipe
id: FultonBeacon