Playing Cards: Difference between revisions

From PZwiki
mNo edit summary
(Update distribution file)
 
(34 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages|Playing Cards}}
{{Header|Project Zomboid|Items|Miscellaneous items|Junk}}
{{header|The Game World|Items|type=Default|version=Version 40|incver=5}}{{Infobox normal
{{Page version|41.78.16}}
|display_name = Playing Cards
{{Infobox item
|image = CardDeck_120px.png
|name=Playing Cards
|weight = 0.2
|model=CardDeck_Model.png
|primary_use = Draw a random card
|icon=CardDeck.png
|class_name = Base.CardDeck
|category=Junk
}}'''Playing cards''' are a miscellaneous [[items|item]] with very little use.
|weight=0.2
|function=Draw a random card
|item_id=Base.CardDeck
}}
'''Playing cards''' are a miscellaneous [[Items|item]] with very little use.


==Usage==
==Usage==
The only use of the playing cards is in using [[multiplayer]] commands. If the player has playing cards in their inventory, they can use the command <code>/card</code>, which will draw a random card (using the modern English deck format). The uses of this mechanic are up to the player's imagination.  
The only use of the playing cards is in using [[multiplayer]] commands. If the player has playing cards in their inventory, they can use the command <code>/card</code>, which will draw a random card (using the modern English deck format). The uses of this mechanic are up to the player's imagination.


Note that the playing cards cannot be used to improve the player's [[moodles|mood]].
Note that the playing cards cannot be used to improve the player's [[moodles|mood]].


==Distribution==
==Distribution==
Playing cards can be found in [[Containers#Desks|desks]], [[Containers#Bedroom Storage|wardrobes]], library [[Containers#Counters|counters]], or toy store [[Containers#Shelves|shelves]].
The loot distributions can be found in the table(s) below.


== Code ==
<!--BOT FLAG|CardDeck|41.78.16-->
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Clear}}
{{Retrieved|version=40|incver=5}}
<div class="togglebox theme-red">
<pre> item CardDeck
    <div>CardDeck distribution
Weight = 0.2,
        <span class="mw-customtoggle-togglebox-CardDeck" 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>
Type = Normal,
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-CardDeck">
DisplayName = Playing Cards,
    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">
Icon = CardDeck,</pre>
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | all
    | {{ll|Outfit_PokerDealer}}
    | 6.41%
    |-
    | bar
    | {{ll|counter}}
    | 15.1%
    |-
    | barkitchen
    | {{ll|counter}}
    | 15.1%
    |-
    | barstorage
    | {{ll|counter}}
    | 15.1%
    |-
    | bedroom
    | {{ll|crate}}
    | 1.01%
    |-
    | bedroom
    | {{ll|desk}}
    | 3.98%
    |-
    | bedroom
    | {{ll|wardrobe}}
    | 6.29%
    |-
    | beergarden
    | {{ll|counter}}
    | 15.1%
    |-
    | closet
    | {{ll|crate}}
    | 1.01%
    |-
    | closet
    | {{ll|crate}}
    | 19.27%
    |-
    | daycare
    | {{ll|wardrobe}}
    | 6.29%
    |-
    | garagestorage
    | {{ll|crate}}
    | 1.01%
    |-
    | garagestorage
    | {{ll|crate}}
    | 19.27%
    |-
    | garagestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | generalstore
    | {{ll|shelves}}
    | 19.27%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 19.27%
    |-
    | giftstorage
    | {{ll|crate}}
    | 19.27%
    |-
    | giftstore
    | {{ll|counter}}
    | 19.27%
    |-
    | giftstore
    | {{ll|shelves}}
    | 19.27%
    |-
    | gigamart
    | {{ll|shelves}}
    | 19.27%
    |-
    | livingroom
    | {{ll|wardrobe}}
    | 19.27%
    |-
    | office
    | {{ll|desk}}
    | 3.98%
    |-
    | policestorage
    | {{ll|counter}}
    | 3.98%
    |-
    | storageunit
    | {{ll|crate}}
    | 1.01%
    |-
    | storageunit
    | {{ll|crate}}
    | 19.27%
    |-
    | storageunit
    | {{ll|crate}}
    | 23.28%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 1.01%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | toystore
    | {{ll|counter}}
    | 19.27%
    |-
    | toystore
    | {{ll|shelves}}
    | 19.27%
    |-
    | toystorestorage
    | {{ll|crate}}
    | 19.27%
    |-
    | toystorestorage
    | {{ll|shelves}}
    | 19.27%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-CardDeck" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|CardDeck|41.78.16-->
 
==Code==
{{CodeBox |
 
===Item===
[[File:CardDeck.png]] {{ID|Base.CardDeck}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 1746
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item CardDeck
{
    DisplayCategory = Junk,
Weight = 0.2,
Type = Normal,
DisplayName = Playing Cards,
Icon = CardDeck,
WorldStaticModel = CardDeck,
}
}}
}}


==See also==
==See also==
*[[Dice]]
*[[Dice]]


[[Category:items]]
{{Navbox items|junk}}

Latest revision as of 13:34, 30 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Playing Cards
CardDeck Model.png
General
Category
Junk
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
Draw a random card
Technical
Item ID
Base.CardDeck

Playing cards are a miscellaneous item with very little use.

Usage

The only use of the playing cards is in using multiplayer commands. If the player has playing cards in their inventory, they can use the command /card, which will draw a random card (using the modern English deck format). The uses of this mechanic are up to the player's imagination.

Note that the playing cards cannot be used to improve the player's mood.

Distribution

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

CardDeck 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
all Outfit_PokerDealer 6.41%
bar counter 15.1%
barkitchen counter 15.1%
barstorage counter 15.1%
bedroom crate 1.01%
bedroom desk 3.98%
bedroom wardrobe 6.29%
beergarden counter 15.1%
closet crate 1.01%
closet crate 19.27%
daycare wardrobe 6.29%
garagestorage crate 1.01%
garagestorage crate 19.27%
garagestorage crate 23.28%
generalstore shelves 19.27%
generalstorestorage shelves 19.27%
giftstorage crate 19.27%
giftstore counter 19.27%
giftstore shelves 19.27%
gigamart shelves 19.27%
livingroom wardrobe 19.27%
office desk 3.98%
policestorage counter 3.98%
storageunit crate 1.01%
storageunit crate 19.27%
storageunit crate 23.28%
storageunit metal_shelves 1.01%
storageunit metal_shelves 23.28%
toystore counter 19.27%
toystore shelves 19.27%
toystorestorage crate 19.27%
toystorestorage shelves 19.27%

Code

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

Item

CardDeck.png Base.CardDeck
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item CardDeck
	{
	    DisplayCategory = Junk,
		Weight	=	0.2,
		Type	=	Normal,
		DisplayName	=	Playing Cards,
		Icon	=	CardDeck,
		WorldStaticModel = CardDeck,
	}

See also