Refactored some fishing code

Converted some fishing code to kotlin
Implemented crayfish fishing
This commit is contained in:
bushtail
2023-04-01 04:57:58 +00:00
committed by Ryan
parent 2273550fea
commit af99895168
15 changed files with 672 additions and 647 deletions
@@ -31,7 +31,7 @@ object TrawlerLoot {
//val chance = RandomFunction.getSkillSuccessChance(lo, hi, fishLevel)
val chance = (fishLevel.toDouble() - 15.0)*((hi - lo) / (99.0 - 15.0)) + lo
if(RandomFunction.random(0.0, 1.0) < chance) {
return f.item
return Item(f.id)
}
}
}