Mouse Trap: Difference between revisions
ColonelJayce (talk | contribs) (Edited this page to make it more consistent with other pages) |
m (Automated Formatting) |
||
(26 intermediate revisions by 11 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 | |||
|icon=Mousetrap.png | |||
|icon_name=Mouse Trap | |||
|category=Item | |||
|weight=0.3 | |||
|size=1 | |||
|function=Catch [[animals]] | |||
<!--Properties--> | |||
|health=50 | |||
|strength=50 | |||
|animals=[[File:Mouse.png|link=Mouse]] [[File:Rat.png|link=Rat]] | |||
<!--Disassemble--> | |||
|destroy=true | |||
|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. | |||
A | ==Usage== | ||
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=== | ||
{{Main|Trapping}} | |||
Cage traps can be used to catch [[mouse|mice]] and [[rat]]s. | |||
{| width="100px" style="text-align:left;" | |||
|+ '''''Catch chance:''''' | |||
| [[File:Mouse.png|32px|link=Dead Mouse|Mouse]] || 30% | |||
|- | |- | ||
| [[File:Rat.png|32px|link=Dead Rat|Rat]] || 25% | |||
|} | |||
! | |||
! | ==Distribution== | ||
! | The loot distributions can be found in the table(s) below. | ||
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;" | |||
! colspan="4" | Containers | |||
|- | |||
! Building/Room | |||
! Container | |||
! style="width: 3.2em;" | Rolls | |||
! style="width: 3.2em;" | Chance | |||
|- | |- | ||
|closet | |||
| [[ | |[[crate]] | ||
| | |4 | ||
| | |1 | ||
| [[ | |- | ||
| | |gardenstore | ||
|[[counter]] | |||
|4 | |||
|8 | |||
|- | |||
|gasstorage | |||
|[[counter]] | |||
|4 | |||
|1 | |||
|- | |||
|kitchen | |||
|[[counter]] | |||
|4 | |||
|8 | |||
|- | |- | ||
|toolstore | |||
|[[counter]] | |||
|4 | |||
|4 | |||
|} | |} | ||
== | ==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== | |||
*[[Trap Crate]] | |||
*[[Trap Box]] | |||
*[[Snare Trap]] | |||
*[[Cage Trap]] | |||
*[[Stick Trap]] | |||
{{Navbox items|survival}} |
Revision as of 10:24, 14 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.
Containers | |||
---|---|---|---|
Building/Room | Container | Rolls | Chance |
closet | crate | 4 | 1 |
gardenstore | counter | 4 | 8 |
gasstorage | counter | 4 | 1 |
kitchen | counter | 4 | 8 |
toolstore | counter | 4 | 4 |
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);