Mouse Trap: Difference between revisions
m (→See also) |
m (Distribution table fix) |
||
(24 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Trapping}} | ||
{{ | {{Page version|41.78.16}} | ||
| | {{Infobox tile | ||
|name=Mouse Trap | |||
|image=MouseTrap.png | |||
| image = MouseTrap.png | |icon=Mousetrap.png | ||
| | |icon_name=Mouse Trap | ||
|category=Item | |||
| | |weight=0.3 | ||
|size=1 | |||
| category = Item | |function=Catch [[animals]] | ||
| weight = 0.3 | <!--Properties--> | ||
| strength = 50 | |health=50 | ||
| animals = [[File:Mouse.png|link=Mouse]] [[File:Rat.png|link=Rat]] | |strength=50 | ||
| | |animals=[[File:Mouse.png|link=Mouse]] [[File:Rat.png|link=Rat]] | ||
| | <!--Disassemble--> | ||
| | |destroy=true | ||
}}A '''mouse trap''' is a small sized trap used by beginner trappers. | |products=[[Scrap Wood]] | ||
<!--Technical--> | |||
|item_id=Base.TrapMouse | |||
|tile_id=constructedobjects_01_18 | |||
}} | |||
A '''mouse trap''' is a small-sized trap used by beginner trappers. | |||
==Usage== | ==Usage== | ||
A mouse trap is one of several traps used in | A mouse trap is one of several traps used in [[trapping]] to catch a variety of [[animals|wildlife]]. However, it is the only trap that cannot be crafted. | ||
===Trapping=== | ===Trapping=== | ||
{{Main|Trapping}} | {{Main|Trapping}} | ||
Cage traps can be used to catch | Cage traps can be used to catch [[mouse|mice]] and [[rat]]s. | ||
{| width="100px" style="text-align:left;" | {| width="100px" style="text-align:left;" | ||
|+ '''''Catch chance:''''' | |+ '''''Catch chance:''''' | ||
Line 31: | Line 37: | ||
==Distribution== | ==Distribution== | ||
The loot distributions can be found in the table(s) below. | |||
<!--BOT FLAG|TrapMouse|41.78.16--> | |||
{{Clear}} | |||
<div class="togglebox theme-red"> | |||
<div>TrapMouse distribution | |||
<span class="mw-customtoggle-togglebox-TrapMouse" 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> | |||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-TrapMouse"> | |||
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"> | |||
<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 | |||
|- | |||
| closet | |||
| {{ll|crate}} | |||
| 23.28% | |||
|- | |||
| garagestorage | |||
| {{ll|crate}} | |||
| 23.28% | |||
|- | |||
| gardenstore | |||
| {{ll|counter}} | |||
| 19.27% | |||
|- | |||
| gardenstore | |||
| {{ll|metal_shelves}} | |||
| 19.27% | |||
|- | |||
| gardenstore | |||
| {{ll|shelves}} | |||
| 19.27% | |||
|- | |||
| gasstorage | |||
| {{ll|counter}} | |||
| 23.28% | |||
|- | |||
| janitor | |||
| {{ll|counter}} | |||
| 23.28% | |||
|- | |||
| janitor | |||
| {{ll|metal_shelves}} | |||
| 23.28% | |||
|- | |||
| kitchen | |||
| {{ll|counter}} | |||
| 19.27% | |||
|- | |||
| livingroom | |||
| {{ll|counter}} | |||
| 19.27% | |||
|- | |||
| producestorage | |||
| {{ll|metal_shelves}} | |||
| 19.27% | |||
|- | |||
| schoolstorage | |||
| {{ll|counter}} | |||
| 23.28% | |||
|- | |||
| storageunit | |||
| {{ll|crate}} | |||
| 23.28% | |||
|- | |||
| toolstore | |||
| {{ll|counter}} | |||
| 10.78% | |||
|- | |||
| toolstore | |||
| {{ll|shelves}} | |||
| 10.78% | |||
|- | |||
| zippeestorage | |||
| {{ll|counter}} | |||
| 23.28% | |||
|} | |||
</div> | |||
</div><div style="clear: both;"></div> | |||
{| class="wikitable theme-red" style="width: 98%;" | |||
|+ {{ll|Foraging}} | |||
! rowspan="2" | Amount | |||
! rowspan="2" | Skill level | |||
! rowspan="2" | Biomes | |||
! colspan="4" style="text-align: center;" | Weather modifiers | |||
! colspan="3" style="text-align: center;" | Month modifiers | |||
|- | |||
! Snow | |||
! Rain | |||
! Day | |||
! Night | |||
! Months available | |||
! Bonus months | |||
! Malus months | |||
|- | |||
| --- | |||
| 8 | |||
| DeepForest 1 | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
|} | |||
</div></div><div class="toggle large mw-customtoggle-togglebox-TrapMouse" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|TrapMouse|41.78.16--> | |||
==Code== | ==Code== | ||
{{CodeBox| | |||
===Item=== | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 2312 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item TrapMouse | |||
{ | |||
DisplayCategory = Trapping, | |||
Weight = 0.3, | |||
Type = Normal, | |||
DisplayName = Mouse Trap, | |||
Icon = Mousetrap, | |||
Trap = true, | |||
MetalValue = 2, | |||
} | |||
}} | |||
===Tile=== | |||
{{CodeSnip | |||
| lang = lua | |||
| line = false | |||
| path = ProjectZomboid\media\lua\server\Traps | |||
| source = TrapDefinition.lua | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
local mouseTrap = {}; | |||
mouseTrap.type = "Base.TrapMouse"; | |||
mouseTrap.sprite = "constructedobjects_01_18"; | |||
mouseTrap.closedSprite = "constructedobjects_01_19"; | |||
mouseTrap.trapStrength = 50; | |||
mouseTrap.destroyItem = "Base.UnusableWood"; | |||
table.insert(Traps, mouseTrap); | |||
}} | |||
}} | |||
==See also== | ==See also== | ||
* | *[[Trap Crate]] | ||
* | *[[Trap Box]] | ||
* | *[[Snare Trap]] | ||
* | *[[Cage Trap]] | ||
* | *[[Stick Trap]] | ||
{{Navbox | {{Navbox items|survival}} |
Latest revision as of 19:30, 30 April 2024
A mouse trap is a small-sized trap used by beginner trappers.
Usage
A mouse trap is one of several traps used in trapping to catch a variety of wildlife. However, it is the only trap that cannot be crafted.
Trapping
- Main article: Trapping
Cage traps can be used to catch mice and rats.
30% | |
25% |
Distribution
The loot distributions can be found in the table(s) below.
Building/Room | Container | Effective chance |
---|---|---|
closet | crate | 23.28% |
garagestorage | crate | 23.28% |
gardenstore | counter | 19.27% |
gardenstore | metal_shelves | 19.27% |
gardenstore | shelves | 19.27% |
gasstorage | counter | 23.28% |
janitor | counter | 23.28% |
janitor | metal_shelves | 23.28% |
kitchen | counter | 19.27% |
livingroom | counter | 19.27% |
producestorage | metal_shelves | 19.27% |
schoolstorage | counter | 23.28% |
storageunit | crate | 23.28% |
toolstore | counter | 10.78% |
toolstore | shelves | 10.78% |
zippeestorage | counter | 23.28% |
Amount | Skill level | Biomes | Weather modifiers | Month modifiers | |||||
---|---|---|---|---|---|---|---|---|---|
Snow | Rain | Day | Night | Months available | Bonus months | Malus months | |||
--- | 8 | DeepForest 1 | - | - | - | - | - | - | - |
Code
Item
Source: ProjectZomboid\media\scripts\newitems.txt
item TrapMouse
{
DisplayCategory = Trapping,
Weight = 0.3,
Type = Normal,
DisplayName = Mouse Trap,
Icon = Mousetrap,
Trap = true,
MetalValue = 2,
}
Tile
Source: ProjectZomboid\media\lua\server\Traps\TrapDefinition.lua
local mouseTrap = {};
mouseTrap.type = "Base.TrapMouse";
mouseTrap.sprite = "constructedobjects_01_18";
mouseTrap.closedSprite = "constructedobjects_01_19";
mouseTrap.trapStrength = 50;
mouseTrap.destroyItem = "Base.UnusableWood";
table.insert(Traps, mouseTrap);