Added a regular and an engraved zippo (flippo) lighter (#23020)

* 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.
This commit is contained in:
Darkie
2023-12-28 00:47:35 +02:00
committed by GitHub
parent 78965d1e36
commit 1c8eb2f3de
23 changed files with 155 additions and 10 deletions

View File

@@ -22,6 +22,7 @@
- type: StorageFill
contents:
- id: SmokingPipeFilledTobacco
- id: FlippoEngravedLighter
- type: Armor #same as regular sec armor
modifiers:
coefficients:

View File

@@ -199,7 +199,7 @@
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:

View File

@@ -123,3 +123,102 @@
- 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

View File

@@ -79,6 +79,7 @@
id: ThiefObjectiveGroupItem
weights:
ForensicScannerStealObjective: 1 #sec
FlippoEngravedLighterStealObjective: 0.5
AmmoTechFabCircuitboardStealObjective: 1
ClothingHeadHatWardenStealObjective: 1
ClothingOuterHardsuitVoidParamedStealObjective: 1 #med

View File

@@ -157,6 +157,13 @@
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

View File

@@ -199,6 +199,18 @@
- 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

View 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

View 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