usable bookshelf (#15333)
Co-authored-by: AJCM-git <60196617+AJCM-git@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
71
Resources/Prototypes/Catalog/Fills/Books/bookshelf.yml
Normal file
@@ -0,0 +1,71 @@
|
||||
- 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
|
||||
@@ -10,6 +10,9 @@
|
||||
layers:
|
||||
- state: book_demonomicon
|
||||
- type: Spellbook
|
||||
- type: Tag
|
||||
tags:
|
||||
- Spellbook
|
||||
|
||||
- type: entity
|
||||
id: SpawnSpellbook
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
id: Bookshelf
|
||||
parent: BaseStructure
|
||||
name: "bookshelf"
|
||||
description: Mostly filled with erotica.
|
||||
description: Mostly filled with books.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Structures/Furniture/bookshelf.rsi
|
||||
@@ -11,21 +11,11 @@
|
||||
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
|
||||
@@ -41,8 +31,8 @@
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
MaterialWoodPlank:
|
||||
min: 1
|
||||
max: 1
|
||||
min: 2
|
||||
max: 3
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- type: Tag
|
||||
@@ -55,3 +45,23 @@
|
||||
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
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
- 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
|
||||
@@ -444,3 +444,20 @@
|
||||
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
|
||||
|
||||
@@ -673,6 +673,9 @@
|
||||
- type: Tag
|
||||
id: Syringe
|
||||
|
||||
- type: Tag
|
||||
id: Spellbook
|
||||
|
||||
- type: Tag
|
||||
id: Taser
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 211 B |
|
After Width: | Height: | Size: 518 B |
|
After Width: | Height: | Size: 512 B |
|
After Width: | Height: | Size: 505 B |
|
After Width: | Height: | Size: 504 B |
|
After Width: | Height: | Size: 673 B |
|
After Width: | Height: | Size: 676 B |
|
After Width: | Height: | Size: 677 B |
|
After Width: | Height: | Size: 665 B |
|
After Width: | Height: | Size: 659 B |
|
After Width: | Height: | Size: 643 B |
|
Before Width: | Height: | Size: 355 B After Width: | Height: | Size: 242 B |
|
Before Width: | Height: | Size: 466 B After Width: | Height: | Size: 266 B |
|
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 301 B |
|
Before Width: | Height: | Size: 617 B After Width: | Height: | Size: 304 B |
BIN
Resources/Textures/Structures/Furniture/bookshelf.rsi/book-6.png
Normal file
|
After Width: | Height: | Size: 348 B |
BIN
Resources/Textures/Structures/Furniture/bookshelf.rsi/book-7.png
Normal file
|
After Width: | Height: | Size: 537 B |
BIN
Resources/Textures/Structures/Furniture/bookshelf.rsi/book-8.png
Normal file
|
After Width: | Height: | Size: 532 B |
BIN
Resources/Textures/Structures/Furniture/bookshelf.rsi/book-9.png
Normal file
|
After Width: | Height: | Size: 524 B |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"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
|
||||
@@ -34,6 +34,48 @@
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||