Mouse Trap: Difference between revisions
(update to 41.78.16: new header, infobox, code) |
m (Automated Formatting) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Items|Trapping}} | |||
{{Header | |||
{{Page version|41.78.16}} | {{Page version|41.78.16}} | ||
{{Infobox tile | {{Infobox tile | ||
Line 9: | Line 8: | ||
|category=Item | |category=Item | ||
|weight=0.3 | |weight=0.3 | ||
|size=1 | |||
|function=Catch [[animals]] | |||
<!--Properties--> | <!--Properties--> | ||
|health=50 | |health=50 | ||
Line 19: | Line 20: | ||
|item_id=Base.TrapMouse | |item_id=Base.TrapMouse | ||
|tile_id=constructedobjects_01_18 | |tile_id=constructedobjects_01_18 | ||
}}A '''mouse trap''' is a small sized trap used by beginner trappers. | }} | ||
A '''mouse trap''' is a small-sized trap used by beginner trappers. | |||
==Usage== | ==Usage== | ||
Line 34: | Line 36: | ||
|} | |} | ||
==Distribution== | ==Distribution== | ||
The loot distributions can be found in the table(s) below. | The loot distributions can be found in the table(s) below. | ||
Line 41: | Line 42: | ||
! colspan="4" | Containers | ! colspan="4" | Containers | ||
|- | |- | ||
!Building/Room | ! Building/Room | ||
!Container | ! Container | ||
! style="width: 3.2em;" |Rolls | ! style="width: 3.2em;" | Rolls | ||
! style="width: 3.2em;" |Chance | ! style="width: 3.2em;" | Chance | ||
|- | |- | ||
| | |closet | ||
| [[ | |[[crate]] | ||
| 4 | |4 | ||
| | |1 | ||
|- | |- | ||
| | |gardenstore | ||
| [[counter]] | |[[counter]] | ||
| 4 | |4 | ||
| | |8 | ||
|- | |- | ||
| | |gasstorage | ||
| [[counter]] | |[[counter]] | ||
| 4 | |4 | ||
| | |1 | ||
|- | |- | ||
| | |kitchen | ||
| [[counter]] | |[[counter]] | ||
| 4 | |4 | ||
| 4 | |8 | ||
|- | |||
|toolstore | |||
|[[counter]] | |||
|4 | |||
|4 | |||
|} | |} | ||
==Code== | ==Code== | ||
{{CodeBox | {{CodeBox| | ||
===Item=== | |||
{{CodeSnip | |||
| lang = java | | lang = java | ||
| line = | | line = true | ||
| start = 2312 | |||
| source = newitems.txt | | source = newitems.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41.78.16 | | version = 41.78.16 | ||
| code = | | code = | ||
item TrapMouse | |||
{ | { | ||
DisplayCategory = Trapping, | DisplayCategory = Trapping, | ||
Line 86: | Line 95: | ||
MetalValue = 2, | MetalValue = 2, | ||
} | } | ||
}} | |||
===Tile=== | ===Tile=== | ||
{{CodeSnip | {{CodeSnip | ||
Line 107: | Line 117: | ||
==See also== | ==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);