]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
add Fresium, a chillingly complex chemical to prank your friends with (#22527)
authorCrigCrag <137215465+CrigCrag@users.noreply.github.com>
Thu, 21 Dec 2023 05:35:22 +0000 (00:35 -0500)
committerGitHub <noreply@github.com>
Thu, 21 Dec 2023 05:35:22 +0000 (22:35 -0700)
* everything

* tweakeroo

* maintspill

* some balancing and tweaking

* adds ice tags and gives it to ice crust

* fix code because im smart im the smart guy yeah that's me

* yeah

* oops

* do you wanna try that again

* conserve matter

* im rather smart

Resources/Locale/en-US/reagents/fresium.ftl [new file with mode: 0644]
Resources/Locale/en-US/reagents/meta/fun.ftl
Resources/Prototypes/Entities/Objects/Misc/ice_crust.yml
Resources/Prototypes/Entities/Objects/Specific/Medical/randompill.yml
Resources/Prototypes/Reagents/fun.yml
Resources/Prototypes/Reagents/medicine.yml
Resources/Prototypes/Recipes/Reactions/fun.yml
Resources/Prototypes/tags.yml

diff --git a/Resources/Locale/en-US/reagents/fresium.ftl b/Resources/Locale/en-US/reagents/fresium.ftl
new file mode 100644 (file)
index 0000000..f73865d
--- /dev/null
@@ -0,0 +1,3 @@
+fresium-effect-freeze-insides = You feel your insides freezing up!
+fresium-effect-frozen = Your legs have completely frozen up!
+fresium-effect-slow = Your legs buckle and struggle to move!
index c52960ee4a0ea8e468a5553e78560c07e518d950..510d9d084aa643db49285f31169a70cdc5ff3ded 100644 (file)
@@ -18,3 +18,6 @@ reagent-desc-licoxide = A synthetic battery acid. It looks... electrifying.
 
 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.
+
+reagent-name-fresium = Fresium
+reagent-desc-fresium = A mysterious compound that slows the vibration of atoms and molecules... somehow. In layman's terms, it makes things cold... REALLY cold. Can cause long-lasting movement issues if ingested.
index 2f8da6dadac2c7aee2670a83af2677ebba1bf91d..ad1f8766751c1aea3eb8984bc30094815ccef8f3 100644 (file)
@@ -21,6 +21,8 @@
     - type: Clickable
     - type: Transform
       anchored: true
+    - type: Tag
+      tags: [ Ice ]
     - type: Physics
     - type: Fixtures
       fixtures:
index ccb4f6ca4e6987bbf06041f9f086363f3fd29f18..48571da927d7d5521a7659d3164a013b2605b846 100644 (file)
@@ -37,6 +37,7 @@
     - Pax
     - Tricordrazine
     - SodiumPolyacrylate
+    - Fresium
   - quantity: 20
     weight: 5
     reagents:
index fe6a5f6f81a4d6434be28aef0b14dca290fa5e6f..d22e2213ace7c6c71a782592a4736e390aa44d1f 100644 (file)
       - !type:Emote
         emote: Scream
         probability: 0.3
+
+- type: reagent
+  id: Fresium
+  name: reagent-name-fresium
+  group: Toxins
+  slippery: true
+  desc: reagent-desc-fresium
+  physicalDesc: reagent-physical-desc-frosty
+  flavor: cold
+  color: "#b3f1ff"
+  boilingPoint: 50.0
+  meltingPoint: 45.0
+  tileReactions:
+  - !type:CreateEntityTileReaction
+    entity: IceCrust
+    maxOnTileWhitelist:
+      tags: [ Ice ]
+  - !type:ExtinguishTileReaction { } 
+  reactiveEffects:
+    Acidic:
+      methods: [ Touch ]
+      effects:
+      - !type:HealthChange
+        scaleByQuantity: true 
+        ignoreResistances: false
+        damage:
+          types:
+            Cold: 0.05
+      - !type:AdjustTemperature
+        conditions:
+        - !type:Temperature
+          min: 160.15 
+        amount: -30000
+    Extinguish:
+      methods: [ Touch ]
+      effects:
+      - !type:ExtinguishReaction # cold
+  metabolisms:
+    Poison:
+      metabolismRate : 0.45
+      effects:
+      - !type:HealthChange
+        damage:
+          types:
+             Cold: 0.01 # slightly nips directly, other cold damage comes from the temp change
+             Burn: -3 # ghetto burn chem. i don't think anyone would use this intentionally but it's funny
+      - !type:PopupMessage
+        conditions:
+        - !type:ReagentThreshold
+          reagent: Fresium
+          max: 35
+        type: Local
+        visualType: LargeCaution
+        messages: [ "fresium-effect-freeze-insides"]
+        probability: 0.05
+      - !type:PopupMessage
+        conditions:
+        - !type:ReagentThreshold
+          reagent: Fresium
+          max: 35
+        type: Local
+        visualType: LargeCaution
+        messages: [ "fresium-effect-slow"]
+        probability: 0.2
+      - !type:AdjustTemperature
+        conditions:
+        - !type:Temperature
+          min: 160.15 # not quite enough for cryo, but can speed it up if you wanna take the risk
+        amount: -10000
+      - !type:MovespeedModifier
+        conditions:
+        - !type:ReagentThreshold
+          reagent: Fresium
+          max: 40 # slows when less than 40
+        walkSpeedModifier: 0.6
+        sprintSpeedModifier: 0.6
+      - !type:MovespeedModifier
+        conditions:
+        - !type:ReagentThreshold
+          reagent: Fresium
+          min: 40 # your legs stop working when above 40
+        walkSpeedModifier: 0.00
+        sprintSpeedModifier: 0.00
+      - !type:PopupMessage
+        conditions:
+        - !type:ReagentThreshold
+          reagent: Fresium
+          min: 40
+        type: Local
+        visualType: LargeCaution
+        messages: [ "fresium-effect-frozen"]
+        probability: 0.4
+
index 6c294d556ad95eb10f6bb2b7ff399dff4225510b..b9d2d3e28e5243c7bdd95555627460bf1102ce19 100644 (file)
         visualType: Medium
         messages: [ "leporazine-effect-temperature-adjusting" ]
         probability: 0.2
+      - !type:AdjustReagent
+        reagent: Fresium
+        amount: -5
 
 - type: reagent
   id: Barozine
index 594518514e7fc47f4e762c4fa65d3fe3b431306f..35ec50059091605c0878b3ad200e6156b2920903 100644 (file)
     - !type:CreateEntityReactionEffect
       entity: SheetPlastic1
 
+- type: reaction
+  id: FlashFreezeIce
+  quantized: true
+  reactants:
+    Fresium:
+      amount: 1
+    Water:
+      amount: 1
+  effects:
+  - !type:CreateGas
+    gas: Frezon
+  products:
+    Ice: 5
+
+- type: reaction
+  id: Fresium
+  priority: 20
+  maxTemp: 300
+  reactants:
+    Frezon:
+      amount: 3
+    Plasma:
+      amount: 1
+      catalyst: true
+    Nitrogen:
+      amount: 2
+    Cryoxadone:
+      amount: 0.22
+    TableSalt:
+      amount: 0.08
+    Water:
+      amount: 1.5
+  effects:
+  - !type:CreateGas
+    gas: Nitrogen
+  products:
+    Fresium: 5
+
 - type: reaction
   id: FiberBreakdown
   requiredMixerCategories:
   products:
     Carbon: 3
     Sugar: 2
+
index 4a2843bf24d37c0f9ed9c7407afa3f73067a5cc6..0a5044b84849a817ce1cc27c0d8c8fb18d0dac5f 100644 (file)
 - type: Tag
   id: Hotsauce
 
+- type: Tag
+  id: Ice
+
 - type: Tag
   id: Igniter