]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Mining rebalance + seismic charges (#23757)
authorEmisse <99158783+Emisse@users.noreply.github.com>
Tue, 9 Jan 2024 05:27:00 +0000 (22:27 -0700)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2024 05:27:00 +0000 (16:27 +1100)
* push

* PUSH

* reuse cryo explosion

* minus loud

* ore band + pka

* idk dawg

14 files changed:
Resources/Prototypes/Catalog/Fills/Lockers/cargo.yml
Resources/Prototypes/Catalog/VendingMachines/Inventories/salvage.yml
Resources/Prototypes/Damage/modifier_sets.yml
Resources/Prototypes/Entities/Objects/Weapons/Bombs/plastic.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml
Resources/Prototypes/Entities/Objects/Weapons/Melee/mining.yml
Resources/Prototypes/Entities/Objects/Weapons/Melee/pickaxe.yml
Resources/Prototypes/Entities/Structures/Walls/asteroid.yml
Resources/Prototypes/ore.yml
Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/inhand-left.png [new file with mode: 0644]
Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/inhand-right.png [new file with mode: 0644]
Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/primed.png [new file with mode: 0644]

index 293e746112afb5f851d5ca05b03d96cc0eec195a..d2b9fa1b8d179bdf74258e47ddae80e980a2f86c 100644 (file)
       - id: NitrogenTankFilled
       - id: ClothingShoesBootsMag
       - id: ClothingMaskGasExplorer
-# Currently do not function as 'true' mesons, so they're useless for salvagers.
-#      - id: ClothingEyesGlassesMeson
       - id: ClothingBeltUtilityFilled
       - id: SurvivalKnife
       - id: HandheldGPSBasic
       - id: RadioHandheld
+      - id: SeismicCharge
+        amount: 2
       - id: OreBag
         prob: 0.5
       - id: Flare
@@ -38,6 +38,8 @@
       - id: SurvivalKnife
       - id: HandheldGPSBasic
       - id: RadioHandheld
+      - id: SeismicCharge
+        amount: 2
       - id: OreBag
         prob: 0.5
       - id: Flare
index 1d2e22bb8875b296112b94eef441f3381ea33420..b5665df37ba44549c5f4dab11f140f21f6a4f56a 100644 (file)
@@ -9,6 +9,7 @@
     Floodlight: 2
     HandheldGPSBasic: 2
     RadioHandheld: 2
-    WeaponProtoKineticAccelerator: 3
+    WeaponProtoKineticAccelerator: 4
+    SeismicCharge: 2
     FultonBeacon: 1
     Fulton: 2
index 92ba63d4eb022ffc8e36a689703fd9be8a422e9b..8b63604b227c3371bfbeeac2575eba9e73050fde 100644 (file)
 - type: damageModifierSet
   id: StructuralMetallicStrong
   coefficients:
+    Blunt: 0.5
+    Slash: 0.5
+    Piercing: 0.5
     Shock: 1.2
-    Structural: 0.5
+    Structural: 0.25
   flatReductions:
-    Blunt: 20
-    Slash: 20
-    Piercing: 20
-    Heat: 20
-    Structural: 15
+    Blunt: 10
+    Slash: 10
+    Piercing: 10
+    Heat: 10
+    Structural: 10
 
 - type: damageModifierSet
   id: StructuralMetallic
   coefficients:
     Shock: 1.2
+    Heat: 1.2
     Structural: 0.5
   flatReductions:
     Blunt: 10
     Heat: 10
     Structural: 10
 
+- type: damageModifierSet
+  id: Rock
+  coefficients:
+    Structural: 4
+    Blunt: 0.5
+    Slash: 0.25
+    Piercing: 0.75
+    Heat: 0.9
+  flatReductions:
+    Blunt: 5
+
 - type: damageModifierSet
   id: PerforatedMetallic
   coefficients:
@@ -63,9 +78,9 @@
     Piercing: 0.7
     Shock: 1.2
   flatReductions:
-    Blunt: 14
-    Slash: 15
-    Piercing: 15
+    Blunt: 10
+    Slash: 10
+    Piercing: 10
     Shock: 10
     Heat: 10
 
index ac675f6cd281226e75c3099187df11cc47a895b7..8f79ea657760bcf8724aa59d82b555158659ddac 100644 (file)
@@ -1,7 +1,44 @@
 - type: entity
+  id: BasePlasticExplosive
+  parent: BaseItem
+  abstract: true
+  components:
+  - type: Item
+    size: Small
+  - type: Sticky
+    stickDelay: 5
+    unstickDelay: 5
+    stickPopupStart: comp-sticky-start-stick-bomb
+    stickPopupSuccess: comp-sticky-success-stick-bomb
+    unstickPopupStart: comp-sticky-start-unstick-bomb
+    unstickPopupSuccess: comp-sticky-success-unstick-bomb
+    blacklist: # can't stick it to other items
+      components:
+      - Item
+  - type: Damageable
+    damageContainer: Inorganic
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 50
+      behaviors:
+      - !type:DoActsBehavior
+        acts: ["Destruction"]
+      - !type:ExplodeBehavior
+  - type: StickyVisualizer
+  - type: Appearance
+  - type: GenericVisualizer
+    visuals:
+      enum.Trigger.TriggerVisuals.VisualState:
+        base:
+          Primed: { state: primed }
+          Unprimed: { state: complete }
+
+- type: entity
   name: composition C-4
   description: Used to put holes in specific areas without too much extra hole. A saboteur's favorite.
-  parent: BaseItem
+  parent: BasePlasticExplosive
   id: C4
   components:
   - type: Sprite
@@ -10,8 +47,6 @@
     layers:
     - state: icon
       map: ["base"]
-  - type: Item
-    size: Small
   - type: OnUseTimerTrigger
     delay: 10
     delayOptions: [10, 30, 60, 120, 300]
   - type: DeviceLinkSink
     ports:
       - Trigger
-  - type: Sticky
-    stickDelay: 5
-    unstickDelay: 5
-    stickPopupStart: comp-sticky-start-stick-bomb
-    stickPopupSuccess: comp-sticky-success-stick-bomb
-    unstickPopupStart: comp-sticky-start-unstick-bomb
-    unstickPopupSuccess: comp-sticky-success-unstick-bomb
-    blacklist: # can't stick it to other items
-      components:
-        - Item
   - type: Explosive # Powerful explosion in a very small radius. Doesn't break underplating.
     explosionType: DemolitionCharge
     totalIntensity: 60
     maxIntensity: 30
     canCreateVacuum: false
   - type: ExplodeOnTrigger
-  - type: Damageable
-    damageContainer: Inorganic
-  - type: Destructible
-    thresholds:
-      - trigger:
-          !type:DamageTrigger
-          damage: 50
-        behaviors:
-          - !type:DoActsBehavior
-            acts: ["Destruction"]
-          - !type:ExplodeBehavior
-  - type: StickyVisualizer
-  - type: Appearance
   - type: HolidayVisuals
     holidays:
       festive:
   - type: HolidayRsiSwap
     sprite:
       festive: Objects/Weapons/Bombs/c4gift.rsi
-  - type: GenericVisualizer
-    visuals:
-      enum.Trigger.TriggerVisuals.VisualState:
-        base:
-          Primed: { state: primed }
-          Unprimed: { state: complete }
+
+- type: entity
+  name: seismic charge
+  description: Concussion based explosive designed to destroy large amounts of rock.
+  parent: BasePlasticExplosive
+  id: SeismicCharge
+  components:
+  - type: Sprite
+    sprite: Objects/Weapons/Bombs/seismic.rsi
+    state: icon
+    layers:
+    - state: icon
+      map: ["base"]
+  - type: OnUseTimerTrigger
+    delay: 5
+    delayOptions: [5, 10, 15, 20]
+    initialBeepDelay: 0
+    beepSound:
+      path: /Audio/Effects/Cargo/buzz_two.ogg
+      params:
+        volume: -3
+    startOnStick: false
+    canToggleStartOnStick: true
+  - type: TriggerOnSignal
+  - type: DeviceLinkSink
+    ports:
+    - Trigger
+  - type: Explosive
+    explosionType: Cryo
+    totalIntensity: 120
+    intensitySlope: 2
+    maxIntensity: 30
+    canCreateVacuum: false
+  - type: ExplodeOnTrigger
index 998ec721839278ad322be96351e26fe31aea7d70..b8efdadb104ae60917d01d016c885354ef439c0f 100644 (file)
     layers:
     - state: chronobolt
       shader: unshaded
-  - type: GatheringProjectile
   - type: Projectile
     impactEffect: BulletImpactEffectKinetic
     damage:
       types:
         Blunt: 25
+        Structural: 30
   # Short lifespan
   - type: TimedDespawn
     lifetime: 0.4
index 33ff95bf3a6708bef6837e4c9191d3280f4ee78a..6e8891cd4edd633712a088bdf38c732a963bada6 100644 (file)
     wideAnimationRotation: -135
     damage:
       types:
-        Blunt: 8
-        Slash: 2
+        Blunt: 10
+        Slash: 5
   - type: Wieldable
   - type: IncreaseDamageOnWield
     damage:
       types:
         Blunt: 2.5
         Slash: 2.5
-        Structural: 10
+        Structural: 30
   - type: GunRequiresWield
   - type: Item
     size: Ginormous
@@ -78,7 +78,7 @@
     attackRate: 1.5
     damage:
       types:
-        Slash: 12
+        Slash: 15
   - type: Tag
     tags:
     - Knife
@@ -97,7 +97,7 @@
   - type: LeechOnMarker
     leech:
       groups:
-        Brute: -15
+        Brute: -30
   - type: MeleeWeapon
     attackRate: 1.25
   - type: Tag
index 4368f162a2f3db46e07cf6b00afc51b1bac10987..b252d286d10d1f1947cfbc8a8494517b37104426 100644 (file)
     sprite: Objects/Weapons/Melee/pickaxe.rsi
     state: pickaxe
   - type: MeleeWeapon
+    attackRate: 0.7
     wideAnimationRotation: -135
+    soundHit:
+      path: "/Audio/Weapons/smash.ogg"
+      params:
+        volume: -3
     damage:
       groups:
         Brute: 5
@@ -21,7 +26,7 @@
       groups:
         Brute: 10
       types:
-        Structural: 25
+        Structural: 30
   - type: Item
     size: Normal
     shape:
     sprite: Objects/Tools/handdrill.rsi
     state: handdrill
   - type: MeleeWeapon
-    attackRate: 1.5
+    wideAnimationRotation: -90
+    soundHit:
+      path: "/Audio/Items/drill_hit.ogg"
+    attackRate: 3.5
     damage:
       groups:
-        Brute: 10
+        Brute: 3
       types:
-        Structural: 20
+        Structural: 12
index 36f3d14c9eb9cff2f1c97c265b95895ff76f2b20..01b866e3472dda5fbcae20169143457c6f05fc57 100644 (file)
   components:
   - type: PlacementReplacement
     key: walls
-  - type: SoundOnGather
-  - type: Gatherable
-    whitelist:
-      tags:
-        - Pickaxe
   - type: IconSmooth
     key: walls
     mode: NoSprite
         state: rock_asteroid_west
   - type: Damageable
     damageContainer: StructuralInorganic
-    damageModifierSet: Metallic
+    damageModifierSet: Rock
   - type: Destructible
     thresholds:
     - trigger:
         !type:DamageTrigger
-        damage: 150
+        damage: 120
       behaviors:
       - !type:DoActsBehavior
         acts: ["Destruction"]
+      - !type:PlaySoundBehavior
+        sound:
+          path: /Audio/Effects/break_stone.ogg
+          params:
+            volume: -6
   - type: Occluder
   - type: Airtight
   - type: Fixtures
index 19a1c4f765294ea7a77da6edbddf4be475b1688e..c7e69966d4cc39cce96d1bd2b680a716f68707f4 100644 (file)
@@ -9,36 +9,52 @@
 - type: ore
   id: OreSteel
   oreEntity: SteelOre1
+  minOreYield: 1
+  maxOreYield: 5
 
 - type: ore
   id: OreSpaceQuartz
   oreEntity: SpaceQuartz1
+  minOreYield: 1
+  maxOreYield: 5
 
 - type: ore
   id: OreCoal
   oreEntity: Coal1
+  minOreYield: 1
+  maxOreYield: 5
 
 # Medium yields
 - type: ore
   id: OreGold
   oreEntity: GoldOre1
+  minOreYield: 1
+  maxOreYield: 3
 
 - type: ore
   id: OreSilver
   oreEntity: SilverOre1
+  minOreYield: 1
+  maxOreYield: 3
 
 # Low yields
 - type: ore
   id: OrePlasma
   oreEntity: PlasmaOre1
+  minOreYield: 1
+  maxOreYield: 2
 
 - type: ore
   id: OreUranium
   oreEntity: UraniumOre1
+  minOreYield: 1
+  maxOreYield: 2
 
 - type: ore
   id: OreBananium
   oreEntity: BananiumOre1
+  minOreYield: 1
+  maxOreYield: 3
 
 - type: ore
   id: OreQuartzCrab
diff --git a/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/icon.png b/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/icon.png
new file mode 100644 (file)
index 0000000..b00f52d
Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/icon.png differ
diff --git a/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/inhand-left.png b/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/inhand-left.png
new file mode 100644 (file)
index 0000000..12e980c
Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/inhand-left.png differ
diff --git a/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/inhand-right.png b/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/inhand-right.png
new file mode 100644 (file)
index 0000000..ff1482c
Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/inhand-right.png differ
diff --git a/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/meta.json b/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/meta.json
new file mode 100644 (file)
index 0000000..d920564
--- /dev/null
@@ -0,0 +1,31 @@
+{
+    "version": 1,
+    "license": "CC-BY-SA-3.0",
+    "copyright": "made by Emisse for ss14",
+    "size": {
+        "x": 32,
+        "y": 32
+    },
+    "states": [
+        {
+            "name": "icon"
+        },
+        {
+            "name": "primed",
+            "delays": [
+                [
+                    0.1,
+                    0.1
+                ]
+            ]
+        },
+        {
+            "name": "inhand-left",
+            "directions": 4
+        },
+        {
+            "name": "inhand-right",
+            "directions": 4
+        }
+    ]
+}
diff --git a/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/primed.png b/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/primed.png
new file mode 100644 (file)
index 0000000..f14e2c8
Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Bombs/seismic.rsi/primed.png differ