Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ashtray is real, and smoking is still bad for you #916

Merged
merged 3 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
PackPaperRollingFilters: 8
CheapLighter: 6
Lighter: 4
Ashtray: 4
emaggedInventory:
CigPackSyndicate: 6
48 changes: 48 additions & 0 deletions Resources/Prototypes/_NF/Entities/Objects/Misc/ashtray.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
- type: entity
name: ashtray
id: Ashtray
parent: BaseStorageItem
components:
- type: Sprite
scale: 0.5, 0.5
sprite: _NF/Objects/Misc/ashtray.rsi
layers:
- state: icon-0
map: ["enum.StorageFillLayers.Fill"]
- type: Storage
capacity: 12
quickInsert: true
areaInsert: true
storageInsertSound:
collection: trashBagRustle
whitelist:
tags:
- Cigar
- Cigarette
- Ash
- type: Appearance
- type: StorageFillVisualizer
maxFillLevels: 4
fillBaseName: icon
- type: Dumpable
- type: Item
size: 12
- type: Damageable
damageContainer: Inorganic
- type: DamageOnLand
damage:
types:
Blunt: 1
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 1
# triggersOnce: false
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:EmptyAllContainersBehaviour
- !type:DoActsBehavior
acts: [ "Destruction" ]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions Resources/Textures/_NF/Objects/Misc/ashtray.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": 1,
"license": "CC-BY-SA-4.0",
"copyright": "Made for Frontier by gentlebutter",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon-0"
},
{
"name": "icon-1"
},
{
"name": "icon-2"
},
{
"name": "icon-3"
}
]
}
Loading