mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-31 09:13:43 +01:00 
			
		
		
		
	Update Taming to alphabetical order
This commit is contained in:
		| @@ -59,15 +59,6 @@ public class TamingCommand extends SkillCommand { | |||||||
|     protected List<String> statsDisplay(Player player, float skillValue, boolean hasEndurance, boolean isLucky) { |     protected List<String> statsDisplay(Player player, float skillValue, boolean hasEndurance, boolean isLucky) { | ||||||
|         List<String> messages = new ArrayList<String>(); |         List<String> messages = new ArrayList<String>(); | ||||||
|  |  | ||||||
|         if (canFastFood) { |  | ||||||
|             if (skillValue < Taming.fastFoodServiceUnlockLevel) { |  | ||||||
|                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.4", Taming.fastFoodServiceUnlockLevel))); |  | ||||||
|             } |  | ||||||
|             else { |  | ||||||
|                 messages.add(LocaleLoader.getString("Ability.Generic.Template", LocaleLoader.getString("Taming.Ability.Bonus.8"), LocaleLoader.getString("Taming.Ability.Bonus.9", percent.format(Taming.fastFoodServiceActivationChance / 100D)))); |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|  |  | ||||||
|         if (canEnvironmentallyAware) { |         if (canEnvironmentallyAware) { | ||||||
|             if (skillValue < Taming.environmentallyAwareUnlockLevel) { |             if (skillValue < Taming.environmentallyAwareUnlockLevel) { | ||||||
|                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.0", Taming.environmentallyAwareUnlockLevel))); |                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.0", Taming.environmentallyAwareUnlockLevel))); | ||||||
| @@ -77,15 +68,21 @@ public class TamingCommand extends SkillCommand { | |||||||
|             } |             } | ||||||
|         } |         } | ||||||
|          |          | ||||||
|         if (canThickFur) { |         if (canFastFood) { | ||||||
|             if (skillValue < Taming.thickFurUnlockLevel) { |             if (skillValue < Taming.fastFoodServiceUnlockLevel) { | ||||||
|                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.1", Taming.thickFurUnlockLevel))); |                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.4", Taming.fastFoodServiceUnlockLevel))); | ||||||
|             } |             } | ||||||
|             else { |             else { | ||||||
|                 messages.add(LocaleLoader.getString("Ability.Generic.Template", LocaleLoader.getString("Taming.Ability.Bonus.2"), LocaleLoader.getString("Taming.Ability.Bonus.3", Taming.thickFurModifier))); |                 messages.add(LocaleLoader.getString("Ability.Generic.Template", LocaleLoader.getString("Taming.Ability.Bonus.8"), LocaleLoader.getString("Taming.Ability.Bonus.9", percent.format(Taming.fastFoodServiceActivationChance / 100D)))); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|          |          | ||||||
|  |         if (canGore) { | ||||||
|  |             messages.add(LocaleLoader.getString("Ability.Generic.Template", | ||||||
|  |                     LocaleLoader.getString("Taming.Combat.Chance.Gore"), | ||||||
|  |                     goreChance) + (isLucky ? LocaleLoader.getString("Perks.Lucky.Bonus", goreChanceLucky) : "")); | ||||||
|  |         } | ||||||
|  |          | ||||||
|         if (canHolyHound) { |         if (canHolyHound) { | ||||||
|             if (skillValue < Taming.holyHoundUnlockLevel) { |             if (skillValue < Taming.holyHoundUnlockLevel) { | ||||||
|                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.5", Taming.holyHoundUnlockLevel))); |                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.5", Taming.holyHoundUnlockLevel))); | ||||||
| @@ -95,15 +92,6 @@ public class TamingCommand extends SkillCommand { | |||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         if (canShockProof) { |  | ||||||
|             if (skillValue < Taming.shockProofUnlockLevel) { |  | ||||||
|                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.2", Taming.shockProofUnlockLevel))); |  | ||||||
|             } |  | ||||||
|             else { |  | ||||||
|                 messages.add(LocaleLoader.getString("Ability.Generic.Template", LocaleLoader.getString("Taming.Ability.Bonus.4"), LocaleLoader.getString("Taming.Ability.Bonus.5", Taming.shockProofModifier))); |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|  |  | ||||||
|         if (canSharpenedClaws) { |         if (canSharpenedClaws) { | ||||||
|             if (skillValue < Taming.sharpenedClawsUnlockLevel) { |             if (skillValue < Taming.sharpenedClawsUnlockLevel) { | ||||||
|                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.3", Taming.sharpenedClawsUnlockLevel))); |                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.3", Taming.sharpenedClawsUnlockLevel))); | ||||||
| @@ -113,10 +101,22 @@ public class TamingCommand extends SkillCommand { | |||||||
|             } |             } | ||||||
|         } |         } | ||||||
|          |          | ||||||
|         if (canGore) { |         if (canShockProof) { | ||||||
|             messages.add(LocaleLoader.getString("Ability.Generic.Template", |             if (skillValue < Taming.shockProofUnlockLevel) { | ||||||
|                     LocaleLoader.getString("Taming.Combat.Chance.Gore"), |                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.2", Taming.shockProofUnlockLevel))); | ||||||
|                     goreChance) + (isLucky ? LocaleLoader.getString("Perks.Lucky.Bonus", goreChanceLucky) : "")); |             } | ||||||
|  |             else { | ||||||
|  |                 messages.add(LocaleLoader.getString("Ability.Generic.Template", LocaleLoader.getString("Taming.Ability.Bonus.4"), LocaleLoader.getString("Taming.Ability.Bonus.5", Taming.shockProofModifier))); | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |          | ||||||
|  |         if (canThickFur) { | ||||||
|  |             if (skillValue < Taming.thickFurUnlockLevel) { | ||||||
|  |                 messages.add(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Taming.Ability.Locked.1", Taming.thickFurUnlockLevel))); | ||||||
|  |             } | ||||||
|  |             else { | ||||||
|  |                 messages.add(LocaleLoader.getString("Ability.Generic.Template", LocaleLoader.getString("Taming.Ability.Bonus.2"), LocaleLoader.getString("Taming.Ability.Bonus.3", Taming.thickFurModifier))); | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         return messages; |         return messages; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Oaksworth
					Oaksworth