Adds minable salt "ore" (#25324)

* Added salt to ore.yml
Added salt to ores.yml
Added salt walls to asteroid.yml
Added salt to BaseAsteroidDebris' list of ores to generate in asteroids.yml
Added OreSalt to biome_ore_templates.yml
Added salt to guaranteed salvageLoot in salvage_loot.yml
Added salt entry under salvage-magnet-resources in salvage-magnet.ftl
Added WIP sprites for salt.

* Renamed salt's id to SaltOre inside Entities/Objects/Materials/ore.yml
Fixed salt not being grindable due to using an incorrect reagent name
Added salt to ore.rsi/meta.json and rock.rsi/meta.json

* Added chlorine to the list of solutions salt gives when used in the grinder.

* Gave salt ore and salt rock overlay unique sprites.

* Added raw salt to materials/materials.ftl
Updated SaltOre definition in ore.yml to have RawSalt under materialComposition

* Updated saltore definition to give 10 units of tablesalt and 5 units of iodine when ground.
This commit is contained in:
Zadeon
2024-02-26 17:34:15 -06:00
committed by GitHub
parent 8e951f3582
commit 133bd0353a
15 changed files with 242 additions and 0 deletions

View File

@@ -34,3 +34,4 @@ materials-raw-silver = raw silver
materials-raw-plasma = raw plasma
materials-raw-uranium = raw uranium
materials-raw-bananium = raw bananium
materials-raw-salt = raw salt

View File

@@ -11,6 +11,7 @@ salvage-magnet-resources = {$resource ->
[OreIron] Iron
[OreCoal] Coal
[OreQuartz] Quartz
[OreSalt] Salt
[OreGold] Gold
[OreSilver] Silver
[OrePlasma] Plasma

View File

@@ -312,3 +312,36 @@
components:
- type: Stack
count: 1
- type: entity
parent: OreBase
id: SaltOre
name: salt
suffix: Full
components:
- type: Stack
stackType: SaltOre
- type: Sprite
state: salt
- type: Material
- type: PhysicalComposition
materialComposition:
RawSalt: 500
- type: Extractable
grindableSolutionName: saltore
- type: SolutionContainerManager
solutions:
saltore:
reagents:
- ReagentId: TableSalt
Quantity: 10
- ReagentId: Iodine
Quantity: 5
- type: entity
parent: SaltOre
id: Salt1
suffix: Single
components:
- type: Stack
count: 1

View File

@@ -343,6 +343,28 @@
- map: [ "enum.EdgeLayer.West" ]
state: ironrock_west
- type: entity
id: AsteroidRockSalt
parent: AsteroidRock
description: An ore vein rich with salt.
suffix: Salt
components:
- type: OreVein
oreChance: 1.0
currentOre: OreSalt
- 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" ]
state: rock_asteroid_west
- state: rock_salt
- type: entity
id: IronRockMining
parent: IronRock
@@ -613,6 +635,28 @@
state: rock_west
- state: rock_artifact_fragment
- type: entity
id: WallRockSalt
parent: WallRock
description: An ore vein rich with salt.
suffix: Salt
components:
- type: OreVein
oreChance: 1.0
currentOre: OreSalt
- 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_salt
# Basalt variants
- type: entity
id: WallRockBasalt
@@ -831,6 +875,28 @@
state: rock_wall_west
- state: rock_artifact_fragment
- type: entity
id: WallRockBasaltSalt
parent: WallRockBasalt
description: An ore vein rich with salt.
suffix: Salt
components:
- type: OreVein
oreChance: 1.0
currentOre: OreSalt
- 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_salt
# Snow variants
- type: entity
id: WallRockSnow
@@ -1049,6 +1115,27 @@
state: rock_snow_west
- state: rock_artifact_fragment
- type: entity
id: WallRockSnowSalt
parent: WallRockSnow
description: An ore vein rich with salt.
suffix: Salt
components:
- type: OreVein
oreChance: 1.0
currentOre: OreSalt
- 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_salt
# Sand variants
- type: entity
@@ -1268,6 +1355,28 @@
state: rock_sand_west
- state: rock_artifact_fragment
- type: entity
id: WallRockSandSalt
parent: WallRockSand
description: An ore vein rich with salt.
suffix: Salt
components:
- type: OreVein
oreChance: 1.0
currentOre: OreSalt
- 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_salt
# Chromite variants
- type: entity
id: WallRockChromite
@@ -1486,6 +1595,28 @@
state: rock_chromite_west
- state: rock_artifact_fragment
- type: entity
id: WallRockChromiteSalt
parent: WallRockChromite
description: An ore vein rich with salt.
suffix: Salt
components:
- type: OreVein
oreChance: 1.0
currentOre: OreSalt
- 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_salt
# Andesite variants
- type: entity
id: WallRockAndesite
@@ -1703,3 +1834,25 @@
- map: [ "enum.EdgeLayer.West" ]
state: rock_andesite_west
- state: rock_artifact_fragment
- type: entity
id: WallRockAndesiteSalt
parent: WallRockAndesite
description: An ore vein rich with salt.
suffix: Salt
components:
- type: OreVein
oreChance: 1.0
currentOre: OreSalt
- 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_salt

View File

@@ -26,6 +26,9 @@
- id: WallRockQuartz
prob: 0.15
orGroup: rock
- id: WallRockSalt
prob: 0.15
orGroup: rock
- id: WallRockGold
prob: 0.05
orGroup: rock

View File

@@ -4,6 +4,7 @@
OreIron: 1.0
OreQuartz: 1.0
OreCoal: 1.0
OreSalt: 1.0
OreGold: 0.25
OreSilver: 0.25
OrePlasma: 0.15

View File

@@ -40,6 +40,20 @@
maxGroupSize: 20
radius: 4
- type: biomeMarkerLayer
id: OreSalt
entityMask:
AsteroidRock: AsteroidRockSalt
WallRock: WallRockSalt
WallRockBasalt: WallRockBasaltSalt
WallRockChromite: WallRockChromiteSalt
WallRockSand: WallRockSandSalt
WallRockSnow: WallRockSnowSalt
maxCount: 30
minGroupSize: 10
maxGroupSize: 20
radius: 4
# Medium value
# Gold
- type: biomeMarkerLayer

View File

@@ -135,6 +135,13 @@
- !type:BiomeMarkerLoot
proto: OreQuartz
- type: salvageLoot
id: OreSalt
guaranteed: true
loots:
- !type:BiomeMarkerLoot
proto: OreSalt
# - Medium value
- type: salvageLoot
id: OreGold

View File

@@ -59,3 +59,12 @@
icon: { sprite: Objects/Materials/ore.rsi, state: bananium }
color: "#32a852"
price: 0.2
- type: material
id: RawSalt
stackEntity: Salt1
name: materials-raw-salt
unit: materials-unit-chunk
icon: { sprite: Objects/Materials/ore.rsi, state: salt }
color: "#f5e7d7"
price: 0.075

View File

@@ -62,3 +62,11 @@
spawn: Coal1
maxCount: 30
itemSize: 2
- type: stack
id: SaltOre
name: salt
icon: { sprite: /Textures/Objects/Materials/ore.rsi, state: salt }
spawn: Salt1
maxCount: 30
itemSize: 2

View File

@@ -37,6 +37,12 @@
minOreYield: 1
maxOreYield: 3
- type: ore
id: OreSalt
oreEntity: Salt1
minOreYield: 1
maxOreYield: 3
# Low yields
- type: ore
id: OrePlasma

View File

@@ -30,6 +30,9 @@
},
{
"name": "coal"
},
{
"name": "salt"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 B

View File

@@ -151,6 +151,9 @@
{
"name": "rock_bananium"
},
{
"name": "rock_salt"
},
{
"name": "rock_sand"
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B