]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Added Chopsticks (#27298)
authorRedfire1331 <125223432+Redfire1331@users.noreply.github.com>
Fri, 26 Apr 2024 12:39:32 +0000 (08:39 -0400)
committerGitHub <noreply@github.com>
Fri, 26 Apr 2024 12:39:32 +0000 (22:39 +1000)
* added chopstick sprites

* Create chopsticks.yml

* added chopstick yml

* hopfully it acts like a forke

* added chopsticks to dinnerware vendor

* uncapitalized the name

* Update Resources/Prototypes/Entities/Objects/Misc/chopsticks.yml

Co-authored-by: lzk <124214523+lzk228@users.noreply.github.com>
* made the chopsticks icon a reasonable size

* added chopsticks to chang vendor

* made paired chopsticks you can break apart

* added them to vendors

---------

Co-authored-by: redfire1331 <Redfire1331@users.noreply.github.com>
Co-authored-by: lzk <124214523+lzk228@users.noreply.github.com>
Resources/Audio/Effects/chopstickbreak.ogg [new file with mode: 0644]
Resources/Prototypes/Catalog/VendingMachines/Inventories/chang.yml
Resources/Prototypes/Catalog/VendingMachines/Inventories/dinnerware.yml
Resources/Prototypes/Entities/Objects/Misc/chopsticks.yml [new file with mode: 0644]
Resources/Textures/Objects/Misc/chopstick.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/chopstick.rsi/inhand-left.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/chopstick.rsi/inhand-right.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/chopstick.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Misc/chopstick.rsi/paired.png [new file with mode: 0644]

diff --git a/Resources/Audio/Effects/chopstickbreak.ogg b/Resources/Audio/Effects/chopstickbreak.ogg
new file mode 100644 (file)
index 0000000..bac8ac0
Binary files /dev/null and b/Resources/Audio/Effects/chopstickbreak.ogg differ
index 282f58535b00e4ce612bcd8ec40d5ae3cd65f279..5befd85ca844210b155f57d17f50df2fa06c2feb 100644 (file)
@@ -7,4 +7,5 @@
     DrinkHellRamen: 3
     FoodSnackChowMein: 3
     FoodSnackDanDanNoodles: 3
+    PairedChopsticks: 3
 # rice?
index 86f35b52696d7d7ae283dae8f3bf6510e2461098..11e48f830eefe2c218472d3ece122215346625f3 100644 (file)
@@ -6,6 +6,7 @@
     RollingPin: 4
     Spoon: 4
     Fork: 4
+    PairedChopsticks: 4
     FoodBowlBig: 10
     FoodPlate: 10
     FoodPlateSmall: 10
diff --git a/Resources/Prototypes/Entities/Objects/Misc/chopsticks.yml b/Resources/Prototypes/Entities/Objects/Misc/chopsticks.yml
new file mode 100644 (file)
index 0000000..47cae45
--- /dev/null
@@ -0,0 +1,31 @@
+- type: entity
+  parent: BaseItem
+  id: ChopSticks
+  name: chopsticks
+  description: A very traditional utensil.
+  components:
+  - type: Sprite
+    sprite: Objects/Misc/chopstick.rsi
+    state: icon
+  - type: Item
+    sprite: Objects/Misc/chopstick.rsi
+    size: Small
+  - type: Utensil
+    types:
+    - Fork
+
+- type: entity
+  parent: BaseItem
+  name: paired chopsticks
+  id: PairedChopsticks
+  description: You should probably seperate them.
+  components:
+  - type: SpawnItemsOnUse
+    items:
+      - id: ChopSticks
+  - type: Sprite
+    sprite: Objects/Misc/chopstick.rsi
+    state: paired
+  - type: EmitSoundOnUse
+    sound:
+      path: /Audio/Effects/chopstickbreak.ogg
diff --git a/Resources/Textures/Objects/Misc/chopstick.rsi/icon.png b/Resources/Textures/Objects/Misc/chopstick.rsi/icon.png
new file mode 100644 (file)
index 0000000..95acfb5
Binary files /dev/null and b/Resources/Textures/Objects/Misc/chopstick.rsi/icon.png differ
diff --git a/Resources/Textures/Objects/Misc/chopstick.rsi/inhand-left.png b/Resources/Textures/Objects/Misc/chopstick.rsi/inhand-left.png
new file mode 100644 (file)
index 0000000..48fa05c
Binary files /dev/null and b/Resources/Textures/Objects/Misc/chopstick.rsi/inhand-left.png differ
diff --git a/Resources/Textures/Objects/Misc/chopstick.rsi/inhand-right.png b/Resources/Textures/Objects/Misc/chopstick.rsi/inhand-right.png
new file mode 100644 (file)
index 0000000..51dc396
Binary files /dev/null and b/Resources/Textures/Objects/Misc/chopstick.rsi/inhand-right.png differ
diff --git a/Resources/Textures/Objects/Misc/chopstick.rsi/meta.json b/Resources/Textures/Objects/Misc/chopstick.rsi/meta.json
new file mode 100644 (file)
index 0000000..78e9149
--- /dev/null
@@ -0,0 +1,25 @@
+{
+    "version": 1,
+    "license": "CC-BY-SA-3.0",
+    "copyright": "Taken from goonstation at https://github.com/goonstation/goonstation/pull/1179",
+    "size": {
+      "x": 32,
+      "y": 32
+    },
+    "states": [
+      {
+        "name": "icon"
+      },
+      {
+        "name": "inhand-left",
+        "directions": 4
+      },
+      {
+        "name": "inhand-right",
+        "directions": 4
+      },
+      {
+        "name": "paired"
+      }
+    ] 
+  }
\ No newline at end of file
diff --git a/Resources/Textures/Objects/Misc/chopstick.rsi/paired.png b/Resources/Textures/Objects/Misc/chopstick.rsi/paired.png
new file mode 100644 (file)
index 0000000..220dc31
Binary files /dev/null and b/Resources/Textures/Objects/Misc/chopstick.rsi/paired.png differ