]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix iron naming, add specific materials for ores (#23590)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Sat, 6 Jan 2024 02:52:40 +0000 (21:52 -0500)
committerGitHub <noreply@github.com>
Sat, 6 Jan 2024 02:52:40 +0000 (13:52 +1100)
add materials for ores, fix iron naming

12 files changed:
Content.Server/Gateway/Components/GatewayGeneratorComponent.cs
Resources/Locale/en-US/materials/materials.ftl
Resources/Locale/en-US/materials/units.ftl
Resources/Locale/en-US/salvage/salvage-magnet.ftl
Resources/Prototypes/Entities/Objects/Materials/ore.yml
Resources/Prototypes/Entities/Structures/Machines/lathe.yml
Resources/Prototypes/Procedural/Magnet/asteroid.yml
Resources/Prototypes/Procedural/biome_ore_templates.yml
Resources/Prototypes/Procedural/salvage_loot.yml
Resources/Prototypes/Reagents/Materials/ores.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Lathes/sheet.yml
Resources/Prototypes/Stacks/Materials/ore.yml

index 90b86bad527f24af6f72d5fc7525c4a990353353..670cbea307580a7e1fa8163d8452762eb5ac7c04 100644 (file)
@@ -55,7 +55,7 @@ public sealed partial class GatewayGeneratorComponent : Component
     /// </summary>
     public List<ProtoId<BiomeMarkerLayerPrototype>> LootLayers = new()
     {
-        "OreTin",
+        "OreIron",
         "OreQuartz",
         "OreGold",
         "OreSilver",
index a25cf2da14a24f889aa639163c1c93d4a86ae440..689fca4dd795c6c812c08eb2e943c30f5449992a 100644 (file)
@@ -26,5 +26,14 @@ materials-web = silk
 materials-bones = bone
 materials-coal = coal
 
+# Ores
+materials-raw-iron = raw iron
+materials-raw-quartz = raw quartz
+materials-raw-gold = raw gold
+materials-raw-silver = raw silver
+materials-raw-plasma = raw plasma
+materials-raw-uranium = raw uranium
+materials-raw-bananium = raw bananium
+
 # Material Reclaimer
 material-reclaimer-upgrade-process-rate = process rate
index 9915444bdcba8c2551c9eb1303ba29b74bceb41b..bff854086b483593f8fe1305712f7c8012245da9 100644 (file)
@@ -14,6 +14,8 @@ materials-unit-bunch = bunch
 materials-unit-slab = slab
 # webs of silk
 materials-unit-web = web
+# chunks of ore
+materials-unit-chunk = chunk
 
 # bills of spesos... not very good but they are not (yet?) used for crafting anything
 # also the lathe/atm would need bigger denominations to output...
index 72ae64a633b681266229e17affab2416e8a1ffa2..82d84fe74c4a91936966e7bb7b781340622c6281 100644 (file)
@@ -7,7 +7,7 @@ salvage-asteroid-name = Asteroid
 salvage-expedition-window-progression = Progression
 
 salvage-magnet-resources = {$resource ->
-    [OreTin] Tin
+    [OreIron] Iron
     [OreCoal] Coal
     [OreQuartz] Quartz
     [OreGold] Gold
index aa3ebfaaf282ef13db61807208a97d798b14b3d5..2159f3abb2ff3834c1633889ec8f53536623eee4 100644 (file)
@@ -48,7 +48,7 @@
   - type: Material
   - type: PhysicalComposition
     materialComposition:
-      Gold: 500
+      RawGold: 500
 
 - type: entity
   parent: GoldOre
@@ -61,7 +61,7 @@
 - type: entity
   parent: OreBase
   id: SteelOre
-  name: steel ore
+  name: iron ore
   suffix: Full
   components:
   - type: Stack
@@ -71,7 +71,7 @@
   - type: Material
   - type: PhysicalComposition
     materialComposition:
-      Steel: 500
+      RawIron: 500
 
 - type: entity
   id: SteelOre1
@@ -94,7 +94,7 @@
   - type: Material
   - type: PhysicalComposition
     materialComposition:
-      Plasma: 500
+      RawPlasma: 500
 
 - type: entity
   parent: PlasmaOre
   - type: Material
   - type: PhysicalComposition
     materialComposition:
-      Silver: 500
+      RawSilver: 500
 
 - type: entity
   parent: SilverOre
   - type: Material
   - type: PhysicalComposition
     materialComposition:
-      Glass: 500
+      RawQuartz: 500
 
 - type: entity
   parent: SpaceQuartz
   - type: Material
   - type: PhysicalComposition
     materialComposition:
-      Uranium: 500
+      RawUranium: 500
 
 - type: entity
   parent: UraniumOre
   - type: Material
   - type: PhysicalComposition
     materialComposition:
-      Bananium: 500
+      RawBananium: 500
 
 - type: entity
   parent: BananiumOre
index 25c235501548df5373c9da8238b8c7202c4e6d2f..dad8dad66db678625af04b12cbb664c272bfbe45 100644 (file)
     - type: Machine
       board: OreProcessorMachineCircuitboard
     - type: MaterialStorage
-      dropOnDeconstruct: false #should drop ores instead of ingots/sheets
       ignoreColor: true
-      canEjectStoredMaterials: false
       whitelist:
         tags:
           - Ore
index 6fb74994cc6026472eb169a9d4d5c98b99f76d03..df5e40da23ce9dad8f418df0317e1cb2b12dc2cf 100644 (file)
@@ -1,7 +1,7 @@
 - type: weightedRandom
   id: AsteroidOre
   weights:
-    OreTin: 1.0
+    OreIron: 1.0
     OreQuartz: 1.0
     OreCoal: 1.0
     OreGold: 0.25
index cebc4cb3c449122dd06ff3bd79751740b757bae5..1aba55128f574e3e35216440c78d91b3ad020055 100644 (file)
@@ -1,6 +1,6 @@
 # Low value
 - type: biomeMarkerLayer
-  id: OreTin
+  id: OreIron
   entityMask:
     AsteroidRock: AsteroidRockTin
     WallRock: WallRockTin
index 8c3b2c697f947591a7f675848ed5890011613322..5456603ef9eb93dbae277cb12b66461e366ffe97 100644 (file)
 # Ores - these are guaranteed
 # - Low value
 - type: salvageLoot
-  id: OreTin
+  id: OreIron
   guaranteed: true
   loots:
     - !type:BiomeMarkerLoot
-      proto: OreTin
+      proto: OreIron
 
 - type: salvageLoot
   id: OreCoal
diff --git a/Resources/Prototypes/Reagents/Materials/ores.yml b/Resources/Prototypes/Reagents/Materials/ores.yml
new file mode 100644 (file)
index 0000000..4f4dcee
--- /dev/null
@@ -0,0 +1,61 @@
+- type: material
+  id: RawIron
+  stackEntity: SteelOre1
+  name: materials-raw-iron
+  unit: materials-unit-chunk
+  icon: { sprite: Objects/Materials/ore.rsi, state: iron }
+  price: 0.05
+
+- type: material
+  id: RawQuartz
+  stackEntity: SpaceQuartz1
+  name: materials-raw-quartz
+  unit: materials-unit-chunk
+  icon: { sprite: Objects/Materials/ore.rsi, state: spacequartz }
+  color: "#a8ccd7"
+  price: 0.075
+
+- type: material
+  id: RawGold
+  stackEntity: GoldOre1
+  name: materials-raw-gold
+  unit: materials-unit-chunk
+  icon: { sprite: Objects/Materials/ore.rsi, state: gold }
+  color: "#FFD700"
+  price: 0.2
+
+- type: material
+  id: RawSilver
+  stackEntity: SilverOre1
+  name: materials-raw-silver
+  unit: materials-unit-chunk
+  icon: { sprite: Objects/Materials/ore.rsi, state: silver }
+  color: "#C0C0C0"
+  price: 0.15
+
+- type: material
+  id: RawPlasma
+  stackEntity: PlasmaOre1
+  name: materials-raw-plasma
+  unit: materials-unit-chunk
+  icon: { sprite: Objects/Materials/ore.rsi, state: plasma }
+  color: "#7e009e"
+  price: 0.2
+
+- type: material
+  id: RawUranium
+  stackEntity: UraniumOre1
+  name: materials-raw-uranium
+  unit: materials-unit-chunk
+  icon: { sprite: Objects/Materials/ore.rsi, state: uranium }
+  color: "#32a852"
+  price: 0.2
+
+- type: material
+  id: RawBananium
+  stackEntity: BananiumOre1
+  name: materials-raw-bananium
+  unit: materials-unit-chunk
+  icon: { sprite: Objects/Materials/ore.rsi, state: bananium }
+  color: "#32a852"
+  price: 0.2
index cb31c55dda60ae90690bade25d84083ceb1997fa..9f742ffe739cd85a4d8393245716c2db2ee00f00 100644 (file)
@@ -4,14 +4,14 @@
   applyMaterialDiscount: false
   completetime: 2
   materials:
-    Steel: 100
+    RawIron: 100
 
 - type: latheRecipe
   id: SheetSteel30
   result: SheetSteel
   completetime: 2
   materials:
-    Steel: 3000
+    RawIron: 3000
     Coal: 1000
 
 - type: latheRecipe
   applyMaterialDiscount: false
   completetime: 2
   materials:
-    Glass: 100
+    RawQuartz: 100
 
 - type: latheRecipe
   id: SheetGlass30
   result: SheetGlass
   completetime: 2
   materials:
-    Glass: 3000
+    RawQuartz: 3000
 
 - type: latheRecipe
   id: SheetRGlass
   result: SheetPlasma
   completetime: 2
   materials:
-    Plasma: 3000
+    RawPlasma: 3000
 
 - type: latheRecipe
   id: SheetUranium30
   result: SheetUranium
   completetime: 2
   materials:
-    Uranium: 3000
+    RawUranium: 3000
 
 - type: latheRecipe
   id: IngotGold30
   result: IngotGold
   completetime: 2
   materials:
-    Gold: 3000
+    RawGold: 3000
 
 - type: latheRecipe
   id: IngotSilver30
   result: IngotSilver
   completetime: 2
   materials:
-    Silver: 3000
+    RawSilver: 3000
 
 - type: latheRecipe
   id: MaterialBananium10
   result: MaterialBananium
   completetime: 2
   materials:
-    Bananium: 3000
+    RawBananium: 3000
 
 - type: latheRecipe
   id: SheetUranium1
   result: SheetUranium1
   completetime: 2
   materials:
-    Uranium: 500
+    RawUranium: 500
 
 - type: latheRecipe
   id: IngotGold1
   result: IngotGold1
   completetime: 2
   materials:
-    Gold: 500
+    RawGold: 500
 
 - type: latheRecipe
   id: IngotSilver1
   result: IngotSilver1
   completetime: 2
   materials:
-    Silver: 500
+    RawSilver: 500
 
 - type: latheRecipe
   id: SheetPlastic
   result: MaterialBananium1
   completetime: 2
   materials:
-    Bananium: 500
+    RawBananium: 500
 
 - type: latheRecipe
   id: MaterialSheetMeat
index 087786ded88a7c369757674d6e61bd7c944347c9..b7b32c8b23d341b25b3d186f75f55913899656aa 100644 (file)
@@ -8,7 +8,7 @@
 
 - type: stack
   id: SteelOre
-  name: steel ore
+  name: iron ore
   icon: { sprite: /Textures/Objects/Materials/ore.rsi, state: iron }
   spawn: SteelOre1
   maxCount: 30