Trap Box: Difference between revisions
(Updated catch chance based on the in-game file and fixed typo.) |
(Add distro table) |
||
(25 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Trapping}} | ||
{{ | {{Page version|41.78.16}} | ||
| | {{Infobox tile | ||
|name=Trap Box | |||
|image=BoxTrapAnim.gif | |||
| image = BoxTrapAnim.gif | |icon=TrapBox.png | ||
| | |icon_name=Trap Box | ||
<!--General--> | |||
| | |category=Trapping | ||
|weight=1.0 | |||
| category = | |size=1 | ||
| weight = 1.0 | |function=Catch [[animals]] | ||
| strength = 15 | <!--Properties--> | ||
| animals = [[File:Rabbit.png|link=Rabbit]] [[File:Squirrel.png|link=Squirrel]] | |health=50 | ||
| | |strength=15 | ||
| ingredients = 4 × | |animals=[[File:Rabbit.png|link=Rabbit]] [[File:Squirrel.png|link=Squirrel]] | ||
| | <!--Build--> | ||
}}A '''trap box''' is a medium sized trap used by apprentice trappers. | |crafting=true | ||
|build_skill=[[The Hunter Magazine|The Hunter Magazine Vol. 3]] | |||
|build_skill2=[[Carpentry]] | |||
|build_skill3=[[Trapping]] | |||
|build_level2=1 | |||
|build_level3=2 | |||
|build_tool_tag=Saw | |||
|ingredients=[[Plank]] × 4<br>[[Nails]] × 7 | |||
<!--Disassemble--> | |||
|destroy=true | |||
|products=[[Scrap Wood]]<br>[[Nails]] × 2 | |||
<!--Technical--> | |||
|item_id=Base.TrapBox | |||
|tile_id=constructedobjects_01_4 | |||
}} | |||
A '''trap box''' is a medium sized trap used by apprentice trappers. | |||
==Usage== | ==Usage== | ||
A trap box is one of several traps used in | A trap box is one of several traps used in [[trapping]] to catch a variety of [[animals|wildlife]]. | ||
===Trapping=== | ===Trapping=== | ||
{{Main|Trapping}} | {{Main|Trapping}} | ||
Trap boxes can be used to catch | Trap boxes can be used to catch [[rabbit]]s and [[squirrel]]s. | ||
{| width="100px" style="text-align:left;" | {| width="100px" style="text-align:left;" | ||
|+ '''''Catch chance:''''' | |+ '''''Catch chance:''''' | ||
Line 30: | Line 46: | ||
|} | |} | ||
== Crafting == | ==Crafting== | ||
To craft a trap box, the player must have picked either the " | To craft a trap box, the player must have picked either the "[[Occupation|Park Ranger" occupation]] or [[Traits|"Hunter" trait]] during character creation. Otherwise it will be learnt after reaching trapping level 2 and [[carpentry]] level 1, or reading ''[[The Hunter Magazine|The Hunter Magazine Vol.3]]'' | ||
{{Crafting table | |||
{{ | ===Trapping=== | ||
{{ | {{Main|Trapping}} | ||
{{Crafting/sandbox2 | |||
|trap_box | |||
}} | |||
==Distribution== | |||
The loot distributions can be found in the table(s) below. | |||
<!--BOT FLAG|TrapBox|41.78.16--> | |||
{{Clear}} | |||
<div class="togglebox theme-red"> | |||
<div>TrapBox distribution | |||
<span class="mw-customtoggle-togglebox-TrapBox" 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-TrapBox"> | |||
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits. <div class="toggle-content"> | |||
<div class="pz-container"> | |||
<div id="containers" style="flex-basis: 30%;"> | |||
{| class="wikitable theme-red sortable" style="margin-right: 15px; width: 95%;" | |||
|+ {{ll|Containers}} | |||
! Building/Room | |||
! Container | |||
! Effective chance | |||
|- | |||
| closet | |||
| {{ll|crate}} | |||
| 23.28% | |||
|- | |||
| garagestorage | |||
| {{ll|crate}} | |||
| 23.28% | |||
|- | |||
| storageunit | |||
| {{ll|crate}} | |||
| 23.28% | |||
|} | |||
</div> | |||
<div id="vehicles" style="flex-basis: 30%;"> | |||
{| class="wikitable theme-red sortable" style="margin-right: 15px; width: 95%;" | |||
|+ {{ll|Vehicles}} | |||
! Type | |||
! Container | |||
! Effective chance | |||
|- | |||
| Hunter | |||
| {{ll|Truck Bed}} | |||
| 10.78% | |||
|- | |||
| Ranger | |||
| {{ll|Truck Bed}} | |||
| 10.78% | |||
|} | |||
</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-TrapBox" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|TrapBox|41.78.16--> | |||
==Code== | ==Code== | ||
{{CodeBox| | |||
===Item=== | |||
{{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 2323 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item TrapBox | |||
{ | |||
DisplayCategory = Trapping, | |||
Weight = 1, | |||
Type = Normal, | |||
DisplayName = Trap Box, | |||
Icon = TrapBox, | |||
Trap = true, | |||
} | |||
}} | |||
===Tile=== | |||
{{CodeSnip | |||
| lang = lua | |||
| line = false | |||
| path = ProjectZomboid\media\lua\server\Traps | |||
| source = TrapDefinition.lua | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
local trapBox = {}; | |||
trapBox.type = "Base.TrapBox"; | |||
trapBox.sprite = "constructedobjects_01_4"; | |||
trapBox.northSprite = "constructedobjects_01_7"; | |||
trapBox.closedSprite = "constructedobjects_01_5"; | |||
trapBox.northClosedSprite = "constructedobjects_01_6"; | |||
trapBox.trapStrength = 15; | |||
trapBox.destroyItem = { "Base.UnusableWood", "Base.Nails", "Base.Nails" }; | |||
table.insert(Traps, trapBox); | |||
}} | |||
}} | |||
==See also== | ==See also== | ||
* | *[[Cage Trap]] | ||
* | *[[Trap Crate]] | ||
* | *[[Snare Trap]] | ||
*[[Stick Trap]] | |||
{{Navbox | {{Navbox items|survival}} |
Latest revision as of 05:48, 5 May 2024
A trap box is a medium sized trap used by apprentice trappers.
Usage
A trap box is one of several traps used in trapping to catch a variety of wildlife.
Trapping
- Main article: Trapping
Trap boxes can be used to catch rabbits and squirrels.
30% | |
25% |
Crafting
To craft a trap box, the player must have picked either the "Park Ranger" occupation or "Hunter" trait during character creation. Otherwise it will be learnt after reaching trapping level 2 and carpentry level 1, or reading The Hunter Magazine Vol.3
Trapping
- Main article: Trapping
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Trap Box |
Plank ×4 Nails ×7 |
Saw (tag) |
Carpentry 1 (and) Trapping 2 |
none | 1 Carpentry |
Distribution
The loot distributions can be found in the table(s) below.
Building/Room | Container | Effective chance |
---|---|---|
closet | crate | 23.28% |
garagestorage | crate | 23.28% |
storageunit | crate | 23.28% |
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 TrapBox
{
DisplayCategory = Trapping,
Weight = 1,
Type = Normal,
DisplayName = Trap Box,
Icon = TrapBox,
Trap = true,
}
Tile
Source: ProjectZomboid\media\lua\server\Traps\TrapDefinition.lua
local trapBox = {};
trapBox.type = "Base.TrapBox";
trapBox.sprite = "constructedobjects_01_4";
trapBox.northSprite = "constructedobjects_01_7";
trapBox.closedSprite = "constructedobjects_01_5";
trapBox.northClosedSprite = "constructedobjects_01_6";
trapBox.trapStrength = 15;
trapBox.destroyItem = { "Base.UnusableWood", "Base.Nails", "Base.Nails" };
table.insert(Traps, trapBox);