usable bookshelf (#15333)

Co-authored-by: AJCM-git <60196617+AJCM-git@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Kit0vras
2023-05-06 05:20:02 +03:00
committed by GitHub
parent 708b8cdb84
commit 140aa89ba4
26 changed files with 191 additions and 19 deletions

View 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

View File

@@ -10,6 +10,9 @@
layers: layers:
- state: book_demonomicon - state: book_demonomicon
- type: Spellbook - type: Spellbook
- type: Tag
tags:
- Spellbook
- type: entity - type: entity
id: SpawnSpellbook id: SpawnSpellbook

View File

@@ -2,7 +2,7 @@
id: Bookshelf id: Bookshelf
parent: BaseStructure parent: BaseStructure
name: "bookshelf" name: "bookshelf"
description: Mostly filled with erotica. description: Mostly filled with books.
components: components:
- type: Sprite - type: Sprite
sprite: Structures/Furniture/bookshelf.rsi sprite: Structures/Furniture/bookshelf.rsi
@@ -11,21 +11,11 @@
layers: layers:
- state: base - state: base
- state: book-0 - state: book-0
map: [ "enum.DamageStateVisualLayers.Base" ] - map: ["enum.StorageFillLayers.Fill"]
- type: RandomSprite - type: Appearance
available: - type: StorageFillVisualizer
- enum.DamageStateVisualLayers.Base: maxFillLevels: 20
book-0: "" fillBaseName: book
- 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: ""
- type: Damageable - type: Damageable
damageModifierSet: Wood damageModifierSet: Wood
damageContainer: Inorganic damageContainer: Inorganic
@@ -41,8 +31,8 @@
- !type:SpawnEntitiesBehavior - !type:SpawnEntitiesBehavior
spawn: spawn:
MaterialWoodPlank: MaterialWoodPlank:
min: 1 min: 2
max: 1 max: 3
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
- type: Tag - type: Tag
@@ -55,3 +45,23 @@
bodyType: Static bodyType: Static
- type: Anchorable - type: Anchorable
- type: Pullable - 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

View File

@@ -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

View File

@@ -444,3 +444,20 @@
canBuildInImpassable: false canBuildInImpassable: false
conditions: conditions:
- !type:TileNotBlocked - !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

View File

@@ -673,6 +673,9 @@
- type: Tag - type: Tag
id: Syringe id: Syringe
- type: Tag
id: Spellbook
- type: Tag - type: Tag
id: Taser id: Taser

Binary file not shown.

Before

Width:  |  Height:  |  Size: 269 B

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 512 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 659 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 B

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 466 B

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 506 B

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 617 B

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

View File

@@ -1,7 +1,7 @@
{ {
"version": 1, "version": 1,
"license": "CC-BY-SA-3.0", "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": { "size": {
"x": 32, "x": 32,
"y": 32 "y": 32
@@ -34,6 +34,48 @@
}, },
{ {
"name": "book-5" "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"
} }
] ]
} }