mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 08:55:26 +01:00
Added Fast Food Service to Taming (Healing)
This commit is contained in:
parent
3f8077d615
commit
fa35fd9e45
@ -6,6 +6,7 @@ Version 1.3.00-dev
|
|||||||
- Added configuration option to control mcMMO reporting damage events
|
- Added configuration option to control mcMMO reporting damage events
|
||||||
- Added hunger regain bonuses to Herbalism skill
|
- Added hunger regain bonuses to Herbalism skill
|
||||||
- Added framework for new Blast Mining skill
|
- Added framework for new Blast Mining skill
|
||||||
|
- Added Fast Food Service subskill to Taming
|
||||||
- Re-added mcMMO reporting damage events
|
- Re-added mcMMO reporting damage events
|
||||||
- Fixed /mcability not respecting permissions
|
- Fixed /mcability not respecting permissions
|
||||||
- Changed to use Bukkit's built-in ignoreCancelledEvents system
|
- Changed to use Bukkit's built-in ignoreCancelledEvents system
|
||||||
|
@ -184,6 +184,21 @@ public class Combat
|
|||||||
|
|
||||||
if(mcPermissions.getInstance().taming(master))
|
if(mcPermissions.getInstance().taming(master))
|
||||||
{
|
{
|
||||||
|
//Fast Food Service
|
||||||
|
if(PPo.getSkillLevel(SkillType.TAMING) >= 50)
|
||||||
|
{
|
||||||
|
if(theWolf.getHealth() < theWolf.getMaxHealth())
|
||||||
|
{
|
||||||
|
if(Math.random() * 10 > 5)
|
||||||
|
{
|
||||||
|
theWolf.setHealth(theWolf.getHealth()+event.getDamage());
|
||||||
|
|
||||||
|
if(theWolf.getHealth() > theWolf.getMaxHealth())
|
||||||
|
theWolf.setHealth(theWolf.getMaxHealth());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Sharpened Claws
|
//Sharpened Claws
|
||||||
if(PPo.getSkillLevel(SkillType.TAMING) >= 750)
|
if(PPo.getSkillLevel(SkillType.TAMING) >= 750)
|
||||||
{
|
{
|
||||||
|
@ -40,6 +40,7 @@ public class TamingCommand implements CommandExecutor {
|
|||||||
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsTaming5_0"), mcLocale.getString("m.EffectsTaming5_1") }));
|
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsTaming5_0"), mcLocale.getString("m.EffectsTaming5_1") }));
|
||||||
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsTaming6_0"), mcLocale.getString("m.EffectsTaming6_1") }));
|
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsTaming6_0"), mcLocale.getString("m.EffectsTaming6_1") }));
|
||||||
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsTaming7_0"), mcLocale.getString("m.EffectsTaming7_1") }));
|
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsTaming7_0"), mcLocale.getString("m.EffectsTaming7_1") }));
|
||||||
|
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsTaming8_0"), mcLocale.getString("m.EffectsTaming8_1") }));
|
||||||
player.sendMessage(mcLocale.getString("m.EffectsTaming7_2", new Object[] { LoadProperties.bonesConsumedByCOTW }));
|
player.sendMessage(mcLocale.getString("m.EffectsTaming7_2", new Object[] { LoadProperties.bonesConsumedByCOTW }));
|
||||||
player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] { mcLocale.getString("m.YourStats") }));
|
player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] { mcLocale.getString("m.YourStats") }));
|
||||||
|
|
||||||
@ -62,6 +63,10 @@ public class TamingCommand implements CommandExecutor {
|
|||||||
player.sendMessage(mcLocale.getString("m.AbilityLockTemplate", new Object[] { mcLocale.getString("m.AbilLockTaming4") }));
|
player.sendMessage(mcLocale.getString("m.AbilityLockTemplate", new Object[] { mcLocale.getString("m.AbilLockTaming4") }));
|
||||||
else
|
else
|
||||||
player.sendMessage(mcLocale.getString("m.AbilityBonusTemplate", new Object[] { mcLocale.getString("m.AbilBonusTaming4_0"), mcLocale.getString("m.AbilBonusTaming4_1") }));
|
player.sendMessage(mcLocale.getString("m.AbilityBonusTemplate", new Object[] { mcLocale.getString("m.AbilBonusTaming4_0"), mcLocale.getString("m.AbilBonusTaming4_1") }));
|
||||||
|
if (PP.getSkillLevel(SkillType.TAMING) < 50)
|
||||||
|
player.sendMessage(mcLocale.getString("m.AbilityLockTemplate", new Object[] { mcLocale.getString("m.AbilLockTaming5") }));
|
||||||
|
else
|
||||||
|
player.sendMessage(mcLocale.getString("m.AbilityBonusTemplate", new Object[] { mcLocale.getString("m.AbilBonusTaming5_0"), mcLocale.getString("m.AbilBonusTaming5_1") }));
|
||||||
|
|
||||||
player.sendMessage(mcLocale.getString("m.TamingGoreChance", new Object[] { percentage }));
|
player.sendMessage(mcLocale.getString("m.TamingGoreChance", new Object[] { percentage }));
|
||||||
|
|
||||||
|
@ -395,3 +395,8 @@ m.TamingSummonFailed=[[YELLOW]]Du hast zu viele Woelfe um dich um weitere zu bes
|
|||||||
m.EffectsTaming7_0=[[YELLOW]]Ruf der Wildniss
|
m.EffectsTaming7_0=[[YELLOW]]Ruf der Wildniss
|
||||||
m.EffectsTaming7_1=[[AQUA]]Beschwoere einen Wolf auf deine Seite
|
m.EffectsTaming7_1=[[AQUA]]Beschwoere einen Wolf auf deine Seite
|
||||||
m.EffectsTaming7_2=[[YELLOW]]Info: [[AQUA]]Ducken und Rechtsklick mit {0} Knochen in der Hand
|
m.EffectsTaming7_2=[[YELLOW]]Info: [[AQUA]]Ducken und Rechtsklick mit {0} Knochen in der Hand
|
||||||
|
m.EffectsTaming8_0=Fast Food Service
|
||||||
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
@ -388,3 +388,8 @@ m.TamingSummonFailed=[[RED]]You have too many wolves nearby to summon any more.
|
|||||||
m.EffectsTaming7_0=Call of the Wild
|
m.EffectsTaming7_0=Call of the Wild
|
||||||
m.EffectsTaming7_1=Summon a wolf to your side
|
m.EffectsTaming7_1=Summon a wolf to your side
|
||||||
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
||||||
|
m.EffectsTaming8_0=Fast Food Service
|
||||||
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
@ -388,3 +388,8 @@ m.TamingSummonFailed=[[RED]]You have too many wolves nearby to summon any more.
|
|||||||
m.EffectsTaming7_0=Call of the Wild
|
m.EffectsTaming7_0=Call of the Wild
|
||||||
m.EffectsTaming7_1=Summon a wolf to your side
|
m.EffectsTaming7_1=Summon a wolf to your side
|
||||||
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
||||||
|
m.EffectsTaming8_0=Fast Food Service
|
||||||
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
@ -367,3 +367,8 @@ m.TamingSummonFailed=[[RED]]You have too many wolves nearby to summon any more.
|
|||||||
m.EffectsTaming7_0=Call of the Wild
|
m.EffectsTaming7_0=Call of the Wild
|
||||||
m.EffectsTaming7_1=Summon a wolf to your side
|
m.EffectsTaming7_1=Summon a wolf to your side
|
||||||
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
||||||
|
m.EffectsTaming8_0=Fast Food Service
|
||||||
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
@ -388,3 +388,8 @@ m.TamingSummonFailed=[[RED]]You have too many wolves nearby to summon any more.
|
|||||||
m.EffectsTaming7_0=Call of the Wild
|
m.EffectsTaming7_0=Call of the Wild
|
||||||
m.EffectsTaming7_1=Summon a wolf to your side
|
m.EffectsTaming7_1=Summon a wolf to your side
|
||||||
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
||||||
|
m.EffectsTaming8_0=Fast Food Service
|
||||||
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
@ -394,3 +394,8 @@ m.TamingSummonFailed=[[RED]]You have too many wolves nearby to summon any more.
|
|||||||
m.EffectsTaming7_0=Call of the Wild
|
m.EffectsTaming7_0=Call of the Wild
|
||||||
m.EffectsTaming7_1=Summon a wolf to your side
|
m.EffectsTaming7_1=Summon a wolf to your side
|
||||||
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
||||||
|
m.EffectsTaming8_0=Fast Food Service
|
||||||
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
@ -388,3 +388,8 @@ m.TamingSummonFailed=[[RED]]You have too many wolves nearby to summon any more.
|
|||||||
m.EffectsTaming7_0=Call of the Wild
|
m.EffectsTaming7_0=Call of the Wild
|
||||||
m.EffectsTaming7_1=Summon a wolf to your side
|
m.EffectsTaming7_1=Summon a wolf to your side
|
||||||
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
||||||
|
m.EffectsTaming8_0=Fast Food Service
|
||||||
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
@ -398,3 +398,8 @@ m.TamingSummonFailed=[[RED]]You have too many wolves nearby to summon any more.
|
|||||||
m.EffectsTaming7_0=Call of the Wild
|
m.EffectsTaming7_0=Call of the Wild
|
||||||
m.EffectsTaming7_1=Summon a wolf to your side
|
m.EffectsTaming7_1=Summon a wolf to your side
|
||||||
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
||||||
|
m.EffectsTaming8_0=Fast Food Service
|
||||||
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
@ -380,3 +380,8 @@ m.TamingSummonFailed=[[RED]]You have too many wolves nearby to summon any more.
|
|||||||
m.EffectsTaming7_0=Call of the Wild
|
m.EffectsTaming7_0=Call of the Wild
|
||||||
m.EffectsTaming7_1=Summon a wolf to your side
|
m.EffectsTaming7_1=Summon a wolf to your side
|
||||||
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones in hand
|
||||||
|
m.EffectsTaming8_0=Fast Food Service
|
||||||
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
Loading…
x
Reference in New Issue
Block a user