]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
plushie (#14962)
authordontbetank <59025279+dontbetank@users.noreply.github.com>
Wed, 29 Mar 2023 22:36:54 +0000 (01:36 +0300)
committerGitHub <noreply@github.com>
Wed, 29 Mar 2023 22:36:54 +0000 (17:36 -0500)
Resources/Audio/Items/Toys/toy_rustle.ogg [new file with mode: 0644]
Resources/Prototypes/Entities/Objects/Fun/toys.yml
Resources/Textures/Objects/Fun/toys.rsi/meta.json
Resources/Textures/Objects/Fun/toys.rsi/plushie_diona.png [new file with mode: 0644]
Resources/Textures/Objects/Fun/toys.rsi/plushie_diona1.png [new file with mode: 0644]

diff --git a/Resources/Audio/Items/Toys/toy_rustle.ogg b/Resources/Audio/Items/Toys/toy_rustle.ogg
new file mode 100644 (file)
index 0000000..de8b37d
Binary files /dev/null and b/Resources/Audio/Items/Toys/toy_rustle.ogg differ
index 84b41d07eefdb2c2ffb902d8bb72e9a094a97af9..7a3882c484782027d726feef7eaae656c9026693 100644 (file)
     soundHit:
       path: /Audio/Items/Toys/muffled_weh.ogg
 
+- type: entity
+  parent: BasePlushie
+  id: PlushieDiona
+  name: diona plushie
+  description: An adorable stuffed toy that resembles a diona. Love water and cuddles. Do not wet!
+  components:
+    - type: Sprite
+      layers:
+        - state: plushie_diona
+        - state: plushie_diona1
+          map: [ "enum.SolutionContainerLayers.Fill" ]
+          visible: false
+    - type: EmitSoundOnUse
+      sound:
+        path: /Audio/Items/Toys/toy_rustle.ogg
+    - type: EmitSoundOnLand
+      sound:
+        path: /Audio/Items/Toys/toy_rustle.ogg
+    - type: EmitSoundOnActivate
+      sound:
+        path: /Audio/Items/Toys/toy_rustle.ogg
+    - type: MeleeWeapon
+      soundHit:
+        path: /Audio/Items/Toys/toy_rustle.ogg
+    - type: SolutionContainerManager
+      solutions:
+        plushie:
+          maxVol: 1
+    - type: RefillableSolution
+      solution: plushie
+    - type: SolutionContainerVisuals
+      maxFillLevels: 1
+      fillBaseName: plushie_diona
+      changeColor: false
+    - type: Appearance
+    - type: Reactive
+      reactions:
+        - reagents: [ Water ]
+          methods: [ Touch ]
+          effects:
+            - !type:AddToSolutionReaction
+              solution: plushie
+    - type: Fixtures
+      fixtures:
+        - shape:
+            !type:PhysShapeAabb
+            bounds: "-0.3,-0.3,0.3,0.3"
+          density: 15
+          mask:
+            - ItemMask
+        - shape:
+            !type:PhysShapeAabb
+            bounds: "-0.3,-0.3,0.3,0.3"
+          id: "rehydrate"
+          hard: false
+          layer:
+            - LowImpassable
+    - type: CollisionWake
+      enabled: false
+
 - type: entity
   parent: BasePlushie
   id: PlushieSharkBlue
       revolver-ammo: !type:Container
 
 - type: entity
-  parent: RevolverCapGun 
+  parent: RevolverCapGun
   id: RevolverCapGunFake
   name: cap gun
   description: Looks almost like the real thing! Ages 8 and up.
index 82d3a0a13cdd1cc5cfeab1a120ae74c630b62ab1..b07a96aa74cbbbcad9fe3b9b8d5b37a806d78327 100644 (file)
@@ -1,7 +1,7 @@
 {
   "version": 1,
   "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/e1142f20f5e4661cb6845cfcf2dd69f864d67432, orb, orb-inhand-left and orb-inhand-right created by Pancake",
+  "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/e1142f20f5e4661cb6845cfcf2dd69f864d67432, orb, orb-inhand-left and orb-inhand-right created by Pancake, plushie_diona and plushie_diona1 created by discord user Deos#5630 ",
   "size": {
     "x": 32,
     "y": 32
         {
             "name": "plushie_vox"
         },
+        {
+            "name": "plushie_diona"
+        },
+        {
+            "name": "plushie_diona1"
+        },
         {
             "name": "doll"
         },
diff --git a/Resources/Textures/Objects/Fun/toys.rsi/plushie_diona.png b/Resources/Textures/Objects/Fun/toys.rsi/plushie_diona.png
new file mode 100644 (file)
index 0000000..195cca1
Binary files /dev/null and b/Resources/Textures/Objects/Fun/toys.rsi/plushie_diona.png differ
diff --git a/Resources/Textures/Objects/Fun/toys.rsi/plushie_diona1.png b/Resources/Textures/Objects/Fun/toys.rsi/plushie_diona1.png
new file mode 100644 (file)
index 0000000..b6bd6a0
Binary files /dev/null and b/Resources/Textures/Objects/Fun/toys.rsi/plushie_diona1.png differ