Credit Card: Difference between revisions

From PZwiki
(Created page)
 
m (Distribution table fix)
 
(26 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{languages|Credit Card}}
{{Header|Project Zomboid|Items|Miscellaneous items|Junk}}
{{header|The Game World|Items|version=Version 40|incver=43}}{{Infobox normal
{{Page version|41.78.16}}
| display_name = Credit Card
{{Infobox item
| name_colour =  
|name=Credit Card
| name_text_colour =  
|model=CreditCard_Model.png
| image = CreditCard.png
|model_width=200px
| image_width = 120px
|icon=CreditCard.png
| weight = 0.1
|icon_name=Credit Card
| function = ''None''
<!--GENERAL-->
| class_name = Base.CreditCard}}A '''credit card''' is currently a useless {{T|item}}, and often considered as ''junk''.
|category=Junk
|weight=0.1
|item_id=Base.CreditCard
}}
A '''credit card''' is currently a useless [[Items|item]], and often considered as ''junk''.


==Usage==
==Usage==
A credit card has no use, being added purely for the purpose of clutter, creating more realism for the {{T|player}} when looting.  
A credit card has no use, being added purely for the purpose of clutter, creating more realism for the [[player]] when looting.


==Distribution==
==Distribution==
Credit cards can be found on [[corpse]]s and in [[purse]]s.


== Code ==
The loot distributions can be found in the table(s) below.
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
<!--BOT FLAG|CreditCard|41.78.16-->
{{Retrieved|version=40|incver=43}}
{{Clear}}
<pre> item CreditCard
<div class="togglebox theme-red">
Weight = 0.1,
    <div>CreditCard distribution
Type = Normal,
        <span class="mw-customtoggle-togglebox-CreditCard" 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>
DisplayName = CreditCard,
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-CreditCard">
Icon = CreditCard,
    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">
</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
    |-
    | Handbag
    | {{ll|Handbag}}
    | 1.61%
    |-
    | Handbag
    | {{ll|Handbag}}
    | 6.41%
    |-
    | Purse
    | {{ll|Purse}}
    | 1.61%
    |-
    | Purse
    | {{ll|Purse}}
    | 6.41%
    |-
    | all
    | {{ll|inventoryfemale}}
    | 1.01%
    |-
    | all
    | {{ll|inventorymale}}
    | 1.01%
    |}
</div>
<div id="vehicles" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
    |-
    | Ambulance
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Carpenter
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Construction Worker
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Distillery
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Doctor
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Electrician
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Farmer
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Fire
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Fisherman
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Fossoil
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | All
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Golf
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Heralds
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Hunter
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Mass Gen Fac
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | McCoy
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Metal Welder
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Painter
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Postal
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Radio
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Ranger
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Spiffo
    | {{ll|Glove Box}}
    | 10.78%
    |-
    | Survivalist
    | {{ll|Glovebox}}
    | 10.78%
    |-
    | Transit
    | {{ll|Glove Box}}
    | 10.78%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-CreditCard" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|CreditCard|41.78.16-->
 
Credit cards can be found on [[corpse]]s and in [[purse]]s.
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 380
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item CreditCard
    {
        DisplayCategory = Junk,
        Weight = 0.1,
        Type = Normal,
        DisplayName = CreditCard,
        Icon = CreditCard,
        WorldStaticModel = CreditCard,
    }
}}
}}


==See also==
==See also==
* [[Purse]]
*[[Purse]]
* [[Wallet]]
*[[Wallet]]
 
{{Navbox items|junk}}

Latest revision as of 19:07, 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]
Credit Card
CreditCard Model.png
General
Category
Junk
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Technical
Item ID
Base.CreditCard

A credit card is currently a useless item, and often considered as junk.

Usage

A credit card has no use, being added purely for the purpose of clutter, creating more realism for the player when looting.

Distribution

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

CreditCard 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
Handbag Handbag 1.61%
Handbag Handbag 6.41%
Purse Purse 1.61%
Purse Purse 6.41%
all inventoryfemale 1.01%
all inventorymale 1.01%
Vehicles
Type Container Effective chance
Ambulance Glove Box 10.78%
Carpenter Glove Box 10.78%
Construction Worker Glove Box 10.78%
Distillery Glove Box 10.78%
Doctor Glove Box 10.78%
Electrician Glove Box 10.78%
Farmer Glove Box 10.78%
Fire Glove Box 10.78%
Fisherman Glove Box 10.78%
Fossoil Glove Box 10.78%
All Glove Box 10.78%
Golf Glove Box 10.78%
Heralds Glove Box 10.78%
Hunter Glove Box 10.78%
Mass Gen Fac Glove Box 10.78%
McCoy Glove Box 10.78%
Metal Welder Glove Box 10.78%
Painter Glove Box 10.78%
Postal Glove Box 10.78%
Radio Glove Box 10.78%
Ranger Glove Box 10.78%
Spiffo Glove Box 10.78%
Survivalist Glove Box 10.78%
Transit Glove Box 10.78%

Credit cards can be found on corpses and in purses.

Code

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

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item CreditCard
    {
        DisplayCategory = Junk,
        Weight	=	0.1,
        Type	=	Normal,
        DisplayName	=	CreditCard,
        Icon	=	CreditCard,
        WorldStaticModel = CreditCard,
    }

See also