Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #61 from Corvax-Frontier/MoreOpt
Browse files Browse the repository at this point in the history
Больше оптимизации
  • Loading branch information
Vonsant authored Apr 24, 2024
2 parents ad152cc + 56c68f9 commit 61bd74e
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 26 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Worldgen/Systems/LocalityLoaderSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public sealed class LocalityLoaderSystem : BaseWorldSystem
[Dependency] private readonly TransformSystem _xformSys = default!;

// Duration to reset the despawn timer to when a debris is loaded into a player's view.
private const float DebrisActiveDuration = 360; // 10 минут Corvax
private const float DebrisActiveDuration = 420; // 7 минут Corvax, а то 5 было маловато людям.

/// <inheritdoc />
public override void Update(float frameTime)
Expand Down Expand Up @@ -82,4 +82,4 @@ private void ResetTimedDespawn(EntityUid uid)
/// <summary>
/// An event fired on a loadable entity when a local loader enters its vicinity.
/// </summary>
public record struct LocalStructureLoadedEvent;
public record struct LocalStructureLoadedEvent;
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@
color: "#1e070e"
castShadows: false
- type: GravityAnomaly
- type: GravityWell
# - type: GravityWell # Оптимизацияи
- type: RadiationSource
- type: Physics
bodyType: Dynamic
bodyStatus: InAir
- type: CanMoveInAir
- type: RandomWalk
# - type: RandomWalk # Оптимизация
- type: SingularityDistortion
intensity: 1000
falloffPower: 2.7
Expand Down
8 changes: 7 additions & 1 deletion Resources/Prototypes/Entities/World/Debris/base_debris.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@
- type: OwnedDebris
- type: LocalityLoader
- type: TimedDespawn
lifetime: 120
lifetime: 120
- type: Physics
bodyStatus: InAir
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
bodyType: Dynamic
40 changes: 20 additions & 20 deletions Resources/Prototypes/XenoArch/Effects/normal_effects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,26 +266,26 @@
effectHint: artifact-effect-hint-electrical-interference
components:
- type: KnockArtifact

- type: artifactEffect
id: EffectMagnet
targetDepth: 1
effectHint: artifact-effect-hint-magnet
components:
- type: GravityWell
maxRange: 3
baseRadialAcceleration: 1
baseTangentialAcceleration: 3

- type: artifactEffect
id: EffectAntiMagnet
targetDepth: 1
effectHint: artifact-effect-hint-magnet
components:
- type: GravityWell
maxRange: 3
baseRadialAcceleration: -1
baseTangentialAcceleration: -3
# Jgnbvbpfwbz
#- type: artifactEffect
# id: EffectMagnet
# targetDepth: 1
# effectHint: artifact-effect-hint-magnet
# components:
# - type: GravityWell
# maxRange: 3
# baseRadialAcceleration: 1
# baseTangentialAcceleration: 3

#- type: artifactEffect
# id: EffectAntiMagnet
# targetDepth: 1
# effectHint: artifact-effect-hint-magnet
# components:
# - type: GravityWell
# maxRange: 3
# baseRadialAcceleration: -1
# baseTangentialAcceleration: -3

- type: artifactEffect
id: EffectInvisibility
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/_NF/Maps/POI/cove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
overflowJobs: []
availableJobs:
PirateCaptain: [ 1, 1 ]
PirateFirstMate: [ 2, 2 ]
PirateFirstMate: [ 0, 0 ] # нет спавнера у парней

0 comments on commit 61bd74e

Please sign in to comment.