Mouse Trap: Difference between revisions

From PZwiki
m (Automated navbox update)
m (Distribution table update)
(4 intermediate revisions by the same user not shown)
Line 21: Line 21:
|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.


Line 40: Line 39:
The loot distributions can be found in the table(s) below.
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;"
<!--BOT FLAG|TrapMouse|41.78.16-->
! colspan="4" | Containers
{{clear}}
|-
<div class="togglebox theme-red">
!Building/Room
    <div>TrapMouse distribution
!Container
        <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>
! style="width: 3.2em;" |Rolls
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-TrapMouse">
! style="width: 3.2em;" |Chance
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
|-
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
| rowspan="1"|gardenstore
    |+ {{ll|Containers}}
| [[counter]]
    ! Building / Room
| 4
    ! Container
| 8
    ! Rolls
|-
    ! Chance
| rowspan="1"|gasstorage
    |-
| [[counter]]
    | closet
| 4
    | {{ll|crate}}
| 1
    | 4
|-
    | 10.0
| rowspan="1"|kitchen
    |-
| [[counter]]
    | gardenstore
| 4
    | {{ll|counter}}
| 8
    | 4
|-
    | 8.0
| rowspan="1"|toolstore
    |-
| [[counter]]
    | gasstorage
| 4
    | {{ll|counter}}
| 4
    | 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 = false
   | 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
item TrapMouse
     {
     {
         DisplayCategory = Trapping,
         DisplayCategory = Trapping,
Line 89: Line 132:
         MetalValue = 2,
         MetalValue = 2,
     }
     }
  }}
}}
 
===Tile===
===Tile===
{{CodeSnip
{{CodeSnip
Line 116: Line 160:
*[[Stick Trap]]
*[[Stick Trap]]


{{Navbox equipment|survival}}
{{Navbox items|survival}}

Revision as of 16:08, 24 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Mouse Trap
MouseTrap.png
[[File:{{{icon2}}}|Mouse Trap|]]
[[File:{{{icon3}}}|Mouse Trap|]]
[[File:{{{icon4}}}|Mouse Trap|]]
[[File:{{{icon5}}}|Mouse Trap|]]
General
Category
Item
EncumbranceMoodle Icon HeavyLoad.png
0.3
Size
1 tile
Function
Catch animals
Properties
Health
50
Strength
50
Animals
Mouse.png Rat.png
Destroy
Products
Technical
Item ID(s)
Base.TrapMouse
Tile ID(s)
constructedobjects_01_18

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.

Catch chance:
Mouse 30%
Rat 25%

Distribution

The loot distributions can be found in the table(s) below.

TrapMouse distribution Show / Hide
Containers
Building / Room Container Rolls Chance
closet crate 4 10.0
gardenstore counter 4 8.0
gasstorage counter 4 10.0
kitchen counter 4 8.0
toolstore counter 4 4.0
Foraging
Amount Skill level Biomes Weather modifiers Month modifiers
Snow Rain Day Night Months available Bonus months Malus months
--- 8 DeepForest 1 - - - - - - -

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Item

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
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

Retrieved: Build 41.78.16
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