Add option to drop extra fish

Allows enabling of old fishing mechanic where fish was always caught,
even when a treasure was found
This commit is contained in:
TfT_02 2014-02-15 11:43:54 +01:00
parent d407f85704
commit a9f800ac68
4 changed files with 10 additions and 1 deletions

View File

@ -7,6 +7,8 @@ Key:
! Change
- Removal
Version 1.5.00-dev
Version 1.4.08
+ Added a new skill; Alchemy. Special thanks to EasyMFnE for creating this!
+ Added SecondaryAbilityType enum, and new SecondaryAbilityWeightedActivationCheckEvent, fired when a secondary ability checkes its activation chances

View File

@ -451,6 +451,7 @@ public class Config extends AutoUpdateConfigLoader {
/* Fishing */
public boolean getFishingDropsEnabled() { return config.getBoolean("Skills.Fishing.Drops_Enabled", true); }
public boolean getFishingExtraFish() { return config.getBoolean("Skills.Fishing.Extra_Fish", true); }
/* Mining */
public Material getDetonatorItem() { return Material.matchMaterial(config.getString("Skills.Mining.Detonator_Name", "FLINT_AND_STEEL")); }

View File

@ -347,6 +347,10 @@ public class FishingManager extends SkillManager {
player.sendMessage(LocaleLoader.getString("Fishing.Ability.TH.MagicFound"));
}
if (Config.getInstance().getFishingExtraFish()) {
Misc.dropItem(player.getEyeLocation(), fishingCatch.getItemStack());
}
fishingCatch.setItemStack(treasureDrop);
}
}

View File

@ -287,8 +287,10 @@ Skills:
Excavation:
Level_Cap: 0
Fishing:
Drops_Enabled: true
Level_Cap: 0
Drops_Enabled: true
# Always catch fish, even when treasure is found
Extra_Fish: false
Herbalism:
Level_Cap: 0
Prevent_AFK_Leveling: true