Mouse Trap: Difference between revisions
m (Automated template formatting) |
(update to 41.78.16: new header, infobox, code) |
||
Line 1: | Line 1: | ||
{{Languages}} | {{Languages}} | ||
{{Header|Project Zomboid|Items| | {{Header/sandbox2|Project Zomboid|Items|Trapping}} | ||
{{Infobox | {{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 | |category=Item | ||
|weight=0.3 | |weight=0.3 | ||
<!--Properties--> | |||
|health=50 | |||
|strength=50 | |strength=50 | ||
|animals=[[File:Mouse.png|link=Mouse]] [[File:Rat.png|link=Rat]] | |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 '''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 72: | Line 74: | ||
| source = newitems.txt | | source = newitems.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41 | | version = 41.78.16 | ||
| code = | | code = | ||
item TrapMouse | 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); | |||
}} | }} | ||
}} | }} |
Revision as of 12:07, 19 February 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 |
gardenstore | counter | 4 | 8 |
gasstorage | counter | 4 | 1 |
kitchen | counter | 4 | 8 |
toolstore | counter | 4 | 4 |
Code
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);