]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Added a regular and an engraved zippo (flippo) lighter (#23020)
authorDarkie <darksaiyanis@gmail.com>
Wed, 27 Dec 2023 22:47:35 +0000 (00:47 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Dec 2023 22:47:35 +0000 (15:47 -0700)
* Added the zippo and engraved zippo. Added the engraved zippo in the detective's coat.

* Added copyright.

* Renamed to Flippo

* Gave the Flippo new sounds. Moved the lighter sound collections to their own folder in Items.

* Fixed YAML issues that showed up with moving the lighter noises to their own folder.

* Added the detective's Flippo as a thief objective, with half the weight of the forensic scanner.

23 files changed:
Content.Server/Morgue/Components/CrematoriumComponent.cs
Resources/Audio/Items/Lighters/attributions.yml [new file with mode: 0644]
Resources/Audio/Items/Lighters/lighter1.ogg [moved from Resources/Audio/Items/lighter1.ogg with 100% similarity]
Resources/Audio/Items/Lighters/lighter2.ogg [moved from Resources/Audio/Items/lighter2.ogg with 100% similarity]
Resources/Audio/Items/Lighters/lighter3.ogg [moved from Resources/Audio/Items/lighter3.ogg with 100% similarity]
Resources/Audio/Items/Lighters/lighter_off.ogg [moved from Resources/Audio/Items/lighter_off.ogg with 100% similarity]
Resources/Audio/Items/Lighters/zippo_close.ogg [new file with mode: 0644]
Resources/Audio/Items/Lighters/zippo_open.ogg [new file with mode: 0644]
Resources/Prototypes/Entities/Clothing/OuterClothing/coats.yml
Resources/Prototypes/Entities/Mobs/NPCs/living_light.yml
Resources/Prototypes/Entities/Objects/Tools/lighters.yml
Resources/Prototypes/Objectives/objectiveGroups.yml
Resources/Prototypes/Objectives/stealTargetGroups.yml
Resources/Prototypes/Objectives/thief.yml
Resources/Prototypes/SoundCollections/lighter_sounds.yml
Resources/Prototypes/SoundCollections/tools.yml
Resources/Textures/Objects/Tools/lighters.rsi/meta.json
Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-left-flame.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-left.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-right-flame.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-right.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/lighters.rsi/zippo_engraved_icon_base.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/lighters.rsi/zippo_engraved_open.png [new file with mode: 0644]

index f00a21b75581733dbe4b08477d0c34b5c4257c32..7e660479bfcf25e000f6e17c7c363f01bef24035 100644 (file)
@@ -12,7 +12,7 @@ public sealed partial class CrematoriumComponent : Component
     public int CookTime = 5;
 
     [DataField("cremateStartSound")]
-    public SoundSpecifier CremateStartSound = new SoundPathSpecifier("/Audio/Items/lighter1.ogg");
+    public SoundSpecifier CremateStartSound = new SoundPathSpecifier("/Audio/Items/Lighters/lighter1.ogg");
 
     [DataField("crematingSound")]
     public SoundSpecifier CrematingSound = new SoundPathSpecifier("/Audio/Effects/burning.ogg");
diff --git a/Resources/Audio/Items/Lighters/attributions.yml b/Resources/Audio/Items/Lighters/attributions.yml
new file mode 100644 (file)
index 0000000..c42ac41
--- /dev/null
@@ -0,0 +1,4 @@
+- files: ["zippo_open.ogg", "zippo_closed.ogg"]
+  license: "CC-BY-SA-3.0"
+  copyright: "Created by BobTheBoss64 for ParadiseSS13, edited by Darkenson"
+  source: "https://github.com/ParadiseSS13/Paradise/commit/57eed9777cbd5a31b37fa83f59ad854abb9dc84a"
diff --git a/Resources/Audio/Items/Lighters/zippo_close.ogg b/Resources/Audio/Items/Lighters/zippo_close.ogg
new file mode 100644 (file)
index 0000000..6bcd3c1
Binary files /dev/null and b/Resources/Audio/Items/Lighters/zippo_close.ogg differ
diff --git a/Resources/Audio/Items/Lighters/zippo_open.ogg b/Resources/Audio/Items/Lighters/zippo_open.ogg
new file mode 100644 (file)
index 0000000..09068c4
Binary files /dev/null and b/Resources/Audio/Items/Lighters/zippo_open.ogg differ
index dab022092f63c7deb3fdfab0684abaf1f9a152dc..c54b4ac46f6d5c7543fab718902eae36c3af3666 100644 (file)
@@ -22,6 +22,7 @@
   - type: StorageFill
     contents:
     - id: SmokingPipeFilledTobacco
+    - id: FlippoEngravedLighter
   - type: Armor #same as regular sec armor
     modifiers:
       coefficients:
index 0e8b220c6448f9d200e2efc6313f2314e0282998..52a0a1c5897db1a98b982383fb99661bdda49bf3 100644 (file)
     soundGunshot:
       path: /Audio/Weapons/Guns/Gunshots/laser3.ogg
     soundEmpty:
-      path: /Audio/Items/lighter_off.ogg
+      path: /Audio/Items/Lighters/lighter_off.ogg
   - type: Destructible
     thresholds:
     - trigger:
index 7d3ede8eafd8fc59831c48b6ec8f33eaba31e168..e9315a6418aa8048b0dca2da915a5b1cf81ee6ea 100644 (file)
         - ReagentId: WeldingFuel
           Quantity: 4
         maxVol: 4 #uses less fuel than a welder, so this isnt as bad as it looks
+
+- type: entity
+  name: flippo lighter
+  parent: BaseItem
+  id: FlippoLighter
+  description: "A rugged metal lighter, lasts quite a while."
+  components:
+  - type: Sprite
+    sprite: Objects/Tools/lighters.rsi
+    layers:
+    - state: zippo_top
+      map: ["top"]
+    - state: zippo_icon_base
+      map: ["base"]
+    - state: zippo_open
+      map: ["open"]
+      visible: false
+    - state: lighter_flame
+      map: ["flame"]
+      visible: false
+      shader: unshaded
+  - type: ItemToggle
+    predictable: false
+    soundActivate:
+      path: /Audio/Items/Lighters/zippo_open.ogg
+    soundDeactivate:
+      path: /Audio/Items/Lighters/zippo_close.ogg
+  - type: ItemToggleMeleeWeapon
+    activatedDamage:
+        types:
+            Heat: 1
+  - type: ItemToggleSize
+    activatedSize: Small
+  - type: ItemToggleHot
+  - type: Item
+    size: Tiny
+    sprite: Objects/Tools/lighters.rsi
+    heldPrefix: zippo
+  - type: Appearance
+  - type: GenericVisualizer
+    visuals:
+      enum.ToggleVisuals.Toggled:
+        flame:
+          True: { visible: true }
+          False: { visible: false }
+        open:
+          True: { visible: true }
+          False: { visible: false }
+        base:
+          True: { visible: false }
+          False: { visible: true }
+  - type: SolutionContainerManager
+    solutions:
+      Welder:
+        reagents:
+        - ReagentId: WeldingFuel
+          Quantity: 12
+        maxVol: 12 #uses less fuel than a welder, so this isnt as bad as it looks
+  - type: ToggleableLightVisuals
+    spriteLayer: lighter_flame
+    inhandVisuals:
+      left:
+      - state: zippo-inhand-left-flame
+        shader: unshaded
+      right:
+      - state: zippo-inhand-right-flame
+        shader: unshaded
+  - type: MeleeWeapon
+    damage:
+      types:
+        Blunt: 1 # does a little bit of damage on hit when off
+  - type: PointLight
+    enabled: false
+    netsync: false
+    radius: 1.2 #slightly stronger than the other lighters
+    color: orange
+
+- type: entity
+  name: flippo engraved lighter
+  parent: FlippoLighter
+  id: FlippoEngravedLighter
+  description: "A rugged golden lighter, lasts quite a while. Engravings serve no tactical advantage whatsoever."
+  components:
+  - type: Sprite
+    sprite: Objects/Tools/lighters.rsi
+    layers:
+    - state: zippo_top
+      map: ["top"]
+    - state: zippo_engraved_icon_base
+      map: ["base"]
+    - state: zippo_engraved_open
+      map: ["open"]
+      visible: false
+    - state: lighter_flame
+      map: ["flame"]
+      visible: false
+      shader: unshaded
+  - type: StealTarget
+    stealGroup: FlippoEngravedLighter
index 4681f92c4deb1383079f21e8abede4b037ba8454..6988efc019cd1827916fc2ad764d17c8e69f7866 100644 (file)
@@ -79,6 +79,7 @@
   id: ThiefObjectiveGroupItem
   weights:
     ForensicScannerStealObjective: 1                    #sec
+    FlippoEngravedLighterStealObjective: 0.5
     AmmoTechFabCircuitboardStealObjective: 1
     ClothingHeadHatWardenStealObjective: 1
     ClothingOuterHardsuitVoidParamedStealObjective: 1   #med
index 5cb11a954a11bb1593fca0586684a05a90d990dc..a83446f8bad9d23f69744b8493782aadda13166b 100644 (file)
   sprite:
     sprite: Objects/Devices/forensic_scanner.rsi
     state: forensicnew
+
+- type: stealTargetGroup
+  id: FlippoEngravedLighter
+  name: detective's Flippo engraved lighter
+  sprite:
+    sprite: Objects/Tools/lighters.rsi
+    state: zippo_engraved_icon_base
     
 - type: stealTargetGroup
   id: AmmoTechFabCircuitboard
index c6ebab1dd671ff12ec3ffcceee0055b1ded308b1..b51e20167fd33df43d14fbfa90d4f0ff02935db8 100644 (file)
   - type: Objective
     difficulty: 1
 
+- type: entity                                      
+  noSpawn: true
+  parent: BaseThiefStealObjective
+  id: FlippoEngravedLighterStealObjective
+  components:
+  - type: NotJobRequirement
+    job: Detective
+  - type: StealCondition
+    stealGroup: FlippoEngravedLighter
+  - type: Objective
+    difficulty: 0.8
+
 - type: entity
   noSpawn: true
   parent: BaseThiefStealObjective
index 06fbbb2929509108a0351655b4100a1a9ebdd405..c799a592e6499e756e750e96062e5bba866a3978 100644 (file)
@@ -1,11 +1,11 @@
 - type: soundCollection
   id: lighterOnSounds
   files:
-  - /Audio/Items/lighter1.ogg
-  - /Audio/Items/lighter2.ogg
-  - /Audio/Items/lighter3.ogg
+  - /Audio/Items/Lighters/lighter1.ogg
+  - /Audio/Items/Lighters/lighter2.ogg
+  - /Audio/Items/Lighters/lighter3.ogg
 
 - type: soundCollection
   id: lighterOffSounds
   files:
-  - /Audio/Items/lighter_off.ogg
+  - /Audio/Items/Lighters/lighter_off.ogg
index be6e049bb81d84942a101c9474ab73995c709fe3..019dae3b849bbba0d432f2476938acd514d49f81 100644 (file)
@@ -1,8 +1,8 @@
 - type: soundCollection
   id: WelderOn
   files:
-    - /Audio/Items/lighter1.ogg
-    - /Audio/Items/lighter2.ogg
+    - /Audio/Items/Lighters/lighter1.ogg
+    - /Audio/Items/Lighters/lighter2.ogg
 
 - type: soundCollection
   id: WelderOff
index 7617a25de9a1f11e512258b3049979ae6457d280..dc7218c024a3744fa96c27958e3dec49abc4c0e9 100644 (file)
@@ -1,7 +1,7 @@
 {
   "version": 1,
   "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/a28b24f149702527f3eb22f5c686f06c836f2f99; sprite has been edited",
+  "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/a28b24f149702527f3eb22f5c686f06c836f2f99; sprite has been edited. Engraved zippo drawn by Darkenson.",
   "size": {
     "x": 32,
     "y": 32
     {
       "name": "zippo_icon_base"
     },
+    {
+      "name": "zippo_engraved_icon_base"
+    },
     {
       "name": "zippo_open"
     },
+    {
+      "name": "zippo_engraved_open"
+    },
     {
       "name": "zippo_top"
     },
     {
       "name": "inhand-right-flame",
       "directions": 4
+    },
+    {
+      "name": "zippo-inhand-left",
+      "directions": 4
+    },
+    {
+      "name": "zippo-inhand-right",
+      "directions": 4
+    },
+    {
+      "name": "zippo-inhand-left-flame",
+      "directions": 4
+    },
+    {
+      "name": "zippo-inhand-right-flame",
+      "directions": 4
     }
-
   ]
 }
diff --git a/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-left-flame.png b/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-left-flame.png
new file mode 100644 (file)
index 0000000..2792f20
Binary files /dev/null and b/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-left-flame.png differ
diff --git a/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-left.png b/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-left.png
new file mode 100644 (file)
index 0000000..02bd18c
Binary files /dev/null and b/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-left.png differ
diff --git a/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-right-flame.png b/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-right-flame.png
new file mode 100644 (file)
index 0000000..8664bd2
Binary files /dev/null and b/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-right-flame.png differ
diff --git a/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-right.png b/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-right.png
new file mode 100644 (file)
index 0000000..4a481bc
Binary files /dev/null and b/Resources/Textures/Objects/Tools/lighters.rsi/zippo-inhand-right.png differ
diff --git a/Resources/Textures/Objects/Tools/lighters.rsi/zippo_engraved_icon_base.png b/Resources/Textures/Objects/Tools/lighters.rsi/zippo_engraved_icon_base.png
new file mode 100644 (file)
index 0000000..798c4cb
Binary files /dev/null and b/Resources/Textures/Objects/Tools/lighters.rsi/zippo_engraved_icon_base.png differ
diff --git a/Resources/Textures/Objects/Tools/lighters.rsi/zippo_engraved_open.png b/Resources/Textures/Objects/Tools/lighters.rsi/zippo_engraved_open.png
new file mode 100644 (file)
index 0000000..ce63f8a
Binary files /dev/null and b/Resources/Textures/Objects/Tools/lighters.rsi/zippo_engraved_open.png differ