]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Proximity mine wet floor sign (#16284)
authorAlex <129697969+Lomcastar@users.noreply.github.com>
Tue, 9 May 2023 23:50:03 +0000 (02:50 +0300)
committerGitHub <noreply@github.com>
Tue, 9 May 2023 23:50:03 +0000 (09:50 +1000)
Resources/Locale/en-US/store/uplink-catalog.ftl
Resources/Prototypes/Catalog/uplink_catalog.yml
Resources/Prototypes/Entities/Objects/Specific/Janitorial/janitor.yml

index 5a298f9eaca624d44728c63e511034ba9e926368..20c7778c2c0537061aeef6abf2469c05b1ed476e 100644 (file)
@@ -169,6 +169,9 @@ uplink-hot-potato-desc = Once activated, this time bomb can't be dropped - only
 uplink-chimp-ammo-name = Box of 10 Omega Cartridges.
 uplink-chimp-ammo-desc = A box of 10 omega particle cartridges for the CHIMP. Omega particles inflict severe burns and cause anomalies to go supercritical.
 
+uplink-proximity-mine-name = Proximity Mine
+uplink-proximity-mine-desc = A mine disguised as a wet floor sign.
+
 # Armor
 uplink-chameleon-name = Chameleon Kit
 uplink-chameleon-desc = A backpack full of items that contain chameleon technology allowing you to disguise as pretty much anything on the station, and more!
index 1421ee0318aa825580982eacfa9605f22a2c8c1f..f1d60874d5e4a5a0e0940ededa881229cac69b6e 100644 (file)
       whitelist:
         - Scientist
 
+- type: listing
+  id: uplinkProximityMine
+  name: uplink-proximity-mine-name
+  description: uplink-proximity-mine-desc
+  productEntity: WetFloorSignMineExplosive
+  cost:
+    Telecrystal: 4
+  categories:
+  - UplinkJob
+  conditions:
+  - !type:BuyerJobCondition
+    whitelist:
+    - Janitor
+
 # Armor
 
 - type: listing
index 0fe1fe40eae50045ea54f0ac778fa8f5cce2b0df..0c0da46a7b3992aa1cb2f25a4cd389fa58e14d89 100644 (file)
     tags:
       - WetFloorSign
 
+
+- type: entity
+  name: wet floor sign
+  suffix: Explosive
+  description: Caution! Wet Floor!
+  parent: BaseItem
+  id: WetFloorSignMineExplosive
+  components:
+  - type: Sprite
+    sprite: Objects/Specific/Janitorial/wet_floor_sign.rsi
+    state: caution
+  - type: Item
+    sprite: Objects/Specific/Janitorial/wet_floor_sign.rsi
+    size: 15
+  - type: StepTrigger
+    intersectRatio: 0.2
+    requiredTriggeredSpeed: 0
+  - type: CollisionWake
+    enabled: false
+  - type: Physics
+    bodyType: Dynamic
+  - type: Fixtures
+    fixtures:
+      slips:
+        shape:
+          !type:PhysShapeAabb
+          bounds: "-0.2,-0.2,0.2,0.2"
+        hard: false
+        layer:
+          - LowImpassable
+      fix1:
+        shape:
+          !type:PhysShapeAabb
+          bounds: "-0.2,-0.2,0.2,0.2"
+        density: 30
+        mask:
+        - ItemMask
+  - type: LandMine
+  - type: ExplodeOnTrigger
+  - type: Explosive
+    explosionType: Default
+    maxIntensity: 5 # about a ~67.5 total damage
+    totalIntensity: 60 # about a ~3 tile radius
+    canCreateVacuum: false
+  - type: DeleteOnTrigger
+
 - type: entity
   name: janitorial trolley
   id: JanitorialTrolley