--- /dev/null
+- type: entity
+ id: BookshelfFilled
+ parent: Bookshelf
+ suffix: random filled
+ components:
+ - type: StorageFill
+ contents:
+ - id: BookRandom
+ prob: 0.4
+ amount: 1
+ maxAmount: 4
+ - id: BookNarsieLegend
+ prob: 0.1
+ - id: BookTruth
+ prob: 0.1
+ - id: BookWorld
+ prob: 0.1
+ - id: BookIanAntarctica
+ prob: 0.1
+ - id: BookSlothClownSSS
+ prob: 0.1
+ - id: BookSlothClownPranks
+ prob: 0.1
+ - id: BookSlothClownMMD
+ prob: 0.1
+ - id: BookStruck
+ prob: 0.1
+ - id: BookSun
+ prob: 0.1
+ - id: BookPossum
+ prob: 0.1
+ - id: BookCafe
+ prob: 0.1
+ - id: BookFeather
+ prob: 0.1
+ - id: BookIanLostWolfPup
+ prob: 0.1
+ - id: BookIanRanch
+ prob: 0.1
+ - id: BookIanOcean
+ prob: 0.1
+ - id: BookIanMountain
+ prob: 0.1
+ - id: BookIanCity
+ prob: 0.1
+ - id: BookIanArctic
+ prob: 0.1
+ - id: BookIanDesert
+ prob: 0.1
+ - id: BookNames
+ prob: 0.1
+ - id: BookEarth
+ prob: 0.1
+ - id: BookAurora
+ prob: 0.1
+ - id: BookTemple
+ prob: 0.1
+ - id: BookWatched
+ prob: 0.1
+ - id: BookMedicalOfficer
+ prob: 0.1
+ - id: BookMorgue
+ prob: 0.1
+ - id: BookRufus
+ prob: 0.1
+ - id: BookMap
+ prob: 0.1
+ - id: BookJourney
+ prob: 0.1
+ - id: BookInspiration
+ prob: 0.1
id: Bookshelf
parent: BaseStructure
name: "bookshelf"
- description: Mostly filled with erotica.
+ description: Mostly filled with books.
components:
- type: Sprite
sprite: Structures/Furniture/bookshelf.rsi
layers:
- state: base
- state: book-0
- map: [ "enum.DamageStateVisualLayers.Base" ]
- - type: RandomSprite
- available:
- - enum.DamageStateVisualLayers.Base:
- book-0: ""
- - enum.DamageStateVisualLayers.Base:
- book-1: ""
- - enum.DamageStateVisualLayers.Base:
- book-2: ""
- - enum.DamageStateVisualLayers.Base:
- book-3: ""
- - enum.DamageStateVisualLayers.Base:
- book-4: ""
- - enum.DamageStateVisualLayers.Base:
- book-5: ""
+ - map: ["enum.StorageFillLayers.Fill"]
+ - type: Appearance
+ - type: StorageFillVisualizer
+ maxFillLevels: 20
+ fillBaseName: book
- type: Damageable
damageModifierSet: Wood
damageContainer: Inorganic
- !type:SpawnEntitiesBehavior
spawn:
MaterialWoodPlank:
- min: 1
- max: 1
+ min: 2
+ max: 3
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Tag
bodyType: Static
- type: Anchorable
- type: Pullable
+ - type: Storage
+ capacity: 200
+ whitelist:
+ tags:
+ - Document
+ - Folder
+ - Write
+ - Book
+ - Spellbook
+ - type: UserInterface
+ interfaces:
+ - key: enum.StorageUiKey.Key
+ type: StorageBoundUserInterface
+ - type: InteractionOutline
+ - type: ContainerContainer
+ containers:
+ storagebase: !type:Container
+ - type: Construction
+ graph: Bookshelf
+ node: bookshelf
--- /dev/null
+- type: constructionGraph
+ id: Bookshelf
+ start: start
+ graph:
+ - node: start
+ actions:
+ - !type:DestroyEntity {}
+ edges:
+ - to: bookshelf
+ completed:
+ - !type:SnapToGrid { }
+ steps:
+ - material: WoodPlank
+ amount: 5
+ doAfter: 4
+ - node: bookshelf
+ entity: Bookshelf
+ edges:
+ - to: start
+ completed:
+ - !type:SpawnPrototype
+ prototype: MaterialWoodPlank
+ amount: 5
+ steps:
+ - tool: Prying
+ doAfter: 4
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked
+
+- type: construction
+ id: Bookshelf
+ name: bookshelf
+ description: Mostly filled with books.
+ graph: Bookshelf
+ startNode: start
+ targetNode: bookshelf
+ category: construction-category-furniture
+ icon:
+ sprite: Structures/Furniture/bookshelf.rsi
+ state: base
+ objectType: Structure
+ placementMode: SnapgridCenter
+ canBuildInImpassable: false
+ conditions:
+ - !type:TileNotBlocked
{
"version": 1,
"license": "CC-BY-SA-3.0",
- "copyright": "Taken from cev-eris at commit https://github.com/discordia-space/CEV-Eris/commit/f777c8ddf7a529b002df17909566d5d93b8ad201",
+ "copyright": "Taken from cev-eris at commit https://github.com/discordia-space/CEV-Eris/commit/f777c8ddf7a529b002df17909566d5d93b8ad201 and edited by Kit0vras (github)",
"size": {
"x": 32,
"y": 32
},
{
"name": "book-5"
+ },
+ {
+ "name": "book-6"
+ },
+ {
+ "name": "book-7"
+ },
+ {
+ "name": "book-8"
+ },
+ {
+ "name": "book-9"
+ },
+ {
+ "name": "book-10"
+ },
+ {
+ "name": "book-11"
+ },
+ {
+ "name": "book-12"
+ },
+ {
+ "name": "book-13"
+ },
+ {
+ "name": "book-14"
+ },
+ {
+ "name": "book-15"
+ },
+ {
+ "name": "book-16"
+ },
+ {
+ "name": "book-17"
+ },
+ {
+ "name": "book-18"
+ },
+ {
+ "name": "book-19"
}
]
}