Skip to content
Draft
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using Content.Server.GameTicking.Rules;
using Content.Server.Maps;
using Content.Shared._DV.Planet;
using Content.Shared.GridPreloader.Prototypes;
using Content.Shared.Weather;
using Content.Shared.GridPreloader.Prot
using Content.Shared.Maps;
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
Expand Down
14 changes: 14 additions & 0 deletions Content.Server/_Mono/Planets/PlanetMapComponent.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Content.Shared.Weather;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;

namespace Content.Server._Mono.Planets;
Expand All @@ -7,5 +9,17 @@ public sealed partial class PlanetMapComponent : Component
{
[DataField]
public string Parallax = "bedrock";

/// <summary>
/// If theres a planet prototype set, loads this weather onto it.
/// </summary>
[DataField]
public ProtoId<WeatherPrototype>? PlanetWeather;

/// <summary>
/// How much time until the thing ends or whatever who cares.
/// </summary>
[DataField]
public double PlanetWeatherEndTime;
}
// Only excludes a grid from garbage clean really.
2 changes: 2 additions & 0 deletions Resources/Locale/en-US/_Mono/biomes.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ salvage-biome-mod-mono-desert = Desert

# todo - get a better name than "desert planet" lmao
shuttle-destination-desert-planet = Desert Planet

shuttle-destination-planet-zone = Landing Zone
3 changes: 3 additions & 0 deletions Resources/Locale/en-US/_Mono/events/planets.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mono-planet-event-start-announcement = New planetary landing zone temporarily available for resource extraction. Estimated 30 minutes before intense weather blocks landing.
mono-planet-event-warning-announcement = Estimated 5 minutes before intense weather blocks landing.
mono-planet-event-end-announcement = Planetary landing zone blocked fully by weather. Await further notice.
4 changes: 4 additions & 0 deletions Resources/Prototypes/Tiles/planet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@

- type: tile
id: FloorDesertPlanet
suffix: Planet
name: tiles-desert-floor
sprite: /Textures/_Mono/Tiles/planet/auto_sand/sand_1_var.png
variants: 16
Expand Down Expand Up @@ -164,6 +165,7 @@

- type: tile
id: FloorRiverbed
suffix: Riverbed
name: tiles-low-desert-floor
sprite: /Textures/_RMC14/Tiles/planet/desert/desert.png
variants: 6
Expand All @@ -185,6 +187,7 @@

- type: tile
id: FloorAsteroidSandUnvariantizedPlanet
suffix: Planet
name: tiles-asteroid-sand
sprite: /Textures/Tiles/Asteroid/asteroid0.png
isSubfloor: true
Expand Down Expand Up @@ -212,6 +215,7 @@

- type: tile
id: FloorAsteroidSandPlanet
suffix: Planet
name: tiles-asteroid-sand
sprite: /Textures/Tiles/Asteroid/asteroid.png
variants: 13
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
- type: entity
name: PMC spawner
id: SpawnMobMonoPMCT1
parent: MarkerBase
suffix: AI, Hostile, T1
components:
- type: Sprite
layers:
- state: red
- state: ai
- type: RandomSpawner
prototypes:
- MobMonoPMCT1Soldier
- MobMonoPMCT1Handguns
chance: 1
offset: 0.0
rarePrototypes:
- SpawnMobMonoPMCT2
- MobMonoPMCT1Rifleman
rareChance: 0.3

- type: entity
name: PMC spawner
id: SpawnMobMonoPMCT2
parent: MarkerBase
suffix: AI, Hostile, T2
components:
- type: Sprite
layers:
- state: red
- state: ai
- type: RandomSpawner
prototypes:
- MobMonoPMCSubmachineGunT2
- MobMonoPMCShotgunT2
chance: 1
offset: 0.0
rarePrototypes:
- SpawnMobMonoPMCT3
- MobMonoPMCSniperT2
- MobMonoPMCJackdawT2
rareChance: 0.2

- type: entity
name: PMC spawner
id: SpawnMobMonoPMCT3
parent: MarkerBase
suffix: AI, Hostile, T3
components:
- type: Sprite
layers:
- state: red
- state: ai
- type: RandomSpawner
prototypes:
- MobMonoPMCAssaultT3
chance: 1
offset: 0.0
rarePrototypes:
- MobMonoPMCAutoriflemanT3
- MobMonoPMCGrenadierT3
rareChance: 0.1
Loading
Loading