JavidPack / ModdersToolkit

A mod for modders to use for modding.
https://forums.terraria.org/index.php?threads/modders-toolkit-a-mod-for-modders-doing-modding.55738/
18 stars 6 forks source link

Add fishing catch drop table tool #11

Closed direwolf420 closed 2 years ago

direwolf420 commented 2 years ago

This PR adds another tool (next to the NPC spawn tool) to determine the drop table of fishing catches. It works similarly to the NPC spawn tool UI wise. Functionality wise it requires the player to be aligned vertically with a pool of liquid, then it seeks out the surface of a pool, and spawns a bobber above it. The player is then "spoofed" to be above the bobber, with all "wet" flags set to false, and AI is invoked repeatedly to collect data. Bobber AI is modified in that period to always generate a new item each cycle.