]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add vials (#22587)
authorUbaser <134914314+UbaserB@users.noreply.github.com>
Sat, 16 Dec 2023 14:29:53 +0000 (01:29 +1100)
committerGitHub <noreply@github.com>
Sat, 16 Dec 2023 14:29:53 +0000 (09:29 -0500)
* vial

* yea

* s

* fix something

* yaml

* fixer

aaaaaaaaaaa

* update

* sprite changes

* a

* fix'd

22 files changed:
Resources/Locale/en-US/prototypes/catalog/fills/crates/medical-crates.ftl
Resources/Prototypes/Catalog/Cargo/cargo_medical.yml
Resources/Prototypes/Catalog/Fills/Boxes/medical.yml
Resources/Prototypes/Catalog/Fills/Crates/medical.yml
Resources/Prototypes/Catalog/Fills/Lockers/medical.yml
Resources/Prototypes/Entities/Objects/Specific/chemistry-vials.yml [new file with mode: 0644]
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/inhand-left.png
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/inhand-right.png
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/lid_vial.png [deleted file]
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/meta.json
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-1.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-2.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-3.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-4.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-5.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-6.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial.png
Resources/Textures/Objects/Storage/boxes.rsi/meta.json
Resources/Textures/Objects/Storage/boxes.rsi/vials.png [new file with mode: 0644]
Resources/Textures/Objects/Storage/boxicons.rsi/meta.json
Resources/Textures/Objects/Storage/boxicons.rsi/vials.png [new file with mode: 0644]

index 840965cf1d5c3553701feaf05d2812db773b9f7b..303ede62e10214b885beaf49d23e6b2a821a4f6b 100644 (file)
@@ -6,6 +6,9 @@ ent-CrateMedicalSupplies = Medical supplies crate
 ent-CrateChemistrySupplies = Chemistry supplies crate
     .desc = Basic chemistry supplies.
 
+ent-CrateChemistryVials = Vial supply crate
+    .desc = Crate filled with a box of vials.
+
 ent-CrateMindShieldImplants = MindShield implant crate
     .desc = Crate filled with 3 MindShield implants.
 
index 16498a5a750168fa6746fe2768ef6c15209ae52b..01a7192b35b2603b333827acf536ff0ea41d2e39 100644 (file)
   category: Medical
   group: market
 
+- type: cargoProduct
+  id: MedicalChemistryVials
+  icon:
+    sprite: Objects/Specific/Chemistry/vial.rsi
+    state: vial
+  product: CrateChemistryVials
+  cost: 1000
+  category: Medical
+  group: market
+
 - type: cargoProduct
   id: EmergencyBurnKit
   icon:
index 8d62fbb515438b246bbdf71601d8bda8615110e5..aba61ce332d7021897dca0c3fb16cbd2db5fff32 100644 (file)
     whitelist:
       tags:
         - BodyBag
+
+- type: entity
+  name: vial box
+  parent: BoxCardboard
+  id: BoxVial
+  description: A box full of vials.
+  components:
+  - type: Storage
+    grid:
+    - 0,0,2,1
+  - type: StorageFill
+    contents:
+      - id: BaseChemistryEmptyVial
+        amount: 6
+  - type: Sprite
+    layers:
+      - state: box
+      - state: vials
index a487138afda10b7f8f030f9ded13943a9e8aa4fc..f478713c1a8f86812e98155c36c682805d4c7c64 100644 (file)
       - id: BoxBottle
         amount: 2
 
+- type: entity
+  id: CrateChemistryVials
+  parent: CrateMedical
+  components:
+  - type: StorageFill
+    contents:
+      - id: BoxVial
+
 - type: entity
   id: CrateMindShieldImplants
   parent: CrateMedical
index 352ff69c504638ed3988bf5148d73a67ffe73531..466171f6f8fc164653ce8682c56df3b4c9fa89bf 100644 (file)
         prob: 0.3
       - id: BoxPillCanister
       - id: BoxBottle
+      - id: BoxVial
       - id: ChemBag
       - id: ClothingHandsGlovesLatex
       - id: ClothingHeadsetMedical
diff --git a/Resources/Prototypes/Entities/Objects/Specific/chemistry-vials.yml b/Resources/Prototypes/Entities/Objects/Specific/chemistry-vials.yml
new file mode 100644 (file)
index 0000000..35ac6bc
--- /dev/null
@@ -0,0 +1,95 @@
+# TODO: Have a seperate lid state that can be popped on and off (not as a seperate item) that changes whether the vial can be spilled or not
+
+- type: entity
+  name: vial
+  parent: BaseItem
+  id: BaseChemistryEmptyVial
+  description: A small vial.
+  components:
+  - type: Tag
+    tags:
+    - Trash
+  - type: PhysicalComposition
+    materialComposition:
+      Glass: 25
+  - type: FitsInDispenser
+    solution: beaker
+  - type: SpaceGarbage
+  - type: Sprite
+    sprite: Objects/Specific/Chemistry/vial.rsi
+    layers:
+      - state: vial-1
+      - state: vial-1-1
+        map: ["enum.SolutionContainerLayers.Fill"]
+        visible: false
+  - type: Appearance
+  - type: SolutionContainerVisuals
+    maxFillLevels: 6
+    fillBaseName: vial-1-
+  - type: SolutionContainerManager
+    solutions:
+      drink:
+        maxVol: 30
+        canMix: true
+  - type: RefillableSolution
+    solution: drink
+  - type: DrainableSolution
+    solution: drink
+  - type: ExaminableSolution
+    solution: drink
+  - type: DrawableSolution
+    solution: drink
+  - type: SolutionTransfer
+    maxTransferAmount: 30
+    canChangeTransferAmount: true
+  - type: UserInterface
+    interfaces:
+    - key: enum.TransferAmountUiKey.Key
+      type: TransferAmountBoundUserInterface
+  - type: Item
+    size: Tiny
+    sprite: Objects/Specific/Chemistry/vial.rsi
+    shape:
+    - 0,0,0,0
+  - type: MeleeWeapon
+    soundNoDamage:
+      path: "/Audio/Effects/Fluids/splat.ogg"
+    damage:
+      types:
+        Blunt: 0
+  - type: TrashOnSolutionEmpty
+    solution: drink
+  - type: StaticPrice
+    price: 100
+  - type: DamageOnLand
+    damage:
+      types:
+        Blunt: 5
+  - type: DamageOtherOnHit
+    damage:
+      types:
+        Blunt: 2
+  - type: Damageable
+    damageContainer: Inorganic
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 15
+      behaviors:
+      - !type:PlaySoundBehavior
+        sound:
+          collection: GlassBreak
+          params:
+            volume: -4
+      - !type:SpillBehavior { }
+      - !type:SpawnEntitiesBehavior
+        spawn:
+          ShardGlass:
+            min: 0
+            max: 1
+        transferForensics: true
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+  - type: Spillable
+    solution: drink
index 71a75ca66e9cc4fdb2924ac76750aa07b6cef084..4a82b48c905c7f4b56893407f644809641220ba0 100644 (file)
Binary files a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/inhand-left.png and b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/inhand-left.png differ
index c9c7de38f4e7a47e808684239bdacfbf530f877a..0f835ece480cc136987698860cf10e98fbecd4df 100644 (file)
Binary files a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/inhand-right.png and b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/inhand-right.png differ
diff --git a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/lid_vial.png b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/lid_vial.png
deleted file mode 100644 (file)
index b1ad7e1..0000000
Binary files a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/lid_vial.png and /dev/null differ
index 7b251e87ffe0eac63c36aa88b3992eda74591c67..800cb2b5224595629d517951fd3b2407b946a33a 100644 (file)
@@ -1,15 +1,12 @@
 {
   "version": 1,
   "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from cev-eris at https://github.com/discordia-space/CEV-Eris/blob/2b969adc2dfd3e9621bf3597c5cbffeb3ac8c9f0/icons/obj/chemical.dmi",
+  "copyright": "Drawn by Ubaser, taken inspiration by /tg/'s vials",
   "size": {
     "x": 32,
     "y": 32
   },
   "states": [
-    {
-      "name": "lid_vial"
-    },
     {
       "name": "vial"
     },
     {
       "name": "inhand-right",
       "directions": 4
+    },
+    {
+      "name": "vial-1"
+    },
+    {
+      "name": "vial-1-1"
+    },
+    {
+      "name": "vial-1-2"
+    },
+    {
+      "name": "vial-1-3"
+    },
+    {
+      "name": "vial-1-4"
+    },
+    {
+      "name": "vial-1-5"
+    },
+    {
+      "name": "vial-1-6"
     }
   ]
 }
diff --git a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-1.png b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-1.png
new file mode 100644 (file)
index 0000000..84c9619
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-1.png differ
diff --git a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-2.png b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-2.png
new file mode 100644 (file)
index 0000000..2e47736
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-2.png differ
diff --git a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-3.png b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-3.png
new file mode 100644 (file)
index 0000000..b11c4a5
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-3.png differ
diff --git a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-4.png b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-4.png
new file mode 100644 (file)
index 0000000..c87cbf9
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-4.png differ
diff --git a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-5.png b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-5.png
new file mode 100644 (file)
index 0000000..bedbf5b
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-5.png differ
diff --git a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-6.png b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-6.png
new file mode 100644 (file)
index 0000000..ba57cf0
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1-6.png differ
diff --git a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1.png b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1.png
new file mode 100644 (file)
index 0000000..983e6b6
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial-1.png differ
index 27b92b32095fbe6c4a850d889e8c79b00988826f..983e6b67032ee2d9608323c0c41be2645f617996 100644 (file)
Binary files a/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial.png and b/Resources/Textures/Objects/Specific/Chemistry/vial.rsi/vial.png differ
index 07c91cafb5f786721d6b4f437f7daf481cb8d32b..47c69de0277f00818d08e9bf412896df02814c0a 100644 (file)
@@ -1,7 +1,7 @@
 {
   "version": 1,
   "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/cc65477c04f7403ca8a457bd5bae69a01abadbf0, encryptokey was taken from Baystation12 at https://github.com/infinitystation/Baystation12/blob/073f678cdce92edb8fcd55f9ffc9f0523bf31506/icons/obj/radio.dmi and modified by lapatison. boxwidetoy, shelltoy, swab, flare, inflatable, trashbag, magazine, holo and forensic created by potato1234x (github) for ss14 based on toys.rsi, mouth_swab.rsi, flare.rsi, inflatable_wall.rsi, trashbag.rsi, caseless_pistol_mag.rsi, guardians.rsi and bureaucracy.rsi respectively, candle and darts created by TheShuEd for ss14",
+  "copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/cc65477c04f7403ca8a457bd5bae69a01abadbf0, encryptokey was taken from Baystation12 at https://github.com/infinitystation/Baystation12/blob/073f678cdce92edb8fcd55f9ffc9f0523bf31506/icons/obj/radio.dmi and modified by lapatison. boxwidetoy, shelltoy, swab, flare, inflatable, trashbag, magazine, holo and forensic created by potato1234x (github) for ss14 based on toys.rsi, mouth_swab.rsi, flare.rsi, inflatable_wall.rsi, trashbag.rsi, caseless_pistol_mag.rsi, guardians.rsi and bureaucracy.rsi respectively, candle and darts created by TheShuEd for ss14, vials was drawn by Ubaser.",
   "size": {
     "x": 32,
     "y": 32
         },
         {
             "name": "darts"
+        },
+        {
+            "name": "vials"
         }
     ]
 }
diff --git a/Resources/Textures/Objects/Storage/boxes.rsi/vials.png b/Resources/Textures/Objects/Storage/boxes.rsi/vials.png
new file mode 100644 (file)
index 0000000..daf97dc
Binary files /dev/null and b/Resources/Textures/Objects/Storage/boxes.rsi/vials.png differ
index 8345f466584dc17872de7d01b73f8306a1da2052..3931b4f6107345275f84a8544397e9d3fd9ab613 100644 (file)
@@ -1,7 +1,7 @@
 {
   "version": 1,
   "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from baystation at https://github.com/Baystation12/Baystation12/commit/bc9fbb1722530596e3aa7522ee407280b323ad43",
+  "copyright": "Taken from baystation at https://github.com/Baystation12/Baystation12/commit/bc9fbb1722530596e3aa7522ee407280b323ad43, vials drawn by Ubaser.",
   "size": {
     "x": 32,
     "y": 32
@@ -78,6 +78,9 @@
     },
     {
       "name": "ziptie"
+    },
+    {
+      "name": "vials"
     }
   ]
 }
diff --git a/Resources/Textures/Objects/Storage/boxicons.rsi/vials.png b/Resources/Textures/Objects/Storage/boxicons.rsi/vials.png
new file mode 100644 (file)
index 0000000..07a428b
Binary files /dev/null and b/Resources/Textures/Objects/Storage/boxicons.rsi/vials.png differ