Project Zomboid

Project Zomboid

Trees Have Loot
Showing 1-9 of 9 entries
Update: Jan 12 @ 8:03am

Fixed: CutBranchFromTree action now has 50% chance of giving a Tree Branch and 50% chance of giving a Sapling.

Update: Jan 2 @ 5:38pm

Improved:
Heavily reworked the SearchInTreeAction code so that it is cleaner, easier to maintain and easier to escalate.
Reduced time of CutBranchFromTree action so that it matches more the animation time.
Reworked:
Loot tables so that they are easier to escalate with new loot. Also, added Saplings, Branches and Broken branches as possible items.
Fixed:
Lua error when equipping a Sharped Stone and clicking a tree.
Still in To-Do:
Add possibility to obtain Saplings, Branches and Broken branches from CutBranchFromTree action.
Add endurance loss when obtaining Branches (now, only Twigs and Saplings generate endurance loss).
Add sound effect when cutting and when pine cones fall on floor from pines.

Update: Dec 19, 2024 @ 5:10pm

B42 Compatibility Patch.
It should work all fine, however if something doesn't work let me know.
Instead of obtaining Tree Branches, now the player obtains Saplings as it is the new item used for Spears.
However I will revisit the loot that can be obtained in the near future to include B42 things.

Update: Sep 7, 2023 @ 2:30pm

- Only trees of Size higher than 4 will give branches.
- Halved the chances for a tree to keep having branches after cutting one.
- Removed Branches loot from trees with size 2-3.
- Fixed a bug where looting trees of size exactly 2 was never giving loot.
- When there isn't more loot or there aren't more branches in the tree (or small tree), the options will be displayed in red letters instead of not showing them.

Update: May 28, 2023 @ 12:05pm

Improved the Halo Text for both Actions (Search and Cut) when an item is obtained

Update: Apr 5, 2023 @ 2:24pm

Fixed a bug with search action in low levels

Update: Apr 4, 2023 @ 4:40pm

- Adjusted loot tables so twigs are the most common item in a search action.
- Fruits can now spawn with a different state: fresh, stale and rotten.
- Added DeadBird, DeadSquirrel, DeadMouse and DeadRat for some loot tables which can also spawn with a different state: fresh, stale and rotten.
- Increased the chances of obtaining an item after a search is performed. At Lv7+ of Foraging if a search is performed in a tree of size 6 (max size) there is a 100% of chances of getting something (balanced by next point).
- Now each tree can deplete its loot after a search is performed. This loot is renewed after 24 hours (similar to the old foraging zones).
- Halved XP when an item is found.
- Added a Halo text with the obtained item and XP earned after performing a search action that found something.

Update: Apr 1, 2023 @ 7:19am

1) Added Chinese, Russian, Turkish, Portuguese, Polish, German and Thai translations
2) Trees can have fruits.
- The trees called "cockspurhawthorn" (Will attach images) can have fruits (I choosed this one because were the most similar to the real ones and also because they are not that common so people can't abuse).
- When performing a "Search" action, a new roll may occurs. This roll will be based on a couple of conditions as: Tree is a fruit tree, tree size is 4 or bigger, world temperature is above 10 (You should not be able to get fruits during winter or the colder autumns), player did not obtain already a Tree Branch, Twig or Wild Egg and 7 days already happened after the last fruit was obtained (explained later).
- If all above conditions are met, a roll is done, this roll will be as: baseValue = 45 - currentTemperature - foragingLevel - treeSize. This means that on higher temperatures, with more foraging level and bigger trees more chances of getting a fruit. If the number generated by the roll is 0, a fruit is given to the player.
- The generated fruit will be one of the next list: "Base.Lemon","Base.Lime","Base.Grapefruit","Base.Peach","Base.Pear","Base.Orange","Base.Apple". And that tree from now on will only give the generated fruit forever.
- After a fruit is given a roll between 0 and the tree size occurs, if 0, then that tree doesn't have more fruits until 7 days passes.
3) After a Search action if the player obtained an item (either a fruit or the common loot table), foraging XP is given.

Update: Mar 23, 2023 @ 4:02pm