]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Adds shiny crystal for salvage and decoration (#15643)
authorT-Stalker <43253663+DogZeroX@users.noreply.github.com>
Sat, 22 Apr 2023 07:10:50 +0000 (04:10 -0300)
committerGitHub <noreply@github.com>
Sat, 22 Apr 2023 07:10:50 +0000 (17:10 +1000)
Resources/Prototypes/Entities/Structures/Decoration/crystals.yml [new file with mode: 0644]
Resources/Textures/Structures/Decoration/crystal.rsi/crystal_blue.png [new file with mode: 0644]
Resources/Textures/Structures/Decoration/crystal.rsi/crystal_cyan.png [new file with mode: 0644]
Resources/Textures/Structures/Decoration/crystal.rsi/crystal_green.png [new file with mode: 0644]
Resources/Textures/Structures/Decoration/crystal.rsi/crystal_grey.png [new file with mode: 0644]
Resources/Textures/Structures/Decoration/crystal.rsi/crystal_orange.png [new file with mode: 0644]
Resources/Textures/Structures/Decoration/crystal.rsi/crystal_pink.png [new file with mode: 0644]
Resources/Textures/Structures/Decoration/crystal.rsi/meta.json [new file with mode: 0644]

diff --git a/Resources/Prototypes/Entities/Structures/Decoration/crystals.yml b/Resources/Prototypes/Entities/Structures/Decoration/crystals.yml
new file mode 100644 (file)
index 0000000..704de51
--- /dev/null
@@ -0,0 +1,99 @@
+- type: entity
+  id: CrystalGreen
+  parent: BaseStructure
+  name: green crystal
+  description: It's a shiny green crystal.
+  components:
+    - type: Sprite
+      sprite: Structures/Decoration/crystal.rsi
+      state: crystal_green
+      netsync: false
+    - type: PointLight
+      radius: 3
+      energy: 3
+      color: "#06DF24"
+    - type: Damageable
+      damageContainer: Inorganic
+      damageModifierSet: Metallic
+    - type: Destructible
+      thresholds:
+        - trigger:
+            !type:DamageTrigger
+            damage: 50
+          behaviors:
+            - !type:DoActsBehavior
+              acts: [ "Destruction" ]
+            - !type:PlaySoundBehavior
+              sound:
+                collection: GlassBreak
+
+- type: entity
+  id: CrystalPink
+  parent: CrystalGreen
+  name: pink crystal
+  description: It's a shiny pink crystal.
+  components:
+    - type: Sprite
+      sprite: Structures/Decoration/crystal.rsi
+      state: crystal_pink
+    - type: PointLight
+      radius: 3
+      energy: 3
+      color: "#DF06DC"
+
+- type: entity
+  id: CrystalGrey
+  parent: CrystalGreen
+  name: grey crystal
+  description: It's a shiny grey crystal.
+  components:
+    - type: Sprite
+      sprite: Structures/Decoration/crystal.rsi
+      state: crystal_grey
+    - type: PointLight
+      radius: 3
+      energy: 3
+      color: "#C1B0C1"
+
+- type: entity
+  id: CrystalOrange
+  parent: CrystalGreen
+  name: orange crystal
+  description: It's a shiny orange crystal.
+  components:
+    - type: Sprite
+      sprite: Structures/Decoration/crystal.rsi
+      state: crystal_orange
+    - type: PointLight
+      radius: 3
+      energy: 3
+      color: "#E8820F"
+
+- type: entity
+  id: CrystalBlue
+  parent: CrystalGreen
+  name: blue crystal
+  description: It's a shiny blue crystal.
+  components:
+    - type: Sprite
+      sprite: Structures/Decoration/crystal.rsi
+      state: crystal_blue
+    - type: PointLight
+      radius: 3
+      energy: 3
+      color: "#1843D4"
+
+- type: entity
+  id: CrystalCyan
+  parent: CrystalGreen
+  name: cyan crystal
+  description: It's a shiny cyan crystal.
+  components:
+    - type: Sprite
+      sprite: Structures/Decoration/crystal.rsi
+      state: crystal_cyan
+    - type: PointLight
+      radius: 3
+      energy: 3
+      color: "#18C9D4"
+
diff --git a/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_blue.png b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_blue.png
new file mode 100644 (file)
index 0000000..03307ba
Binary files /dev/null and b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_blue.png differ
diff --git a/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_cyan.png b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_cyan.png
new file mode 100644 (file)
index 0000000..f245ead
Binary files /dev/null and b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_cyan.png differ
diff --git a/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_green.png b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_green.png
new file mode 100644 (file)
index 0000000..d8d60fd
Binary files /dev/null and b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_green.png differ
diff --git a/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_grey.png b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_grey.png
new file mode 100644 (file)
index 0000000..13c5bf3
Binary files /dev/null and b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_grey.png differ
diff --git a/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_orange.png b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_orange.png
new file mode 100644 (file)
index 0000000..39d6230
Binary files /dev/null and b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_orange.png differ
diff --git a/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_pink.png b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_pink.png
new file mode 100644 (file)
index 0000000..f9f81c5
Binary files /dev/null and b/Resources/Textures/Structures/Decoration/crystal.rsi/crystal_pink.png differ
diff --git a/Resources/Textures/Structures/Decoration/crystal.rsi/meta.json b/Resources/Textures/Structures/Decoration/crystal.rsi/meta.json
new file mode 100644 (file)
index 0000000..14fb2c7
--- /dev/null
@@ -0,0 +1,29 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "https://github.com/Citadel-Station-13/Citadel-Station-13-RP/blob/fd35c5efa6973db72eaa646c3e653d230b8412ca/icons/obj/mining.dmi",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "states": [
+    {
+      "name": "crystal_green"
+    },
+    {
+      "name": "crystal_pink"
+    },
+    {
+      "name": "crystal_orange"
+    },
+    {
+      "name": "crystal_blue"
+    },
+    {
+      "name": "crystal_cyan"
+    },
+    {
+      "name": "crystal_grey"
+    }
+  ]
+}
\ No newline at end of file