Fishing value corrections.
Contributed by Mantra.
This commit is contained in:
		| @@ -1,8 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./xsd/Fishing.xsd"> | ||||
| 	<baitDistance min="90" max="250" /> | ||||
| 	<experienceRate min="650" max="700" /> | ||||
| 	<skillPointsRate min="40" max="45" /> | ||||
| 	<experienceRate min="1" max="1" /> | ||||
| 	<skillPointsRate min="0.033" max="0.033" /> | ||||
| 	<baits> | ||||
| 		<bait itemId="45495" level="1" minPlayerLevel="20" chance="64" timeMin="45000" timeMax="45000" waitMin="15000" waitMax="15000"> <!-- Normal Bait --> | ||||
| 			<catch itemId="45473" /> <!-- Blue Mackerel --> | ||||
|   | ||||
| @@ -144,7 +144,7 @@ public class Fishing | ||||
| 		final int minPlayerLevel = baitData == null ? 20 : baitData.getMinPlayerLevel(); | ||||
| 		if (_player.getLevel() < minPlayerLevel) | ||||
| 		{ | ||||
| 			if (minPlayerLevel == 85) | ||||
| 			if (minPlayerLevel == 20) | ||||
| 			{ | ||||
| 				_player.sendPacket(SystemMessageId.YOU_CANNOT_FISH_AS_YOU_DO_NOT_MEET_THE_REQUIREMENTS); | ||||
| 			} | ||||
| @@ -287,7 +287,6 @@ public class Fishing | ||||
| 				final int numRewards = baitData.getRewards().size(); | ||||
| 				if (numRewards > 0) | ||||
| 				{ | ||||
| 					// TODO: verify, totally guessed | ||||
| 					final FishingData fishingData = FishingData.getInstance(); | ||||
| 					final int lvlModifier = _player.getLevel() * _player.getLevel(); | ||||
| 					_player.addExpAndSp(Rnd.get(fishingData.getExpRateMin(), fishingData.getExpRateMax()) * lvlModifier, Rnd.get(fishingData.getSpRateMin(), fishingData.getSpRateMax()) * lvlModifier, true); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDev
					MobiusDev