Book: Difference between revisions

From PZwiki
m (clean up, replaced: wikitable → pztable (2))
(Update distribution file)
 
(31 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{languages|Book}}
{{Header|Project Zomboid|Items|Literature}}
{{header|The Game World|Items|Literature|type=Literature|version=Version 39|incver=67.5}}{{infobox literature
{{Page version|41.50}}
|display_name=Book
{{Infobox item
|name_colour=Literature
|name=Book
|name_text_colour=Literature
|model=Book_Model.png
|image=Book_120px.png
|icon=Book.png
|icon_name=Book
|category=Literature
|category=Literature
|weight=0.5
|weight=0.5
Line 11: Line 12:
|boredom_change=-50
|boredom_change=-50
|stress_change=-40
|stress_change=-40
|class_name=Base.Book
|item_id=Base.Book
}}{{About|the consumable item affecting the player's mood|books that increase experience gain|[[Skill Books]]}}
}}
A '''book''' is an [[item]] designed to relieve [[Moodles#Unhappiness|unhappiness]], [[Moodles#Stress|stress]] and [[Moodles#Boredom|boredom]] when the [[player]] character is seriously struggling with the [[Knox Event]]. Unlike [[Skill Books|skill books]], these books are 'consumed' once they're read, and therefore are removed from the player's inventory. A book can also be used as a fuel for particular [[heat source]]s, and lasts for 15 minutes if done so.
{{About|the consumable item affecting the player's mood|books that increase experience gain|Skill books}}
A '''book''' is an [[Items|item]] designed to relieve [[unhappiness]], [[stress]], and [[boredom]] when the [[player]] character is seriously struggling with the [[Knox Event]]. Unlike [[skill books]], these books are ''consumed'' once they're read, and therefore are removed from the player's inventory. A book can also be used as a fuel for particular [[heat source]]s, and lasts for 15 minutes if done so.


==Distribution==
==Distribution==
===Buildings===
The loot distributions can be found in the table(s) below.
{| class="pztable mw-collapsible" style="text-align:center; width:400px;"
 
! colspan=4 |  
<!--BOT FLAG|Book|41.78.16-->
|-
{{Clear}}
!Building/Room
<div class="togglebox theme-red">
!Container
    <div>Book distribution
!Rolls
        <span class="mw-customtoggle-togglebox-Book" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
!Chance
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Book">
|-
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
|rowspan="8"|All
<div class="pz-container">
|[[Containers#Lockers|Locker]]
<div id="containers" style="flex-basis:30%">
|2
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
|7
    |+ {{ll|Containers}}
|-
    ! Building/Room
<!--|All-->
    ! Container
|[[Containers#Desks|Desk]]
    ! Effective chance
|1
    |-
|2
    | Bag_Satchel
|-
    | {{ll|Bag_Satchel}}
<!--|All-->
    | 6.41%
|[[Containers#Cabinets|Filing Cabinet]]
    |-
|1
    | Bag_Satchel
|4
    | {{ll|Bag_Satchel}}
|-
    | 12.41%
<!--|All-->
    |-
|[[Containers#Bedroom Storage|Small Table]]
    | Bag_Schoolbag
|1
    | {{ll|Bag_Schoolbag}}
|4
    | 6.41%
|-
    |-
<!--|All-->
    | Bag_Schoolbag
|[[Containers#Desks|Office Drawers]]
    | {{ll|Bag_Schoolbag}}
|1
    | 12.41%
|3 (+2)
    |-
|-
    | all
<!--|All-->
    | {{ll|counter}}
|[[Containers#Shelves|Shelves]]
    | 23.28%
|3
    |-
|20
    | all
|-
    | {{ll|locker}}
|-
    | 23.28%
<!--|All-->
    |-
|[[Containers|Other]]
    | all
|1
    | {{ll|other}}
|1
    | 6.41%
|-
    |-
<!--|All-->
    | all
|[[Schoolbag]]
    | {{ll|shelves}}
|2
    | 23.28%
|3
    |-
|-
    | artstore
|Kitchen
    | {{ll|counter}}
|[[Containers#Shelves|Shelves]]
    | 23.28%
|2
    |-
|10
    | bathroom
|-
    | {{ll|shelves}}
|Plaza Store
    | 23.28%
|[[Containers#Counters|Counter]]
    |-
|1
    | bedroom
|2
    | {{ll|crate}}
|-
    | 1.01%
|Motel Room
    |-
|[[Containers#Bedroom Storage|Wardrobe]]
    | bedroom
|1
    | {{ll|crate}}
|3
    | 23.28%
|-
    |-
|Lobby
    | bedroom
|[[Containers#Counters|Counter]]
    | {{ll|crate}}
|1
    | 41.14%
|3
    |-
|-
    | bedroom
|rowspan="2"|Book Store
    | {{ll|crate}}
|rowspan="2"|[[Containers|All]]
    | 76.55%
|1
    |-
|3
    | bookstore
|-
    | {{ll|crate}}
<!--|Book Store-->
    | 23.28%
<!--|[[Containers|All]]-->
    |-
|5
    | bookstore
|100 (x9)
    | {{ll|crate}}
|-
    | 41.14%
|Library
    |-
|[[Containers#Counters|Counter]]
    | bookstore
|4
    | {{ll|shelves}}
|2
    | 23.28%
|-
    |-
|Clothes Store
    | bookstore
|[[Containers#Counters|Counter]]
    | {{ll|shelves}}
|3
    | 41.14%
|5
    |-
|-
    | camping
|Restaurant
    | {{ll|counter}}
|[[Containers#Counters|Counter]]
    | 23.28%
|2
    |-
|4 (x2)
    | camping
|-
    | {{ll|shelves}}
|Post Office
    | 23.28%
|[[Containers#Counters|Counter]]
    |-
|2
    | carsupply
|4 (x2)
    | {{ll|shelves}}
|-
    | 23.28%
|Plaza Storage
    |-
|[[Containers|All]]
    | carsupply
|3
    | {{ll|shelves}}
|10
    | 41.14%
|-
    |-
|Furniture Store
    | classroom
|[[Containers#Counters|Counter]]
    | {{ll|counter}}
|3
    | 23.28%
|5
    |-
|-
    | classroom
|Corner Store
    | {{ll|counter}}
|[[Containers#Shelves|Magazine Shelf]]
    | 41.14%
|2
    |-
|3
    | classroom
|-
    | {{ll|desk}}
|Houseware Store
    | 23.28%
|[[Containers#Shelves|Shelves]]
    |-
|3
    | classroom
|7
    | {{ll|metal_shelves}}
|-
    | 23.28%
|Shoe Store
    |-
|[[Containers#Counters|Counter]]
    | classroom
|3
    | {{ll|shelves}}
|5
    | 23.28%
|-
    |-
|Sports Store
    | closet
|[[Containers#Counters|Counter]]
    | {{ll|crate}}
|3
    | 1.01%
|5
    |-
|-
    | closet
|Gift Storage
    | {{ll|crate}}
|[[Containers#Crates|Crate]]
    | 23.28%
|3
    |-
|7
    | closet
|-
    | {{ll|crate}}
|rowspan="3"|Gift Store
    | 41.14%
|[[Containers#Shelves|Shelves]]
    |-
|3
    | closet
|7
    | {{ll|crate}}
|-
    | 76.55%
<!--|Gift Store-->
    |-
|[[Containers#Displays|Display Case]]
    | daycare
|3
    | {{ll|desk}}
|7
    | 23.28%
|-
    |-
<!--|Gift Store-->
    | daycare
|[[Containers#Counters|Counter]]
    | {{ll|metal_shelves}}
|3
    | 23.28%
|5
    |-
|-
    | daycare
|}
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | daycare
    | {{ll|shelves}}
    | 23.28%
    |-
    | daycare
    | {{ll|shelves}}
    | 41.14%
    |-
    | empty
    | {{ll|crate}}
    | 23.28%
    |-
    | fishingstorage
    | {{ll|counter}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|crate}}
    | 1.01%
    |-
    | garagestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|crate}}
    | 41.14%
    |-
    | garagestorage
    | {{ll|crate}}
    | 76.55%
    |-
    | hall
    | {{ll|counter}}
    | 23.28%
    |-
    | hall
    | {{ll|locker}}
    | 23.28%
    |-
    | hall
    | {{ll|locker}}
    | 41.14%
    |-
    | hunting
    | {{ll|counter}}
    | 23.28%
    |-
    | jewelrystore
    | {{ll|counter}}
    | 23.28%
    |-
    | kitchen
    | {{ll|crate}}
    | 23.28%
    |-
    | kitchen
    | {{ll|crate}}
    | 41.14%
    |-
    | kitchen
    | {{ll|crate}}
    | 76.55%
    |-
    | kitchen
    | {{ll|shelves}}
    | 23.28%
    |-
    | library
    | {{ll|counter}}
    | 23.28%
    |-
    | library
    | {{ll|shelves}}
    | 23.28%
    |-
    | library
    | {{ll|shelves}}
    | 41.14%
    |-
    | livingroom
    | {{ll|crate}}
    | 23.28%
    |-
    | livingroom
    | {{ll|crate}}
    | 41.14%
    |-
    | livingroom
    | {{ll|crate}}
    | 76.55%
    |-
    | livingroom
    | {{ll|overhead}}
    | 23.28%
    |-
    | livingroom
    | {{ll|shelves}}
    | 23.28%
    |-
    | livingroom
    | {{ll|shelves}}
    | 41.14%
    |-
    | livingroom
    | {{ll|wardrobe}}
    | 23.28%
    |-
    | lobby
    | {{ll|counter}}
    | 23.28%
    |-
    | mechanic
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | mechanic
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | mechanic
    | {{ll|wardrobe}}
    | 23.28%
    |-
    | mechanic
    | {{ll|wardrobe}}
    | 41.14%
    |-
    | medical
    | {{ll|shelves}}
    | 23.28%
    |-
    | medical
    | {{ll|shelves}}
    | 41.14%
    |-
    | medicalstorage
    | {{ll|shelves}}
    | 23.28%
    |-
    | medicalstorage
    | {{ll|shelves}}
    | 41.14%
    |-
    | motelroom
    | {{ll|sidetable}}
    | 120.41%
    |-
    | motelroomoccupied
    | {{ll|sidetable}}
    | 120.41%
    |-
    | office
    | {{ll|counter}}
    | 23.28%
    |-
    | office
    | {{ll|shelves}}
    | 23.28%
    |-
    | office
    | {{ll|shelves}}
    | 41.14%
    |-
    | pawnshop
    | {{ll|crate}}
    | 23.28%
    |-
    | pawnshop
    | {{ll|crate}}
    | 41.14%
    |-
    | pawnshop
    | {{ll|shelves}}
    | 23.28%
    |-
    | pawnshop
    | {{ll|shelves}}
    | 41.14%
    |-
    | pawnshopoffice
    | {{ll|shelves}}
    | 23.28%
    |-
    | pawnshopoffice
    | {{ll|shelves}}
    | 41.14%
    |-
    | plazastore1
    | {{ll|counter}}
    | 23.28%
    |-
    | poststorage
    | {{ll|crate}}
    | 23.28%
    |-
    | poststorage
    | {{ll|crate}}
    | 41.14%
    |-
    | poststorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | poststorage
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | schoolstorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | schoolstorage
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | storageunit
    | {{ll|crate}}
    | 1.01%
    |-
    | storageunit
    | {{ll|crate}}
    | 23.28%
    |-
    | storageunit
    | {{ll|crate}}
    | 41.14%
    |-
    | storageunit
    | {{ll|crate}}
    | 76.55%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 1.01%
    |-
    | toolstore
    | {{ll|counter}}
    | 23.28%
    |-
    | toolstore
    | {{ll|counter}}
    | 41.14%
    |-
    | toolstore
    | {{ll|shelves}}
    | 23.28%
    |-
    | toolstore
    | {{ll|shelves}}
    | 41.14%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Book" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Book|41.78.16-->


===Vehicles===
===Vehicles===
{| class="pztable mw-collapsible" style="text-align:center; width:400px;"
{| class="wikitable theme-red mw-collapsible" style="text-align:center; width:400px;"
! colspan=4 |  
! colspan=4 |
|-
|-
!Profession
!Profession
Line 184: Line 444:
|}
|}


== Code ==
==Code==
'''From items.txt (Project Zomboid directory/media/scripts/)'''
{{CodeBox
{{Retrieved|version=39|incver=67.5}}
| {{CodeSnip
<nowiki>
  | lang = java
item Book
  | line = true
Weight = 0.5,
  | start = 5
Type = Literature,
  | source = items_literature.txt
UnhappyChange = -40,
  | retrieved = true
DisplayName = Book,
  | version = 41.78.16
StressChange = -40,
  | code =
Icon = Book,
item Book
BoredomChange = -50,</nowiki>
{
    DisplayCategory = Literature,
Weight = 0.5,
Type = Literature,
UnhappyChange = -40,
DisplayName = Book,
StressChange = -40,
Icon = Book,
BoredomChange = -50,
StaticModel = Book,
WorldStaticModel = BookClosedGround,
}
}}
}}


==See also==
==See also==
Line 202: Line 475:
*[[Newspaper]]
*[[Newspaper]]


{{Navbox/Consumables}}
{{Navbox items|literature}}

Latest revision as of 12:06, 30 April 2024

Spiffo controlyourself.png
This page was last updated for an older version (41.50).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Book
Book Model.png
General
Category
Literature
Encumbrance
Moodle Icon HeavyLoad.png
0.5
Properties
Consumed
True
Effect
UnhappinessMoodle Icon Unhappy.png
-40
BoredomMoodle Icon Bored.png
-50
StressMoodle Icon Stressed.png
-40
Technical
Item ID
Base.Book
PlushSpiffo.pngThis article is about the consumable item affecting the player's mood. For books that increase experience gain, see Skill books.

A book is an item designed to relieve unhappiness, stress, and boredom when the player character is seriously struggling with the Knox Event. Unlike skill books, these books are consumed once they're read, and therefore are removed from the player's inventory. A book can also be used as a fuel for particular heat sources, and lasts for 15 minutes if done so.

Distribution

The loot distributions can be found in the table(s) below.

Book distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
Bag_Satchel Bag_Satchel 6.41%
Bag_Satchel Bag_Satchel 12.41%
Bag_Schoolbag Bag_Schoolbag 6.41%
Bag_Schoolbag Bag_Schoolbag 12.41%
all counter 23.28%
all locker 23.28%
all other 6.41%
all shelves 23.28%
artstore counter 23.28%
bathroom shelves 23.28%
bedroom crate 1.01%
bedroom crate 23.28%
bedroom crate 41.14%
bedroom crate 76.55%
bookstore crate 23.28%
bookstore crate 41.14%
bookstore shelves 23.28%
bookstore shelves 41.14%
camping counter 23.28%
camping shelves 23.28%
carsupply shelves 23.28%
carsupply shelves 41.14%
classroom counter 23.28%
classroom counter 41.14%
classroom desk 23.28%
classroom metal_shelves 23.28%
classroom shelves 23.28%
closet crate 1.01%
closet crate 23.28%
closet crate 41.14%
closet crate 76.55%
daycare desk 23.28%
daycare metal_shelves 23.28%
daycare metal_shelves 41.14%
daycare shelves 23.28%
daycare shelves 41.14%
empty crate 23.28%
fishingstorage counter 23.28%
garagestorage crate 1.01%
garagestorage crate 23.28%
garagestorage crate 41.14%
garagestorage crate 76.55%
hall counter 23.28%
hall locker 23.28%
hall locker 41.14%
hunting counter 23.28%
jewelrystore counter 23.28%
kitchen crate 23.28%
kitchen crate 41.14%
kitchen crate 76.55%
kitchen shelves 23.28%
library counter 23.28%
library shelves 23.28%
library shelves 41.14%
livingroom crate 23.28%
livingroom crate 41.14%
livingroom crate 76.55%
livingroom overhead 23.28%
livingroom shelves 23.28%
livingroom shelves 41.14%
livingroom wardrobe 23.28%
lobby counter 23.28%
mechanic metal_shelves 23.28%
mechanic metal_shelves 41.14%
mechanic wardrobe 23.28%
mechanic wardrobe 41.14%
medical shelves 23.28%
medical shelves 41.14%
medicalstorage shelves 23.28%
medicalstorage shelves 41.14%
motelroom sidetable 120.41%
motelroomoccupied sidetable 120.41%
office counter 23.28%
office shelves 23.28%
office shelves 41.14%
pawnshop crate 23.28%
pawnshop crate 41.14%
pawnshop shelves 23.28%
pawnshop shelves 41.14%
pawnshopoffice shelves 23.28%
pawnshopoffice shelves 41.14%
plazastore1 counter 23.28%
poststorage crate 23.28%
poststorage crate 41.14%
poststorage metal_shelves 23.28%
poststorage metal_shelves 41.14%
schoolstorage metal_shelves 23.28%
schoolstorage metal_shelves 41.14%
storageunit crate 1.01%
storageunit crate 23.28%
storageunit crate 41.14%
storageunit crate 76.55%
storageunit metal_shelves 1.01%
toolstore counter 23.28%
toolstore counter 41.14%
toolstore shelves 23.28%
toolstore shelves 41.14%

Vehicles

Profession Container Rolls Chance
Post Van Trunk 4 10

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items_literature.txt

Retrieved: Build 41.78.16
item Book
	{
	    DisplayCategory = Literature,
		Weight	=	0.5,
		Type	=	Literature,
		UnhappyChange	=	-40,
		DisplayName	=	Book,
		StressChange	=	-40,
		Icon	=	Book,
		BoredomChange	=	-50,
		StaticModel = Book,
		WorldStaticModel = BookClosedGround,
	}

See also