Locale stuff for Blast Mining

This commit is contained in:
GJ 2012-02-23 13:09:23 -05:00
parent 06b2a89646
commit 708cfc23b6
11 changed files with 279 additions and 13 deletions

View File

@ -30,6 +30,46 @@ public class MiningCommand implements CommandExecutor {
x -= 50;
ticks++;
}
int rank = 0;
int damage = 0;
int radius = 0;
if(PP.getSkillLevel(SkillType.MINING) >= 125 && PP.getSkillLevel(SkillType.MINING) < 250)
rank = 1;
if(PP.getSkillLevel(SkillType.MINING) >= 250 && PP.getSkillLevel(SkillType.MINING) < 375){
rank = 2;
radius = 1;
}
if(PP.getSkillLevel(SkillType.MINING) >= 375 && PP.getSkillLevel(SkillType.MINING) < 500){
rank = 3;
radius = 1;
}
if(PP.getSkillLevel(SkillType.MINING) >= 500 && PP.getSkillLevel(SkillType.MINING) < 625){
rank = 4;
damage = 25;
radius = 2;
}
if(PP.getSkillLevel(SkillType.MINING) >= 625 && PP.getSkillLevel(SkillType.MINING) < 750){
rank = 5;
damage = 25;
radius = 2;
}
if(PP.getSkillLevel(SkillType.MINING) >= 750 && PP.getSkillLevel(SkillType.MINING) < 875){
rank = 6;
damage = 50;
radius = 3;
}
if(PP.getSkillLevel(SkillType.MINING) >= 875 && PP.getSkillLevel(SkillType.MINING) < 1000){
rank = 7;
damage = 50;
radius = 3;
}
if(PP.getSkillLevel(SkillType.MINING) >= 1000){
rank = 8;
damage = 100;
radius = 4;
}
player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] { mcLocale.getString("m.SkillMining") }));
player.sendMessage(mcLocale.getString("m.XPGain", new Object[] { mcLocale.getString("m.XPGainMining") }));
@ -39,9 +79,50 @@ public class MiningCommand implements CommandExecutor {
player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] { mcLocale.getString("m.Effects") }));
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsMining1_0"), mcLocale.getString("m.EffectsMining1_1") }));
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsMining2_0"), mcLocale.getString("m.EffectsMining2_1") }));
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsMining3_0"), mcLocale.getString("m.EffectsMining3_1") }));
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsMining4_0"), mcLocale.getString("m.EffectsMining4_1") }));
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] { mcLocale.getString("m.EffectsMining5_0"), mcLocale.getString("m.EffectsMining5_1") }));
player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] { mcLocale.getString("m.YourStats") }));
player.sendMessage(mcLocale.getString("m.MiningDoubleDropChance", new Object[] { percentage }));
player.sendMessage(mcLocale.getString("m.MiningSuperBreakerLength", new Object[] { ticks }));
if (PP.getSkillLevel(SkillType.MINING) < 125)
player.sendMessage(mcLocale.getString("m.AbilityLockTemplate", new Object[] { mcLocale.getString("m.AbilLockMining1") }));
else{
switch (rank){
case 1:
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining1") }));
break;
case 2:
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining2") }));
break;
case 3:
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining3") }));
break;
case 4:
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining4") }));
break;
case 5:
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining5") }));
break;
case 6:
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining6") }));
break;
case 7:
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining7") }));
break;
case 8:
player.sendMessage(mcLocale.getString("m.MiningBlastMining", new Object[] { rank, mcLocale.getString("m.BlastMining8") }));
break;
}
}
if (PP.getSkillLevel(SkillType.MINING) < 250)
player.sendMessage(mcLocale.getString("m.AbilityLockTemplate", new Object[] { mcLocale.getString("m.AbilLockMining2") }));
else
player.sendMessage(mcLocale.getString("m.MiningBiggerBombs", new Object[] { radius }));
if (PP.getSkillLevel(SkillType.MINING) < 500)
player.sendMessage(mcLocale.getString("m.AbilityLockTemplate", new Object[] { mcLocale.getString("m.AbilLockMining3") }));
else
player.sendMessage(mcLocale.getString("m.MiningDemolitionsExpertDamageDecrease", new Object[] { damage }));
return true;
}

View File

@ -365,7 +365,8 @@ public class BlastMining{
* Demolitions Expertise (Unlocked at Mining 500)
*
* Reduces explosion damage to 1/4 of normal at 500.
* Reduces explosion damage to 1/2 of normal at 1000.
* Reduces explosion damage to 1/2 of normal at 750.
* Reduces explosion damage to 0 at 1000.
*/
public static void demolitionsExpertise(Player player, EntityDamageEvent event)
{
@ -374,10 +375,12 @@ public class BlastMining{
int damage = event.getDamage();
if(skill < 500)
return;
if(skill >= 500 && skill < 1000)
if(skill >= 500 && skill < 750)
damage = damage/4;
if(skill >= 1000)
if(skill >= 750 && skill < 1000)
damage = damage/2;
if(skill >= 1000)
damage = 0;
event.setDamage(damage);
}

View File

@ -377,3 +377,23 @@ m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
m.AbilBonusTaming5_0=Fast Food Service
m.AbilBonusTaming5_1=50% Chance for heal on attack
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
m.EffectsMining3_0=Blast Mining
m.EffectsMining3_1=Bonuses to mining with TNT
m.EffectsMining4_0=Bigger Bombs
m.EffectsMining4_1=Increases TNT explosion radius
m.EffectsMining5_0=Demolitions Expertise
m.EffectsMining5_1=Decreases damage from TNT explosions
m.AbilLockMining1=LOCKED UNTIL 125+ SKILL (BLAST MINING)
m.AbilLockMining2=LOCKED UNTIL 250+ SKILL (BIGGER BOMBS)
m.AbilLockMining3=LOCKED UNTIL 500+ SKILL (DEMOLITIONS EXPERTISE)
m.MiningBiggerBombs=[[RED]]Blast Radius Increase: [[YELLOW]]+{0}
m.MiningDemolitionsExpertDamageDecrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}%
m.MiningBlastMining=[[RED]]Blast Mining: [[YELLOW]] Rank {0} [[GRAY]]({1})
m.BlastMining1 = +5% ore yield
m.BlastMining2 = +10% ore yield
m.BlastMining3 = +15% ore yield, no debris
m.BlastMining4 = +20% ore yield, no debris
m.BlastMining5 = +25% ore yield, no debris, double drops
m.BlastMining6 = +30% ore yield, no debris, double drops
m.BlastMining7 = +35% ore yield, no debris, triple drops
m.BlastMining8 = +40% ore yield, no debris, triple drops

View File

@ -141,6 +141,8 @@ m.EffectsMining1_0=Super Breaker (ABILITY)
m.EffectsMining1_1=Speed+, Triple Drop Chance
m.EffectsMining2_0=Double Drops
m.EffectsMining2_1=Double the normal loot
m.EffectsMining2_0=Double Drops
m.EffectsMining2_1=Double the normal loot
m.MiningDoubleDropChance=[[RED]]Double Drop Chance: [[YELLOW]]{0}%
m.MiningSuperBreakerLength=[[RED]]Super Breaker Length: [[YELLOW]]{0}s
m.SkillRepair=REPAIR
@ -370,3 +372,23 @@ m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
m.AbilBonusTaming5_0=Fast Food Service
m.AbilBonusTaming5_1=50% Chance for heal on attack
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
m.EffectsMining3_0=Blast Mining
m.EffectsMining3_1=Bonuses to mining with TNT
m.EffectsMining4_0=Bigger Bombs
m.EffectsMining4_1=Increases TNT explosion radius
m.EffectsMining5_0=Demolitions Expertise
m.EffectsMining5_1=Decreases damage from TNT explosions
m.AbilLockMining1=LOCKED UNTIL 125+ SKILL (BLAST MINING)
m.AbilLockMining2=LOCKED UNTIL 250+ SKILL (BIGGER BOMBS)
m.AbilLockMining3=LOCKED UNTIL 500+ SKILL (DEMOLITIONS EXPERTISE)
m.MiningBiggerBombs=[[RED]]Blast Radius Increase: [[YELLOW]]+{0}
m.MiningDemolitionsExpertDamageDecrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}%
m.MiningBlastMining=[[RED]]Blast Mining: [[YELLOW]] Rank {0} [[GRAY]]({1})
m.BlastMining1 = +5% ore yield
m.BlastMining2 = +10% ore yield
m.BlastMining3 = +15% ore yield, no debris
m.BlastMining4 = +20% ore yield, no debris
m.BlastMining5 = +25% ore yield, no debris, double drops
m.BlastMining6 = +30% ore yield, no debris, double drops
m.BlastMining7 = +35% ore yield, no debris, triple drops
m.BlastMining8 = +40% ore yield, no debris, triple drops

View File

@ -370,3 +370,23 @@ m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
m.AbilBonusTaming5_0=Fast Food Service
m.AbilBonusTaming5_1=50% Chance for heal on attack
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
m.EffectsMining3_0=Blast Mining
m.EffectsMining3_1=Bonuses to mining with TNT
m.EffectsMining4_0=Bigger Bombs
m.EffectsMining4_1=Increases TNT explosion radius
m.EffectsMining5_0=Demolitions Expertise
m.EffectsMining5_1=Decreases damage from TNT explosions
m.AbilLockMining1=LOCKED UNTIL 125+ SKILL (BLAST MINING)
m.AbilLockMining2=LOCKED UNTIL 250+ SKILL (BIGGER BOMBS)
m.AbilLockMining3=LOCKED UNTIL 500+ SKILL (DEMOLITIONS EXPERTISE)
m.MiningBiggerBombs=[[RED]]Blast Radius Increase: [[YELLOW]]+{0}
m.MiningDemolitionsExpertDamageDecrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}%
m.MiningBlastMining=[[RED]]Blast Mining: [[YELLOW]] Rank {0} [[GRAY]]({1})
m.BlastMining1 = +5% ore yield
m.BlastMining2 = +10% ore yield
m.BlastMining3 = +15% ore yield, no debris
m.BlastMining4 = +20% ore yield, no debris
m.BlastMining5 = +25% ore yield, no debris, double drops
m.BlastMining6 = +30% ore yield, no debris, double drops
m.BlastMining7 = +35% ore yield, no debris, triple drops
m.BlastMining8 = +40% ore yield, no debris, triple drops

View File

@ -359,3 +359,23 @@ m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
m.AbilBonusTaming5_0=Fast Food Service
m.AbilBonusTaming5_1=50% Chance for heal on attack
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
m.EffectsMining3_0=Blast Mining
m.EffectsMining3_1=Bonuses to mining with TNT
m.EffectsMining4_0=Bigger Bombs
m.EffectsMining4_1=Increases TNT explosion radius
m.EffectsMining5_0=Demolitions Expertise
m.EffectsMining5_1=Decreases damage from TNT explosions
m.AbilLockMining1=LOCKED UNTIL 125+ SKILL (BLAST MINING)
m.AbilLockMining2=LOCKED UNTIL 250+ SKILL (BIGGER BOMBS)
m.AbilLockMining3=LOCKED UNTIL 500+ SKILL (DEMOLITIONS EXPERTISE)
m.MiningBiggerBombs=[[RED]]Blast Radius Increase: [[YELLOW]]+{0}
m.MiningDemolitionsExpertDamageDecrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}%
m.MiningBlastMining=[[RED]]Blast Mining: [[YELLOW]] Rank {0} [[GRAY]]({1})
m.BlastMining1 = +5% ore yield
m.BlastMining2 = +10% ore yield
m.BlastMining3 = +15% ore yield, no debris
m.BlastMining4 = +20% ore yield, no debris
m.BlastMining5 = +25% ore yield, no debris, double drops
m.BlastMining6 = +30% ore yield, no debris, double drops
m.BlastMining7 = +35% ore yield, no debris, triple drops
m.BlastMining8 = +40% ore yield, no debris, triple drops

View File

@ -370,3 +370,23 @@ m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
m.AbilBonusTaming5_0=Fast Food Service
m.AbilBonusTaming5_1=50% Chance for heal on attack
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
m.EffectsMining3_0=Blast Mining
m.EffectsMining3_1=Bonuses to mining with TNT
m.EffectsMining4_0=Bigger Bombs
m.EffectsMining4_1=Increases TNT explosion radius
m.EffectsMining5_0=Demolitions Expertise
m.EffectsMining5_1=Decreases damage from TNT explosions
m.AbilLockMining1=LOCKED UNTIL 125+ SKILL (BLAST MINING)
m.AbilLockMining2=LOCKED UNTIL 250+ SKILL (BIGGER BOMBS)
m.AbilLockMining3=LOCKED UNTIL 500+ SKILL (DEMOLITIONS EXPERTISE)
m.MiningBiggerBombs=[[RED]]Blast Radius Increase: [[YELLOW]]+{0}
m.MiningDemolitionsExpertDamageDecrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}%
m.MiningBlastMining=[[RED]]Blast Mining: [[YELLOW]] Rank {0} [[GRAY]]({1})
m.BlastMining1 = +5% ore yield
m.BlastMining2 = +10% ore yield
m.BlastMining3 = +15% ore yield, no debris
m.BlastMining4 = +20% ore yield, no debris
m.BlastMining5 = +25% ore yield, no debris, double drops
m.BlastMining6 = +30% ore yield, no debris, double drops
m.BlastMining7 = +35% ore yield, no debris, triple drops
m.BlastMining8 = +40% ore yield, no debris, triple drops

View File

@ -376,3 +376,23 @@ m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
m.AbilBonusTaming5_0=Fast Food Service
m.AbilBonusTaming5_1=50% Chance for heal on attack
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
m.EffectsMining3_0=Blast Mining
m.EffectsMining3_1=Bonuses to mining with TNT
m.EffectsMining4_0=Bigger Bombs
m.EffectsMining4_1=Increases TNT explosion radius
m.EffectsMining5_0=Demolitions Expertise
m.EffectsMining5_1=Decreases damage from TNT explosions
m.AbilLockMining1=LOCKED UNTIL 125+ SKILL (BLAST MINING)
m.AbilLockMining2=LOCKED UNTIL 250+ SKILL (BIGGER BOMBS)
m.AbilLockMining3=LOCKED UNTIL 500+ SKILL (DEMOLITIONS EXPERTISE)
m.MiningBiggerBombs=[[RED]]Blast Radius Increase: [[YELLOW]]+{0}
m.MiningDemolitionsExpertDamageDecrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}%
m.MiningBlastMining=[[RED]]Blast Mining: [[YELLOW]] Rank {0} [[GRAY]]({1})
m.BlastMining1 = +5% ore yield
m.BlastMining2 = +10% ore yield
m.BlastMining3 = +15% ore yield, no debris
m.BlastMining4 = +20% ore yield, no debris
m.BlastMining5 = +25% ore yield, no debris, double drops
m.BlastMining6 = +30% ore yield, no debris, double drops
m.BlastMining7 = +35% ore yield, no debris, triple drops
m.BlastMining8 = +40% ore yield, no debris, triple drops

View File

@ -370,3 +370,23 @@ m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
m.AbilBonusTaming5_0=Fast Food Service
m.AbilBonusTaming5_1=50% Chance for heal on attack
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
m.EffectsMining3_0=Blast Mining
m.EffectsMining3_1=Bonuses to mining with TNT
m.EffectsMining4_0=Bigger Bombs
m.EffectsMining4_1=Increases TNT explosion radius
m.EffectsMining5_0=Demolitions Expertise
m.EffectsMining5_1=Decreases damage from TNT explosions
m.AbilLockMining1=LOCKED UNTIL 125+ SKILL (BLAST MINING)
m.AbilLockMining2=LOCKED UNTIL 250+ SKILL (BIGGER BOMBS)
m.AbilLockMining3=LOCKED UNTIL 500+ SKILL (DEMOLITIONS EXPERTISE)
m.MiningBiggerBombs=[[RED]]Blast Radius Increase: [[YELLOW]]+{0}
m.MiningDemolitionsExpertDamageDecrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}%
m.MiningBlastMining=[[RED]]Blast Mining: [[YELLOW]] Rank {0} [[GRAY]]({1})
m.BlastMining1 = +5% ore yield
m.BlastMining2 = +10% ore yield
m.BlastMining3 = +15% ore yield, no debris
m.BlastMining4 = +20% ore yield, no debris
m.BlastMining5 = +25% ore yield, no debris, double drops
m.BlastMining6 = +30% ore yield, no debris, double drops
m.BlastMining7 = +35% ore yield, no debris, triple drops
m.BlastMining8 = +40% ore yield, no debris, triple drops

View File

@ -378,3 +378,23 @@ m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
m.AbilBonusTaming5_0=Fast Food Service
m.AbilBonusTaming5_1=50% Chance for heal on attack
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
m.EffectsMining3_0=Blast Mining
m.EffectsMining3_1=Bonuses to mining with TNT
m.EffectsMining4_0=Bigger Bombs
m.EffectsMining4_1=Increases TNT explosion radius
m.EffectsMining5_0=Demolitions Expertise
m.EffectsMining5_1=Decreases damage from TNT explosions
m.AbilLockMining1=LOCKED UNTIL 125+ SKILL (BLAST MINING)
m.AbilLockMining2=LOCKED UNTIL 250+ SKILL (BIGGER BOMBS)
m.AbilLockMining3=LOCKED UNTIL 500+ SKILL (DEMOLITIONS EXPERTISE)
m.MiningBiggerBombs=[[RED]]Blast Radius Increase: [[YELLOW]]+{0}
m.MiningDemolitionsExpertDamageDecrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}%
m.MiningBlastMining=[[RED]]Blast Mining: [[YELLOW]] Rank {0} [[GRAY]]({1})
m.BlastMining1 = +5% ore yield
m.BlastMining2 = +10% ore yield
m.BlastMining3 = +15% ore yield, no debris
m.BlastMining4 = +20% ore yield, no debris
m.BlastMining5 = +25% ore yield, no debris, double drops
m.BlastMining6 = +30% ore yield, no debris, double drops
m.BlastMining7 = +35% ore yield, no debris, triple drops
m.BlastMining8 = +40% ore yield, no debris, triple drops

View File

@ -362,3 +362,23 @@ m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
m.AbilBonusTaming5_0=Fast Food Service
m.AbilBonusTaming5_1=50% Chance for heal on attack
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
m.EffectsMining3_0=Blast Mining
m.EffectsMining3_1=Bonuses to mining with TNT
m.EffectsMining4_0=Bigger Bombs
m.EffectsMining4_1=Increases TNT explosion radius
m.EffectsMining5_0=Demolitions Expertise
m.EffectsMining5_1=Decreases damage from TNT explosions
m.AbilLockMining1=LOCKED UNTIL 125+ SKILL (BLAST MINING)
m.AbilLockMining2=LOCKED UNTIL 250+ SKILL (BIGGER BOMBS)
m.AbilLockMining3=LOCKED UNTIL 500+ SKILL (DEMOLITIONS EXPERTISE)
m.MiningBiggerBombs=[[RED]]Blast Radius Increase: [[YELLOW]]+{0}
m.MiningDemolitionsExpertDamageDecrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}%
m.MiningBlastMining=[[RED]]Blast Mining: [[YELLOW]] Rank {0} [[GRAY]]({1})
m.BlastMining1 = +5% ore yield
m.BlastMining2 = +10% ore yield
m.BlastMining3 = +15% ore yield, no debris
m.BlastMining4 = +20% ore yield, no debris
m.BlastMining5 = +25% ore yield, no debris, double drops
m.BlastMining6 = +30% ore yield, no debris, double drops
m.BlastMining7 = +35% ore yield, no debris, triple drops
m.BlastMining8 = +40% ore yield, no debris, triple drops