]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Solutions on thrown spears/shot arrows (#20416)
authordrteaspoon420 <87363733+drteaspoon420@users.noreply.github.com>
Sun, 24 Sep 2023 19:46:16 +0000 (22:46 +0300)
committerGitHub <noreply@github.com>
Sun, 24 Sep 2023 19:46:16 +0000 (15:46 -0400)
* Solutions on thrown spears/shot arrows

Spears inject their solution on thrown hit.
Arrows now have 5u solution storage that is injected when it hits target.

* Whoops, wrong arrow.

Instead of base arrow, I accidentally modified the 'regular arrow'

* spear and arrow solution graphics

Spears and arrows now show what they are doped with when they are on ground. (just like beakers)

12 files changed:
Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/arrows.yml
Resources/Prototypes/Entities/Objects/Weapons/Melee/spear.yml
Resources/Textures/Objects/Weapons/Guns/Projectiles/arrows.rsi/meta.json
Resources/Textures/Objects/Weapons/Guns/Projectiles/arrows.rsi/solution1.png [moved from Resources/Textures/Objects/Weapons/Guns/Projectiles/arrows.rsi/solution.png with 100% similarity]
Resources/Textures/Objects/Weapons/Melee/plasma_spear.rsi/meta.json
Resources/Textures/Objects/Weapons/Melee/plasma_spear.rsi/spear1.png [new file with mode: 0644]
Resources/Textures/Objects/Weapons/Melee/reinforced_spear.rsi/meta.json
Resources/Textures/Objects/Weapons/Melee/reinforced_spear.rsi/spear1.png [new file with mode: 0644]
Resources/Textures/Objects/Weapons/Melee/spear.rsi/meta.json
Resources/Textures/Objects/Weapons/Melee/spear.rsi/spear1.png [new file with mode: 0644]
Resources/Textures/Objects/Weapons/Melee/uranium_spear.rsi/meta.json
Resources/Textures/Objects/Weapons/Melee/uranium_spear.rsi/spear1.png [new file with mode: 0644]

index 7112d07f2f020c6bc736808d17134ed44da48c61..201e328c75bcebe4d1d6c016cd5b60ad7c50d5e5 100644 (file)
     damage:
       types:
         Piercing: 25
+  - type: SolutionContainerManager
+    solutions:
+      ammo:
+        maxVol: 5
+  - type: RefillableSolution
+    solution: ammo
+  - type: InjectableSolution
+    solution: ammo
+  - type: SolutionInjectOnCollide
+    transferAmount: 5
+    blockSlots: NONE
+  - type: SolutionTransfer
+    maxTransferAmount: 5
+  - type: Appearance
+  - type: SolutionContainerVisuals
+    maxFillLevels: 1
+    fillBaseName: solution
+
 
 - type: entity
   parent: BaseArrow
@@ -55,6 +73,9 @@
     - state: rod
       color: brown
     - state: tip
+    - state: solution1
+      map: ["enum.SolutionContainerLayers.Fill"]
+      visible: false
   - type: Projectile
     damage:
       types:
@@ -75,6 +96,9 @@
       color: darkgray
     - state: tip
       color: lightblue
+    - state: solution1
+      map: ["enum.SolutionContainerLayers.Fill"]
+      visible: false
   - type: Projectile
     damage:
       types:
index c893829beafaf1db49fedf464d6e9c5c04e0c15a..ea25cf0db884d052e73dfcd67de367248971c7e1 100644 (file)
   - type: Sharp
   - type: Sprite
     sprite: Objects/Weapons/Melee/spear.rsi
-    state: spear
+    layers:
+    - state: spear
+    - state: spear1
+      map: ["enum.SolutionContainerLayers.Fill"]
+      visible: false
   - type: MeleeWeapon
     damage:
       types:
@@ -61,6 +65,9 @@
     solution: melee
   - type: InjectableSolution
     solution: melee
+  - type: SolutionInjectOnCollide
+    transferAmount: 5
+    blockSlots: NONE
   - type: SolutionTransfer
     maxTransferAmount: 5
   - type: Wieldable
     damage:
       types:
         Blunt: 5
+  - type: Appearance
+  - type: SolutionContainerVisuals
+    maxFillLevels: 1
+    fillBaseName: spear
 
 - type: entity
   name: reinforced spear
index b8313f78101a04a9ee991a771c680f02cf325c50..f5f474b96066940d56ebd21d6b902ec888a21d28 100644 (file)
@@ -17,7 +17,7 @@
       "name": "tip"
     },
     {
-      "name": "solution"
+      "name": "solution1"
     },
     {
       "name": "inhand-left",
index 0800614b8144ea1883a50483ee75dd09f9a2cb85..383ea777d2718c0a8f7f99a1989da36257531638 100644 (file)
@@ -10,6 +10,9 @@
     {
       "name": "spear"
     },
+    {
+      "name": "spear1"
+    },
     {
       "name": "inhand-left",
       "directions": 4
diff --git a/Resources/Textures/Objects/Weapons/Melee/plasma_spear.rsi/spear1.png b/Resources/Textures/Objects/Weapons/Melee/plasma_spear.rsi/spear1.png
new file mode 100644 (file)
index 0000000..fec362a
Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Melee/plasma_spear.rsi/spear1.png differ
index 0800614b8144ea1883a50483ee75dd09f9a2cb85..383ea777d2718c0a8f7f99a1989da36257531638 100644 (file)
@@ -10,6 +10,9 @@
     {
       "name": "spear"
     },
+    {
+      "name": "spear1"
+    },
     {
       "name": "inhand-left",
       "directions": 4
diff --git a/Resources/Textures/Objects/Weapons/Melee/reinforced_spear.rsi/spear1.png b/Resources/Textures/Objects/Weapons/Melee/reinforced_spear.rsi/spear1.png
new file mode 100644 (file)
index 0000000..fec362a
Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Melee/reinforced_spear.rsi/spear1.png differ
index 777736b48665863dbbb49d32a42fa5f0c9f833cb..49209bf2dcd49281924a181fabf4d108fbc2ada2 100644 (file)
@@ -10,6 +10,9 @@
     {
       "name": "spear"
     },
+    {
+      "name": "spear1"
+    },
     {
       "name": "inhand-left",
       "directions": 4
diff --git a/Resources/Textures/Objects/Weapons/Melee/spear.rsi/spear1.png b/Resources/Textures/Objects/Weapons/Melee/spear.rsi/spear1.png
new file mode 100644 (file)
index 0000000..fec362a
Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Melee/spear.rsi/spear1.png differ
index 0800614b8144ea1883a50483ee75dd09f9a2cb85..383ea777d2718c0a8f7f99a1989da36257531638 100644 (file)
@@ -10,6 +10,9 @@
     {
       "name": "spear"
     },
+    {
+      "name": "spear1"
+    },
     {
       "name": "inhand-left",
       "directions": 4
diff --git a/Resources/Textures/Objects/Weapons/Melee/uranium_spear.rsi/spear1.png b/Resources/Textures/Objects/Weapons/Melee/uranium_spear.rsi/spear1.png
new file mode 100644 (file)
index 0000000..fec362a
Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Melee/uranium_spear.rsi/spear1.png differ