]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add electrolysis/centrifuge breakdown recipes (#22571)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Sat, 16 Dec 2023 08:26:11 +0000 (03:26 -0500)
committerGitHub <noreply@github.com>
Sat, 16 Dec 2023 08:26:11 +0000 (01:26 -0700)
* first pass

* chemical breakdowns !!!!

* mintemp salt because why not

* we don't really need this, no?

* if at first we don't succeed...

* ...then run debug tests again

Content.Shared/Chemistry/EntitySystems/SharedSolutionContainerMixerSystem.cs
Resources/Locale/en-US/reagents/meta/chemicals.ftl
Resources/Locale/en-US/reagents/meta/fun.ftl
Resources/Prototypes/Recipes/Reactions/biological.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Reactions/chemicals.yml
Resources/Prototypes/Recipes/Reactions/drinks.yml
Resources/Prototypes/Recipes/Reactions/food.yml
Resources/Prototypes/Recipes/Reactions/fun.yml
Resources/Prototypes/Recipes/Reactions/gas.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Reactions/medicine.yml
Resources/Prototypes/Recipes/Reactions/pyrotechnic.yml

index ab924256089769d8b903e3fbb18d4a64048911d1..14c4560dd8ded5f6de5e01dff23693926d97365d 100644 (file)
@@ -18,7 +18,6 @@ public abstract class SharedSolutionContainerMixerSystem : EntitySystem
     [Dependency] private readonly INetManager _net = default!;
     [Dependency] private readonly SharedAppearanceSystem _appearance = default!;
     [Dependency] private readonly SharedAudioSystem _audio = default!;
-    [Dependency] private readonly ChemicalReactionSystem _chemicalReaction = default!;
     [Dependency] private readonly SharedContainerSystem _container = default!;
     [Dependency] private readonly SharedPopupSystem _popup = default!;
     [Dependency] private readonly SolutionContainerSystem _solution = default!;
@@ -102,7 +101,7 @@ public abstract class SharedSolutionContainerMixerSystem : EntitySystem
             if (!_solution.TryGetFitsInDispenser(ent, out var solution))
                 continue;
 
-            _chemicalReaction.FullyReactSolution(solution, ent, solution.MaxVolume, reactionMixer);
+            _solution.UpdateChemicals(ent, solution, true, reactionMixer);
         }
     }
 
index 827d0fd6d5e73a681d564de4723c9f3570d39357..17866c7641d76f8ce9f031df19ad5f49c5d5ee0a 100644 (file)
@@ -4,14 +4,14 @@ reagent-desc-acetone = A slick, slightly carcinogenic liquid. Has a multitude of
 reagent-name-phenol = phenol
 reagent-desc-phenol = An aromatic ring of carbon with a hydroxyl group. A useful precursor to some medicines, but has no healing properties on its own.
 
-reagent-name-sodium-carbonate = Sodium Carbonate
+reagent-name-sodium-carbonate = sodium carbonate
 reagent-desc-sodium-carbonate = A white, odorless, water-soluble salt that yields an alkaline solution in water.  Also known as soda ash.
 
 reagent-name-artifexium = artifexium
 reagent-desc-artifexium = A lavender mixture of microscopic artifact fragments and a strong acid. It has the ability to activate artifacts.
 
-reagent-name-sodium-polyacrylate = Sodium Polyacrylate
+reagent-name-sodium-polyacrylate = sodium polyacrylate
 reagent-desc-sodium-polyacrylate = A super-absorbent polymer with assorted industrial uses.
 
 reagent-name-cellulose = cellulose fibers
-reagent-desc-cellulose = A crystaline polydextrose polymer, plants swear by this stuff.
\ No newline at end of file
+reagent-desc-cellulose = A crystaline polydextrose polymer, plants swear by this stuff.
index 83f99deceb82dbfee7634dd4e4b88196fbc76816..c52960ee4a0ea8e468a5553e78560c07e518d950 100644 (file)
@@ -4,17 +4,17 @@ reagent-desc-carpetium = A mystical chemical, usually outsourced from the Clown
 reagent-name-fiber = fiber
 reagent-desc-fiber = A raw material, usually extracted from wool or other fabric products.
 
-reagent-name-buzzochloric-bees = Buzzochloric Bees
+reagent-name-buzzochloric-bees = buzzochloric bees
 reagent-desc-buzzochloric-bees = Liquid bees. Oh god it's LIQUID BEES NO-
 
-reagent-name-ground-bee = Ground Bee
+reagent-name-ground-bee = ground Bee
 reagent-desc-ground-bee = Bee grounds. Gross.
 
-reagent-name-saxoite = Saxoite
+reagent-name-saxoite = saxoite
 reagent-desc-saxoite = Smells like jazz.
 
-reagent-name-licoxide = Licoxide
+reagent-name-licoxide = licoxide
 reagent-desc-licoxide = A synthetic battery acid. It looks... electrifying.
 
-reagent-name-razorium = Razorium
+reagent-name-razorium = razorium
 reagent-desc-razorium = A strange, non-newtonian chemical. It is produced when two conflicting brute medications are combined. When force is applied to it, it temporarily hardens creating millions of tiny, sharp edges. Very painful.
diff --git a/Resources/Prototypes/Recipes/Reactions/biological.yml b/Resources/Prototypes/Recipes/Reactions/biological.yml
new file mode 100644 (file)
index 0000000..b126a23
--- /dev/null
@@ -0,0 +1,50 @@
+- type: reaction
+  id: BloodBreakdown
+  requiredMixerCategories:
+  - Centrifuge
+  reactants:
+    Blood:
+      amount: 20
+  products:
+    Water: 11
+    Iron: 0.5
+    Sugar: 2
+    CarbonDioxide: 3
+    Protein: 4
+
+- type: reaction
+  id: SlimeBloodBreakdown
+  requiredMixerCategories:
+  - Centrifuge
+  reactants:
+    Slime:
+      amount: 5
+  products:
+    Water: 4
+    Nitrogen: 1
+
+- type: reaction
+  id: CopperBloodBreakdown
+  requiredMixerCategories:
+  - Centrifuge
+  reactants:
+    CopperBlood:
+      amount: 20
+  products:
+    Water: 11
+    Copper: 0.5
+    Sugar: 2
+    CarbonDioxide: 3
+    Protein: 4
+
+- type: reaction
+  id: ZombieBloodBreakdown
+  requiredMixerCategories:
+  - Centrifuge
+  reactants:
+    ZombieBlood:
+      amount: 4
+  products:
+    Mold: 2
+    Protein: 1
+    Toxin: 1
index ffd445a99cadf3fb67255b7bfa07c357ced80489..38dc4ff056782b3ae88427a2d5b0981efaaca31f 100644 (file)
@@ -8,6 +8,17 @@
   products:
     Ammonia: 4
 
+- type: reaction
+  id: CelluloseBreakdown
+  requiredMixerCategories:
+  - Electrolysis
+  reactants:
+    Cellulose:
+      amount: 3
+  products:
+    Sugar: 2
+    Carbon: 1
+
 - type: reaction
   id: Diethylamine
   reactants:
@@ -20,6 +31,8 @@
 
 - type: reaction
   id: Phenol
+  minTemp: 325
+  maxTemp: 480
   reactants:
     Oxygen:
       amount: 1
 
 - type: reaction
   id: TableSalt
+  minTemp: 370
   reactants:
     Chlorine:
       amount: 1
   products:
     TableSalt: 2
 
+- type: reaction
+  id: TableSaltBreakdown
+  requiredMixerCategories:
+  - Electrolysis
+  reactants:
+    TableSalt:
+      amount: 2
+  products:
+    Chlorine: 1
+    Sodium: 1
+
 - type: reaction
   id: Thermite
   impact: Medium
index 6226fb1816c0c19d17551f1d82dec041411ae113..0ad06616230d2f001b40579f6e326f57b273300f 100644 (file)
   products:
     ErikaSurprise: 6
 
+- type: reaction
+  id: EthanolBreakdown
+  requiredMixerCategories:
+  - Electrolysis
+  reactants:
+    Ethanol:
+      amount: 9
+  products:
+    Hydrogen: 6
+    Carbon: 2
+    Oxygen: 1
+
 - type: reaction
   id: FourteenLoko
   reactants:
   products:
     TheMartinez: 6
 
+- type: reaction
+  id: WaterBreakdown
+  requiredMixerCategories:
+  - Electrolysis
+  reactants:
+    Water:
+      amount: 3
+  products:
+    Hydrogen: 2
+    Oxygen: 1
+
 - type: reaction
   id: WhiteGilgamesh
   reactants:
index 715148062818cdece7b7c74a4b480ae51fed4a5b..97b5549c20aab20bd115c697e828a7ff935de4e7 100644 (file)
   products:
     Vinaigrette: 3
 
+- type: reaction
+  id: BananaBreakdown
+  requiredMixerCategories:
+  - Centrifuge
+  reactants:
+    JuiceBanana:
+      amount: 10
+  products:
+    Sugar: 9
+    Potassium: 1
+
+- type: reaction
+  id: SugarBreakdown
+  minTemp: 520
+  reactants:
+    Sugar:
+      amount: 4
+  products:
+    Carbon: 1
+    Oxygen: 1
+    Hydrogen: 2
+
index 0f139c00487887ae924560f6a99ef12092636c98..eb895a31f2b9b75a056c57a0c357b7de94ceb36d 100644 (file)
   effects:
     - !type:CreateEntityReactionEffect
       entity: SheetPlastic1
+
+- type: reaction
+  id: FiberBreakdown
+  requiredMixerCategories:
+  - Centrifuge
+  reactants:
+    Fiber:
+      amount: 5
+    Water:
+      amount: 10
+      catalyst: true
+  products:
+    Carbon: 3
+    Sugar: 2
diff --git a/Resources/Prototypes/Recipes/Reactions/gas.yml b/Resources/Prototypes/Recipes/Reactions/gas.yml
new file mode 100644 (file)
index 0000000..9cc6db1
--- /dev/null
@@ -0,0 +1,21 @@
+- type: reaction
+  id: CarbonDioxideBreakdown
+  requiredMixerCategories:
+  - Electrolysis
+  reactants:
+    CarbonDioxide:
+      amount: 3
+  products:
+    Carbon: 1
+    Oxygen: 2
+
+- type: reaction
+  id: NitrousOxideBreakdown
+  requiredMixerCategories:
+  - Electrolysis
+  reactants:
+    NitrousOxide:
+      amount: 3
+  products:
+    Nitrogen: 2
+    Oxygen: 1
index 11a641cbef27b804fea8b97c617b2e4ae8378fbf..ff53c051153f59372e889f20490c0af872419e2a 100644 (file)
     Puncturase:
       amount: 1
   products:
-    Razorium: 1
\ No newline at end of file
+    Razorium: 1
index 615e38bf09050472c2c1149370ef184d281e88d2..b0f71b4c688e4d8ae72d051e8b842679e9ae8098 100644 (file)
       amount: 1
   products:
     Ash: 1
+
+- type: reaction
+  id: WeldingFuelBreakdown
+  requiredMixerCategories:
+  - Centrifuge
+  reactants:
+    WeldingFuel:
+      amount: 10
+  products:
+    Ethanol: 5
+    Hydrogen: 3
+    Sulfur: 2