Add smoking pipe (#11419)

* Add smoking pipe

* fix access issue

* try fix init issue

* fixed for real
This commit is contained in:
themias
2022-09-19 19:54:33 -04:00
committed by GitHub
parent 42f85a4b32
commit d8dc54f836
10 changed files with 223 additions and 0 deletions

View File

@@ -74,6 +74,7 @@
amount: 8
- id: GroundTobacco
amount: 4
- id: SmokingPipe
- id: Matchbox
- type: entity

View File

@@ -6,6 +6,7 @@
CigPackBlue: 2
CigPackBlack: 2
CigarCase: 1
SmokingPipeFilledTobacco: 1
Matchbox: 5
PackPaperRollingFilters: 3
CheapLighter: 4

View File

@@ -19,6 +19,9 @@
sprite: Clothing/OuterClothing/Coats/detective.rsi
- type: Clothing
sprite: Clothing/OuterClothing/Coats/detective.rsi
- type: StorageFill
contents:
- id: SmokingPipeFilledTobacco
- type: Armor
modifiers:
coefficients:

View File

@@ -0,0 +1,65 @@
- type: entity
id: SmokingPipe
parent: BaseSmokingPipe
name: pipe
description: Just like grandpappy used to smoke.
components:
- type: Sprite
sprite: Objects/Consumable/Smokeables/Pipes/pipe.rsi
netsync: false
state: unlit-icon
- type: Clothing
sprite: Objects/Consumable/Smokeables/Pipes/pipe.rsi
slots: [ mask ]
equippedPrefix: unlit
- type: Item
size: 3
sprite: Objects/Consumable/Smokeables/Pipes/pipe.rsi
- type: Appearance
visuals:
- type: BurnStateVisualizer
unlitIcon: unlit-icon
- type: entity
id: SmokingPipeFilledTobacco
parent: SmokingPipe
name: pipe
description: Just like grandpappy used to smoke.
components:
- type: ContainerContainer
containers:
bowl_slot: !type:ContainerSlot
- type: ItemSlots
- type: SmokingPipe
bowl_slot:
name: Bowl
startingItem: GroundTobacco
whitelist:
tags:
- Smokable
insertSound:
path: /Audio/Weapons/Guns/Empty/empty.ogg
ejectSound:
path: /Audio/Weapons/Guns/Empty/empty.ogg
- type: entity
id: SmokingPipeFilledCannabis
parent: SmokingPipe
name: pipe
description: Just like grandpappy used to smoke.
components:
- type: ContainerContainer
containers:
bowl_slot: !type:ContainerSlot
- type: ItemSlots
- type: SmokingPipe
bowl_slot:
name: Bowl
startingItem: GroundCannabis
whitelist:
tags:
- Smokable
insertSound:
path: /Audio/Weapons/Guns/Empty/empty.ogg
ejectSound:
path: /Audio/Weapons/Guns/Empty/empty.ogg

View File

@@ -37,3 +37,29 @@
reagents:
- ReagentId: Nicotine
Quantity: 10
- type: entity
parent: BaseSmokable
id: BaseSmokingPipe
abstract: true
components:
- type: Smokable
exposeTemperature: 1173.15
- type: ContainerContainer
containers:
bowl_slot: !type:ContainerSlot
- type: ItemSlots
- type: SmokingPipe
bowl_slot:
name: Bowl
whitelist:
tags:
- Smokable
insertSound:
path: /Audio/Weapons/Guns/Empty/empty.ogg
ejectSound:
path: /Audio/Weapons/Guns/Empty/empty.ogg
- type: SolutionContainerManager
solutions:
smokable:
maxVol: 20

View File

@@ -61,6 +61,9 @@
- type: Construction
graph: smokeableGroundCannabis
node: ground
- type: Tag
tags:
- Smokable
- type: entity
name: tobacco leaves
@@ -116,3 +119,6 @@
- type: Construction
graph: smokeableGroundTobacco
node: ground
- type: Tag
tags:
- Smokable

View File

@@ -444,6 +444,9 @@
- type: Tag
id: Shovel
- type: Tag
id: Smokable
- type: Tag
id: Soap