Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EE Specific Ores To Lavaland #1864

Merged
merged 2 commits into from
Mar 3, 2025
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
154 changes: 154 additions & 0 deletions Resources/Prototypes/Entities/Structures/Walls/asteroid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,28 @@
state: rock_asteroid_west
- state: rock_copper

- type: entity
id: AsteroidRockTungsten
parent: AsteroidRock
description: An ore vein rich with wolframite.
suffix: Tungsten
components:
- type: OreVein
oreChance: 1.0
currentOre: OreTungsten
- type: Sprite
layers:
- state: rock_asteroid
- map: [ "enum.EdgeLayer.South" ]
state: rock_asteroid_south
- map: [ "enum.EdgeLayer.East" ]
state: rock_asteroid_east
- map: [ "enum.EdgeLayer.North" ]
state: rock_asteroid_north
- map: [ "enum.EdgeLayer.West" ]
Comment on lines +511 to +517
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick (assertive)

YAML Formatting: Extraneous Spaces in Bracket Lists
Our YAML static analysis tools have flagged multiple instances where there appear to be too many spaces inside bracketed lists (for example, lines like

- map: [ "enum.EdgeLayer.South" ]

may benefit from tighter spacing, e.g.,

- map: ["enum.EdgeLayer.South"]

While these warnings can sometimes be false positives, please verify that our YAML style guidelines are met across these ranges. Consistent formatting will help keep our code as shipshape as our fleet!

Also applies to: 934-940, 1331-1337, 1728-1734, 2124-2130, 2521-2527, 2918-2924

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 511-511: too many spaces inside brackets

(brackets)


[error] 511-511: too many spaces inside brackets

(brackets)


[error] 513-513: too many spaces inside brackets

(brackets)


[error] 513-513: too many spaces inside brackets

(brackets)


[error] 515-515: too many spaces inside brackets

(brackets)


[error] 515-515: too many spaces inside brackets

(brackets)


[error] 517-517: too many spaces inside brackets

(brackets)


[error] 517-517: too many spaces inside brackets

(brackets)

state: rock_asteroid_west
- state: rock_copper


# Rocks and ore veins
- type: entity
Expand Down Expand Up @@ -897,6 +919,28 @@
state: rock_west
- state: rock_copper

- type: entity
id: WallRockTungsten
parent: WallRock
description: An ore vein rich with wolframite.
suffix: Tungsten
components:
- type: OreVein
oreChance: 1.0
currentOre: OreTungsten
- type: Sprite
layers:
- state: rock
- map: [ "enum.EdgeLayer.South" ]
state: rock_south
- map: [ "enum.EdgeLayer.East" ]
state: rock_east
- map: [ "enum.EdgeLayer.North" ]
state: rock_north
- map: [ "enum.EdgeLayer.West" ]
state: rock_west
- state: rock_copper

# Basalt variants
- type: entity
id: WallRockBasalt
Expand Down Expand Up @@ -1272,6 +1316,28 @@
state: rock_wall_west
- state: rock_copper

- type: entity
id: WallRockBasaltTungsten
parent: WallRockBasalt
description: An ore vein rich with wolframite.
suffix: Tungsten
components:
- type: OreVein
oreChance: 1.0
currentOre: OreTungsten
- type: Sprite
layers:
- state: rock_wall
- map: [ "enum.EdgeLayer.South" ]
state: rock_wall_south
- map: [ "enum.EdgeLayer.East" ]
state: rock_wall_east
- map: [ "enum.EdgeLayer.North" ]
state: rock_wall_north
- map: [ "enum.EdgeLayer.West" ]
state: rock_wall_west
- state: rock_copper

# Snow variants
- type: entity
id: WallRockSnow
Expand Down Expand Up @@ -1647,6 +1713,28 @@
state: rock_snow_west
- state: rock_copper

- type: entity
id: WallRockSnowTungsten
parent: WallRockSnow
description: An ore vein rich with wolframite.
suffix: Tungsten
components:
- type: OreVein
oreChance: 1.0
currentOre: OreTungsten
- type: Sprite
layers:
- state: rock_snow
- map: [ "enum.EdgeLayer.South" ]
state: rock_snow_south
- map: [ "enum.EdgeLayer.East" ]
state: rock_snow_east
- map: [ "enum.EdgeLayer.North" ]
state: rock_snow_north
- map: [ "enum.EdgeLayer.West" ]
state: rock_snow_west
- state: rock_copper

# Sand variants
- type: entity
id: WallRockSand
Expand Down Expand Up @@ -2021,6 +2109,28 @@
state: rock_sand_west
- state: rock_copper

- type: entity
id: WallRockSandTungsten
parent: WallRockSand
description: An ore vein rich with wolframite.
suffix: Tungsten
components:
- type: OreVein
oreChance: 1.0
currentOre: OreTungsten
- type: Sprite
layers:
- state: rock_sand
- map: [ "enum.EdgeLayer.South" ]
state: rock_sand_south
- map: [ "enum.EdgeLayer.East" ]
state: rock_sand_east
- map: [ "enum.EdgeLayer.North" ]
state: rock_sand_north
- map: [ "enum.EdgeLayer.West" ]
state: rock_sand_west
- state: rock_copper

Comment on lines +2112 to +2133
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

⚠️ Potential issue

WallRockSandTungsten: Sprite State Issue!
While the entity designation is correct with suffix: Tungsten, the sprite layer erroneously references rock_copper. Please amend the sprite state to reflect tungsten, for example to rock_tungsten.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 2124-2124: too many spaces inside brackets

(brackets)


[error] 2124-2124: too many spaces inside brackets

(brackets)


[error] 2126-2126: too many spaces inside brackets

(brackets)


[error] 2126-2126: too many spaces inside brackets

(brackets)


[error] 2128-2128: too many spaces inside brackets

(brackets)


[error] 2128-2128: too many spaces inside brackets

(brackets)


[error] 2130-2130: too many spaces inside brackets

(brackets)


[error] 2130-2130: too many spaces inside brackets

(brackets)

# Chromite variants
- type: entity
id: WallRockChromite
Expand Down Expand Up @@ -2396,6 +2506,28 @@
state: rock_chromite_west
- state: rock_copper

- type: entity
id: WallRockChromiteTungsten
parent: WallRockChromite
description: An ore vein rich with wolframite.
suffix: Tungsten
components:
- type: OreVein
oreChance: 1.0
currentOre: OreTungsten
- type: Sprite
layers:
- state: rock_chromite
- map: [ "enum.EdgeLayer.South" ]
state: rock_chromite_south
- map: [ "enum.EdgeLayer.East" ]
state: rock_chromite_east
- map: [ "enum.EdgeLayer.North" ]
state: rock_chromite_north
- map: [ "enum.EdgeLayer.West" ]
state: rock_chromite_west
- state: rock_copper

# Andesite variants
- type: entity
id: WallRockAndesite
Expand Down Expand Up @@ -2770,3 +2902,25 @@
- map: [ "enum.EdgeLayer.West" ]
state: rock_andesite_west
- state: rock_copper

- type: entity
id: WallRockAndesiteTungsten
parent: WallRockAndesite
description: An ore vein rich with wolframite.
suffix: Tungsten
components:
- type: OreVein
oreChance: 1.0
currentOre: OreTungsten
- type: Sprite
layers:
- state: rock_andesite
- map: [ "enum.EdgeLayer.South" ]
state: rock_andesite_south
- map: [ "enum.EdgeLayer.East" ]
state: rock_andesite_east
- map: [ "enum.EdgeLayer.North" ]
state: rock_andesite_north
- map: [ "enum.EdgeLayer.West" ]
state: rock_andesite_west
- state: rock_copper
14 changes: 14 additions & 0 deletions Resources/Prototypes/Procedural/biome_ore_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,20 @@
maxGroupSize: 2
radius: 4

- type: biomeMarkerLayer
id: OreTungsten
entityMask:
AsteroidRock: AsteroidRockTungsten
WallRock: WallRockTungsten
WallRockBasalt: WallRockBasaltTungsten
WallRockChromite: WallRockChromiteTungsten
WallRockSand: WallRockSandTungsten
WallRockSnow: WallRockSnowTungsten
maxCount: 6
minGroupSize: 3
maxGroupSize: 6
radius: 4

# Artifact Fragment
- type: biomeMarkerLayer
id: OreArtifactFragment
Expand Down
7 changes: 7 additions & 0 deletions Resources/Prototypes/Procedural/salvage_loot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,10 @@
loots:
- !type:BiomeMarkerLoot
proto: OreNormality

- type: salvageLoot
id: OreTungsten
guaranteed: true
loots:
- !type:BiomeMarkerLoot
proto: OreTungsten
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
- OreSilver
- OrePlasma
- OreUranium
#- OreBananium
- OreBananium
- OreArtifactFragment
- OreDiamond
- OreBluespace
- OreAluminium
- OreCopper
- OreTungsten
- OreLead
- OreNormality
Loading