]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
reduced the number of slots in bookshelves (#37866)
authorMoomoobeef <62638182+Moomoobeef@users.noreply.github.com>
Tue, 27 May 2025 21:21:39 +0000 (14:21 -0700)
committerGitHub <noreply@github.com>
Tue, 27 May 2025 21:21:39 +0000 (14:21 -0700)
* changed bookshelfs yml

I reduced the number of slots in bookshelves, now it has 40 slots, and since one book takes two slots, and there are 20 fill levels (not including empty) now each book corresponds to one sprite. I also increased the number of books that random bookshelves generate, so that bookshelves will be empty less often.

* increased minimum random book count

in testing there were still a lot of bookcases with very few books in them.

* too many

* still too many

decided it looks better with the variance of having some shelves sparse and some not, rather than all ~half-filled. Wish there was a way to do something about the distribution, rather than pure random maybe something like weighting it toward one of the ends of the scale. but alas, I don't know how to do that.

* guidebook chance is random too now

decided that guidebook chance should also be random. now we can have shelves that are truly empty. anyway, I set it as 0-2, so there is a 2/3 chance that a bookshelf has a guidebook in it anyway, this also means that some shelves will have two guidebooks, but hey; who can have *too many* guidebooks?

* this line shouldn't be here

Resources/Prototypes/Catalog/Fills/Books/bookshelf.yml
Resources/Prototypes/Entities/Structures/Furniture/bookshelf.yml

index b998b61be559eac223cd0a4d7adfaa1bd71edbcb..f1ce9ebf6721b46aa18916dd918820a7d74fa451 100644 (file)
     # Randomly generated books
     - id: BookRandomStory
       amount: !type:RangeNumberSelector
-        range: 0, 4
+        range: 0, 8
     # Guidebooks
     - !type:NestedSelector
+      rolls: !type:RangeNumberSelector
+        range: 0, 2
       tableId: RandomGuidebookTable
     # Handwritten books
     - !type:NestedSelector
       rolls: !type:RangeNumberSelector
-        range: 0, 2
+        range: 0, 3
       tableId: RandomHandwrittenBookTable
 
 - type: entityTable
index c669e6bea474eac3b0d5f2c4265963855913abcd..8e92616a9e3dbf1aa5bcbe54a0a3b4576c9d21fd 100644 (file)
@@ -57,7 +57,7 @@
   - type: Occluder
   - type: Storage
     grid:
-    - 0,0,15,3
+    - 0,0,9,3
     maxItemSize: Normal
     whitelist:
       tags: