]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Shiny Diamonds (#25750)
authorEd <96445749+TheShuEd@users.noreply.github.com>
Sat, 13 Jul 2024 12:15:57 +0000 (15:15 +0300)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2024 12:15:57 +0000 (15:15 +0300)
* shiny

* add

* reresprite

* rereresprite

* Add files via upload

* Update ore.yml

24 files changed:
Resources/Locale/en-US/materials/materials.ftl
Resources/Locale/en-US/salvage/salvage-magnet.ftl
Resources/Prototypes/Entities/Objects/Materials/materials.yml
Resources/Prototypes/Entities/Objects/Materials/ore.yml
Resources/Prototypes/Entities/Structures/Machines/lathe.yml
Resources/Prototypes/Entities/Structures/Walls/asteroid.yml
Resources/Prototypes/Entities/World/Debris/asteroids.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
Resources/Prototypes/Recipes/Lathes/sheet.yml
Resources/Prototypes/Stacks/Materials/ore.yml
Resources/Prototypes/ore.yml
Resources/Textures/Objects/Materials/materials.rsi/diamond-inhand-left.png
Resources/Textures/Objects/Materials/materials.rsi/diamond-inhand-right.png
Resources/Textures/Objects/Materials/materials.rsi/diamond.png
Resources/Textures/Objects/Materials/materials.rsi/diamond_2.png [new file with mode: 0644]
Resources/Textures/Objects/Materials/materials.rsi/diamond_3.png [new file with mode: 0644]
Resources/Textures/Objects/Materials/materials.rsi/meta.json
Resources/Textures/Objects/Materials/ore.rsi/diamond.png [new file with mode: 0644]
Resources/Textures/Objects/Materials/ore.rsi/meta.json
Resources/Textures/Structures/Walls/rock.rsi/meta.json
Resources/Textures/Structures/Walls/rock.rsi/rock_diamond.png

index a354423d2b7d347bc5b5bd76a9db490927a1c4d5..0fc716bda530e6daecc9b68d5787142d00b78a21 100644 (file)
@@ -25,6 +25,7 @@ materials-meat = meat
 materials-web = silk
 materials-bones = bone
 materials-coal = coal
+materials-diamond = diamond
 materials-gunpowder = gunpowder
 
 # Ores
@@ -36,3 +37,4 @@ materials-raw-plasma = raw plasma
 materials-raw-uranium = raw uranium
 materials-raw-bananium = raw bananium
 materials-raw-salt = raw salt
+materials-raw-diamond = raw diamond
index 7ce2a486de9e3b20d92d4349f4749d5ae6cbe38d..c60bafcc138a55c3c9e591e6cb0fbdc3a39e8022 100644 (file)
@@ -13,6 +13,7 @@ salvage-magnet-resources = {$resource ->
     [OreQuartz] Quartz
     [OreSalt] Salt
     [OreGold] Gold
+    [OreDiamond] Diamond
     [OreSilver] Silver
     [OrePlasma] Plasma
     [OreUranium] Uranium
index c4de4bb18f2f97876466886d48aa110f1b71e8ea..a3fc4a277458ad4c228ee68adc2f44f69214c951 100644 (file)
   components:
   - type: Stack
     stackType: Diamond
+    baseLayer: base
+    layerStates:
+    - diamond
+    - diamond_2
+    - diamond_3
   - type: Sprite
     state: diamond
+    layers:
+    - state: diamond
+      map: ["base"]
+  - type: StaticPrice
+    price: 0
+  - type: StackPrice
+    price: 500
+  - type: Appearance
   - type: Item
     heldPrefix: diamond
   - type: Extractable
index bf7dbfad5a3cb8a511c29ade11e077b35fc128df..136d20cc81b98bb1fc57affe7c5e896441397928 100644 (file)
   - type: Stack
     count: 1
 
+- type: entity
+  parent: OreBase
+  id: DiamondOre
+  name: diamond ore
+  suffix: Full
+  components:
+  - type: Stack
+    stackType: DiamondOre
+  - type: Sprite
+    state: diamond
+  - type: Material
+  - type: PhysicalComposition
+    materialComposition:
+      RawDiamond: 500
+  - type: Extractable
+    grindableSolutionName: diamondore
+  - type: SolutionContainerManager
+    solutions:
+      diamondore:
+        reagents:
+        - ReagentId: Carbon
+          Quantity: 20
+
+- type: entity
+  parent: DiamondOre
+  id: DiamondOre1
+  suffix: Single
+  components:
+  - type: Stack
+    count: 1
+
 - type: entity
   parent: OreBase
   id: SteelOre
index 67cf6f767da4a8968d43e8a9e8e13673236721ad..66f4f684e9a98bfe2537bc5d3111abe436ffa639 100644 (file)
         - IngotGold30
         - IngotSilver30
         - MaterialBananium10
+        - MaterialDiamond
 
 - type: entity
   parent: OreProcessor
index e14bf26e0dbdd06d78345b7477bb5a63edb8a04e..c0a30e76694ac0b62e9291ae660c535c79c90198 100644 (file)
           state: rock_asteroid_west
         - state: rock_gold
 
+- type: entity
+  id: AsteroidRockDiamond
+  parent: AsteroidRock
+  description: An ore vein rich with diamonds.
+  suffix: Diamond
+  components:
+    - type: OreVein
+      oreChance: 1.0
+      currentOre: OreDiamond
+    - 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_diamond
+
 - type: entity
   id: AsteroidRockPlasma
   parent: AsteroidRock
         state: rock_west
       - state: rock_gold
 
+- type: entity
+  id: WallRockDiamond
+  parent: WallRock
+  description: An ore vein rich with diamonds.
+  suffix: Diamond
+  components:
+    - type: OreVein
+      oreChance: 1.0
+      currentOre: OreDiamond
+    - 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_diamond
+
 - type: entity
   id: WallRockPlasma
   parent: WallRock
           state: rock_wall_west
         - state: rock_gold
 
+- type: entity
+  id: WallRockBasaltDiamond
+  parent: WallRockBasalt
+  description: An ore vein rich with diamonds.
+  suffix: Diamond
+  components:
+    - type: OreVein
+      oreChance: 1.0
+      currentOre: OreDiamond
+    - 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_diamond
+
 - type: entity
   id: WallRockBasaltPlasma
   parent: WallRockBasalt
           state: rock_snow_west
         - state: rock_gold
 
+- type: entity
+  id: WallRockSnowDiamond
+  parent: WallRockSnow
+  description: An ore vein rich with diamonds.
+  suffix: Diamond
+  components:
+    - type: OreVein
+      oreChance: 1.0
+      currentOre: OreDiamond
+    - 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_diamond
+
 - type: entity
   id: WallRockSnowPlasma
   parent: WallRockSnow
           state: rock_sand_west
         - state: rock_gold
 
+- type: entity
+  id: WallRockSandDiamond
+  parent: WallRockSand
+  description: An ore vein rich with diamonds.
+  suffix: Diamond
+  components:
+    - type: OreVein
+      oreChance: 1.0
+      currentOre: OreDiamond
+    - 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_diamond
+
 - type: entity
   id: WallRockSandPlasma
   parent: WallRockSand
           state: rock_sand_west
         - state: rock_uranium
 
-
 - type: entity
   id: WallRockSandBananium
   parent: WallRockSand
           state: rock_chromite_west
         - state: rock_gold
 
+- type: entity
+  id: WallRockChromiteDiamond
+  parent: WallRockChromite
+  description: An ore vein rich with diamonds.
+  suffix: Diamond
+  components:
+    - type: OreVein
+      oreChance: 1.0
+      currentOre: OreDiamond
+    - 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_diamond
+
 - type: entity
   id: WallRockChromitePlasma
   parent: WallRockChromite
           state: rock_andesite_west
         - state: rock_gold
 
+- type: entity
+  id: WallRockAndesiteDiamond
+  parent: WallRockAndesite
+  description: An ore vein rich with diamonds.
+  suffix: Diamond
+  components:
+    - type: OreVein
+      oreChance: 1.0
+      currentOre: OreDiamond
+    - 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_diamond
+
 - type: entity
   id: WallRockAndesitePlasma
   parent: WallRockAndesite
index 061288d010b558d42af4734e693184f6fffc4472..2817b083bedfbc01ed7778b34c71709790be4072 100644 (file)
@@ -32,6 +32,9 @@
           - id: WallRockGold
             prob: 0.05
             orGroup: rock
+          - id: WallRockDiamond
+            prob: 0.005
+            orGroup: rock
           - id: WallRockSilver
             prob: 0.05
             orGroup: rock
index c20b80af55bf979c08bc555eb669aaff43140620..c380dfbc7cfa2553a141dc5140ea48b559a62f69 100644 (file)
@@ -6,6 +6,7 @@
     OreCoal: 1.0
     OreSalt: 1.0
     OreGold: 0.25
+    OreDiamond: 0.05
     OreSilver: 0.25
     OrePlasma: 0.15
     OreUranium: 0.15
index 4a60427e305e2ced128769a003232353b8910f73..a6e5fac2d840be664d544e65849a37696ee8ef60 100644 (file)
   maxGroupSize: 10
   radius: 4
 
+- type: biomeMarkerLayer
+  id: OreDiamond
+  entityMask:
+    AsteroidRock: AsteroidRockDiamond
+    WallRock: WallRockDiamond
+    WallRockBasalt: WallRockBasaltDiamond
+    WallRockChromite: WallRockChromiteDiamond
+    WallRockSand: WallRockSandDiamond
+    WallRockSnow: WallRockSnowDiamond
+  maxCount: 6
+  minGroupSize: 1
+  maxGroupSize: 2
+  radius: 4
+
 # Artifact Fragment
 - type: biomeMarkerLayer
   id: OreArtifactFragment
index e8783760ddcd2f6db5da114917c57bf11db557e3..da99da7c75baf08c4368dca178c4553b3661347d 100644 (file)
     - !type:BiomeMarkerLoot
       proto: OreBananium
 
+- type: salvageLoot
+  id: OreDiamond
+  guaranteed: true
+  loots:
+    - !type:BiomeMarkerLoot
+      proto: OreDiamond
+
 - type: salvageLoot
   id: OreArtifactFragment
   guaranteed: true
index 18f1d9ebb3acbc29224d61e06a75f8f6fcf269ac..1555ab9e234554c6f0952c75c0f2efc921846ec0 100644 (file)
   color: "#FFD700"
   price: 0.2
 
+- type: material
+  id: RawDiamond
+  stackEntity: DiamondOre1
+  name: materials-raw-diamond
+  unit: materials-unit-piece
+  icon: { sprite: Objects/Materials/ore.rsi, state: diamond }
+  color: "#C9D8F2"
+  price: 0.5
+
 - type: material
   id: RawSilver
   stackEntity: SilverOre1
index 053715a18117788121947f8f470589d6493476f6..3efaac95a729fa3c112a486b750b473afb181b30 100644 (file)
   materials:
     RawBananium: 3000
 
+- type: latheRecipe
+  id: MaterialDiamond
+  result: MaterialDiamond1
+  completetime: 3
+  materials:
+    RawDiamond: 1000
+
 - type: latheRecipe
   id: SheetUranium1
   result: SheetUranium1
index 51254b5a7a68b7e880b6abffea2f0f5b50162971..3aaa04601aa3bb8ade115296e3b783bc437d8d9d 100644 (file)
@@ -4,6 +4,13 @@
   icon: { sprite: /Textures/Objects/Materials/ore.rsi, state: gold }
   spawn: GoldOre1
   maxCount: 30
+  
+- type: stack
+  id: DiamondOre
+  name: rough diamond
+  icon: { sprite: /Textures/Objects/Materials/ore.rsi, state: diamond }
+  spawn: DiamondOre1
+  maxCount: 30
 
 - type: stack
   id: SteelOre
index 84d1c667369476d5aa4c705efc3ca6eb6ab23b06..146f04b49c5c02c6f6325da5e9e7e78c9438ad7c 100644 (file)
   minOreYield: 1
   maxOreYield: 3
 
+- type: ore
+  id: OreDiamond
+  oreEntity: DiamondOre1
+  minOreYield: 1
+  maxOreYield: 2
+
 - type: ore
   id: OreQuartzCrab
   oreEntity: MobSpawnCrabQuartz
index c9b55e9daa52ea2f352f43917ffa03611e0c5512..9eae45d039abc1b118d047edae3ca52f3b28bb1f 100644 (file)
Binary files a/Resources/Textures/Objects/Materials/materials.rsi/diamond-inhand-left.png and b/Resources/Textures/Objects/Materials/materials.rsi/diamond-inhand-left.png differ
index 295c2c4eca1dddeb5fb91200177af77b78a76710..3353eb6f7caea4fa57c518ff3ecf7cf12666714b 100644 (file)
Binary files a/Resources/Textures/Objects/Materials/materials.rsi/diamond-inhand-right.png and b/Resources/Textures/Objects/Materials/materials.rsi/diamond-inhand-right.png differ
index 5eb8aabf8796f2a3b5ffce29119ea1b73dbdbb9b..8b39437d0ac358f85f04f69f9a743c0325c6dbc9 100644 (file)
Binary files a/Resources/Textures/Objects/Materials/materials.rsi/diamond.png and b/Resources/Textures/Objects/Materials/materials.rsi/diamond.png differ
diff --git a/Resources/Textures/Objects/Materials/materials.rsi/diamond_2.png b/Resources/Textures/Objects/Materials/materials.rsi/diamond_2.png
new file mode 100644 (file)
index 0000000..410d83f
Binary files /dev/null and b/Resources/Textures/Objects/Materials/materials.rsi/diamond_2.png differ
diff --git a/Resources/Textures/Objects/Materials/materials.rsi/diamond_3.png b/Resources/Textures/Objects/Materials/materials.rsi/diamond_3.png
new file mode 100644 (file)
index 0000000..152da2b
Binary files /dev/null and b/Resources/Textures/Objects/Materials/materials.rsi/diamond_3.png differ
index 78f497c0cda6a1f5c5ee3757e6100a2a27e5454a..3ae12dc14c028f4321b354ff643868c47955f4e6 100644 (file)
     {
       "name": "diamond"
     },
+    {
+      "name": "diamond_2"
+    },
+    {
+      "name": "diamond_3"
+    },
     {
       "name": "diamond-inhand-left",
       "directions": 4
diff --git a/Resources/Textures/Objects/Materials/ore.rsi/diamond.png b/Resources/Textures/Objects/Materials/ore.rsi/diamond.png
new file mode 100644 (file)
index 0000000..b2a3c78
Binary files /dev/null and b/Resources/Textures/Objects/Materials/ore.rsi/diamond.png differ
index 98a10750bf72cf12e4c74446adde0030d5b901c5..8f1b4533f2a5e462bb94d701b8d2b5af3095370a 100644 (file)
@@ -1,7 +1,7 @@
 {
   "version": 1,
   "license": "CC-BY-NC-SA-3.0",
-  "copyright": "silver, plasma taken from https://github.com/vgstation-coders/vgstation13 at commit f2ef221849675915a78fd92fe622c32ab740e085, spacequartz taken from https://github.com/goonstation/goonstation at commit b51daf824df46a3a1426475f982c09479818e522 and reshaded by Alekshhh, bananium; uranium; iron; gold; coal by Alekshhh",
+  "copyright": "silver, plasma taken from https://github.com/vgstation-coders/vgstation13 at commit f2ef221849675915a78fd92fe622c32ab740e085, spacequartz taken from https://github.com/goonstation/goonstation at commit b51daf824df46a3a1426475f982c09479818e522 and reshaded by Alekshhh, bananium; uranium; iron; gold; coal by Alekshhh, diamond at commit https://github.com/tgstation/tgstation/pull/78524, edited by TheShuEd",
   "size": {
     "x": 32,
     "y": 32
@@ -33,6 +33,9 @@
     },
     {
       "name": "salt"
+    },
+    {
+      "name": "diamond"
     }
   ]
 }
index aa46326a4b58b08ee1cb2c1b56ef758ee86987d0..a29513356c586e735284d44d0af28933295fab56 100644 (file)
             "name": "rock_copper"
         },
         {
-            "name": "rock_diamond"
+            "name": "rock_diamond",
+            "delays": [
+              [
+               0.2,
+               0.2,
+               0.2,
+               0.2,
+               0.2,
+               0.2,
+               0.2,
+               0.2,
+               0.2,
+               0.2,
+               0.2,
+               0.2
+              ]
+            ]
         },
         {
             "name": "rock_gold"
index eb05ebd3d11d956ea2df824d59d4578fca94f0a5..cc54b642f4548b270577283654c62ba308d31450 100644 (file)
Binary files a/Resources/Textures/Structures/Walls/rock.rsi/rock_diamond.png and b/Resources/Textures/Structures/Walls/rock.rsi/rock_diamond.png differ