Skip to content

Commit

Permalink
Merge branch 'new-frontiers-14:master' into Event-Anomaly
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 authored Sep 15, 2023
2 parents c17ff39 + 830a0f7 commit f9626c7
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Content.Server/Ame/EntitySystems/AmeControllerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private void UpdateController(EntityUid uid, TimeSpan curTime, AmeControllerComp
if (TryComp<PowerSupplierComponent>(uid, out var powerOutlet))
powerOutlet.MaxSupply = powerOutput;
fuelJar.FuelAmount -= availableInject;
_audioSystem.PlayPvs(controller.InjectSound, uid, AudioParams.Default.WithVolume(overloading ? 10f : 0f));
_audioSystem.PlayPvs(controller.InjectSound, uid, AudioParams.Default.WithVolume(overloading ? 5f : -5f));
UpdateUi(uid, controller);
}

Expand Down
4 changes: 2 additions & 2 deletions Content.Server/_NF/Commands/GhostRespawnCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
}

var mindSystem = _entityManager.EntitySysManager.GetEntitySystem<MindSystem>();
if (!mindSystem.TryGetMind(shell.Player, out _, out var mind))
if (!mindSystem.TryGetMind(shell.Player, out _, out _))
{
shell.WriteLine("You have no mind.");
return;
}
var time = (_gameTiming.CurTime - mind.TimeOfDeath!.Value);
var time = (_gameTiming.CurTime - ghost.TimeOfDeath);
var respawnTime = _configurationManager.GetCVar(NF14CVars.RespawnTime);

if (respawnTime > time.TotalSeconds)
Expand Down
14 changes: 14 additions & 0 deletions Resources/Changelog/Changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -677,3 +677,17 @@ Entries:
might show up on your ships.
id: 67
time: '2023-09-14T05:33:20.0000000+00:00'
- author: Cheackraze
changes:
- type: Tweak
message: >-
AME controllers now have noise-cancelling shielding to help curb space
madness
id: 68
time: '2023-09-15T03:55:32.0000000+00:00'
- author: checkraze
changes:
- type: Tweak
message: Asteroids are now much larger and richer
id: 69
time: '2023-09-15T05:23:26.0000000+00:00'
56 changes: 44 additions & 12 deletions Resources/Prototypes/Entities/World/Debris/asteroids.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,53 @@
- type: SimpleFloorPlanPopulator
entries:
FloorAsteroidSand:
- id: RandomArtifactSpawner20
prob: 0.03
orGroup: rock
- id: WallRock
prob: 0.5
prob: 0.3
orGroup: rock
- id: WallRockTin
prob: 0.15
prob: 0.2
orGroup: rock
- id: WallRockQuartz
prob: 0.15
prob: 0.1
orGroup: rock
- id: WallRockGold
prob: 0.05
prob: 0.06
orGroup: rock
- id: WallRockSilver
prob: 0.05
prob: 0.04
orGroup: rock
- id: WallRockPlasma
prob: 0.05
prob: 0.07
orGroup: rock
- id: WallRockUranium
prob: 0.02
prob: 0.04
orGroup: rock
- id: WallRockBananium
prob: 0.02
prob: 0.03
orGroup: rock
- id: WallRockArtifactFragment
prob: 0.01
prob: 0.03
orGroup: rock
- id: SalvageMobSpawner
prob: 0.001
orGroup: rock
- id: SpawnMobBearSalvage
prob: 0.001
orGroup: rock
- id: SpawnMobSpiderSalvage
prob: 0.001
orGroup: rock
- id: SpawnMobKangarooSalvage
prob: 0.001
orGroup: rock
- id: SpawnMobSmallPurpleSnake
prob: 0.001
orGroup: rock
- id: SpawnMobPurpleSnake
prob: 0.001
orGroup: rock
- type: GCAbleObject
queue: SpaceDebris
Expand All @@ -65,7 +86,7 @@
components:
- type: MapGrid
- type: BlobFloorPlanBuilder
floorPlacements: 16
floorPlacements: 24

- type: entity
id: AsteroidDebrisLarge
Expand All @@ -75,7 +96,7 @@
components:
- type: MapGrid
- type: BlobFloorPlanBuilder
floorPlacements: 24
floorPlacements: 36

- type: entity
id: AsteroidDebrisLarger
Expand All @@ -86,7 +107,18 @@
- type: MapGrid
- type: BlobFloorPlanBuilder
radius: 12
floorPlacements: 36
floorPlacements: 48

- type: entity
id: AsteroidDebrisHuge
parent: BaseAsteroidDebris
name: Asteroid Debris Huge
noSpawn: true
components:
- type: MapGrid
- type: BlobFloorPlanBuilder
radius: 32
floorPlacements: 128

- type: entity
id: AsteroidSalvageSmall
Expand Down
2 changes: 2 additions & 0 deletions Resources/Prototypes/World/Biomes/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
prob: 0.7
- id: AsteroidDebrisLarger
prob: 0.4
- id: AsteroidDebrisHuge
prob: 0.2
- type: NoiseDrivenDebrisSelector
noiseChannel: Wreck
debrisTable:
Expand Down

0 comments on commit f9626c7

Please sign in to comment.