Commit Graph

8 Commits

Author SHA1 Message Date
BrainFart17
3781794be3 (fishing) Fix bugs and change random catch type selection
- Implement catch type random selection from decompiled java 1.7.2 code instead of using a WeighedRandomItemArray
- Fix fishingTreasuresArray length being set to 5 instead of 6
- Remove testing values for nibbleTimer
- Cast maxDamage of item to double before applying damage.
- Add include for EnchantmentCategory in LureEnchantment.cpp and LuckOfTheSeaEnchantment.cpp.
- sky obstruction is now checked before other checks.
2026-04-07 16:04:52 -07:00
BrainFart17
e17e26ff99 Fix bugs and improve fishing mechanics parity with TU 31
- Based fishing mechanics off of decompiled java 1.7.2 instead of 1.12.
- Added check for sky access
- Switching between different fishing rods now reels the line back in
- Fixed duplicate assignment in fishingTreasuresArray
- Remove testing weights from catchTypeArray
- Make lureLevel and luckLevel member variables of FishingHook that are calculated upon initialization instead of recalculating every tick.
- Changed random nibbleTimer range from 5 - 30 secs to 5 - 45 secs
- Fixed out of order and incorrect assignments of fishingJunkArray
- Values are now clamped to prevent unintended behavior
- Lure now affects loot rates.
2026-04-07 08:00:13 -07:00
BrainFart17
af22ca5e7a Update fishing mechanics for better parity with TU 31 2026-04-06 16:39:09 -07:00
BrainFart17
97a82c20ef Use Java 1.12 source code for loot table, clean up code. 2026-04-06 01:21:36 -07:00
BrainFart17
406e7e2f06 Fix formatting error 2026-04-05 18:38:34 -07:00
BrainFart17
6bc57b2b97 Fix minor typo in magic number 2026-04-05 18:16:49 -07:00
BrainFart17
f0b28416c0 Add fishing stuff from TU 31 2026-04-05 17:38:06 -07:00
BrainFart17
d75e167f12 Add fishinghelper and lureenchantment 2026-04-04 06:58:01 -07:00