Mouse Trap: Difference between revisions
m (Removed {{clear}} line above ==Distribution==) |
m (Distribution table update) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 20: | 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 38: | Line 39: | ||
The loot distributions can be found in the table(s) below. | 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"> | |||
<div class="toggle-content"><div style="display: flex;"><div style="float:left;"> | |||
|- | {| class="wikitable theme-red" style="margin-right:15px; width:95%;" | ||
| | |+ {{ll|Containers}} | ||
| | ! Building / Room | ||
| 4 | ! Container | ||
| 8 | ! Rolls | ||
|- | ! Chance | ||
|- | |||
| | | closet | ||
| 4 | | {{ll|crate}} | ||
| | | 4 | ||
|- | | 10.0 | ||
|- | |||
| | | gardenstore | ||
| 4 | | {{ll|counter}} | ||
| 8 | | 4 | ||
|- | | 8.0 | ||
| rowspan=" | |- | ||
| | | gasstorage | ||
| 4 | | {{ll|counter}} | ||
| | | 4 | ||
|} | | 10.0 | ||
|- | |||
| kitchen | |||
| {{ll|counter}} | |||
| 4 | |||
| 8.0 | |||
|- | |||
| toolstore | |||
| {{ll|counter}} | |||
| 4 | |||
| 4.0 | |||
|} | |||
</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| | {{CodeBox| | ||
===Item=== | ===Item=== | ||
{{CodeSnip | {{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 87: | Line 132: | ||
MetalValue = 2, | MetalValue = 2, | ||
} | } | ||
}} | |||
===Tile=== | ===Tile=== | ||
{{CodeSnip | {{CodeSnip | ||
Line 114: | Line 160: | ||
*[[Stick Trap]] | *[[Stick Trap]] | ||
{{Navbox | {{Navbox items|survival}} |
Revision as of 16:08, 24 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.
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);