}
}
if (fish.size() <= 0) {
return null;
}
ObjectFishDef thisFish = fish.get(DataConversions.random(0,
fish.size() - 1));
int levelDiff = fishingLevel - thisFish.getReqLevel();
if (levelDiff < 0) {
return null;
}
return DataConversions.percentChance(offsetToPercent(levelDiff)) ? thisFish
: null;