mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Shake has an upper limit of 10 damage (will be configurable in the near future), alchemy ranks adjusted
This commit is contained in:
parent
55fb3ed74f
commit
719283177e
@ -7,6 +7,10 @@ Key:
|
|||||||
! Change
|
! Change
|
||||||
- Removal
|
- Removal
|
||||||
|
|
||||||
|
Version 2.1.25
|
||||||
|
Shake now has an upper limit of damage (10) - Will be configurable in 2.2 which is coming in the near future
|
||||||
|
Rank 1 of Catalysis & Concoctions are now available at level 0 by default (update skillranks.yml or delete it to regen a new one)
|
||||||
|
|
||||||
Version 2.1.24
|
Version 2.1.24
|
||||||
Fixed an exploit where you could clone inventories
|
Fixed an exploit where you could clone inventories
|
||||||
|
|
||||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||||
<artifactId>mcMMO</artifactId>
|
<artifactId>mcMMO</artifactId>
|
||||||
<version>2.1.24</version>
|
<version>2.1.25-SNAPSHOT</version>
|
||||||
<name>mcMMO</name>
|
<name>mcMMO</name>
|
||||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||||
<scm>
|
<scm>
|
||||||
|
@ -65,18 +65,20 @@ public class BlockListener implements Listener {
|
|||||||
if(is.getAmount() <= 0)
|
if(is.getAmount() <= 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
//Extra Protection
|
|
||||||
if(event.getBlock().getState() instanceof Container)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if(event.getBlock().getState().getMetadata(mcMMO.doubleDropKey).size() > 0)
|
if(event.getBlock().getState().getMetadata(mcMMO.doubleDropKey).size() > 0)
|
||||||
{
|
{
|
||||||
|
//Extra Protection
|
||||||
|
if(event.getBlock().getState() instanceof Container)
|
||||||
|
return;
|
||||||
event.getBlock().getState().removeMetadata(mcMMO.doubleDropKey, plugin);
|
event.getBlock().getState().removeMetadata(mcMMO.doubleDropKey, plugin);
|
||||||
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(event.getBlock().getState().getMetadata(mcMMO.tripleDropKey).size() > 0)
|
else if(event.getBlock().getState().getMetadata(mcMMO.tripleDropKey).size() > 0)
|
||||||
{
|
{
|
||||||
|
//Extra Protection
|
||||||
|
if(event.getBlock().getState() instanceof Container)
|
||||||
|
return;
|
||||||
event.getBlock().getState().removeMetadata(mcMMO.tripleDropKey, plugin);
|
event.getBlock().getState().removeMetadata(mcMMO.tripleDropKey, plugin);
|
||||||
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
||||||
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
||||||
|
@ -420,7 +420,7 @@ public class FishingManager extends SkillManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Misc.dropItem(target.getLocation(), drop);
|
Misc.dropItem(target.getLocation(), drop);
|
||||||
CombatUtils.dealDamage(target, Math.max(target.getMaxHealth() / 4, 1), EntityDamageEvent.DamageCause.CUSTOM, getPlayer()); // Make it so you can shake a mob no more than 4 times.
|
CombatUtils.dealDamage(target, Math.min(Math.max(target.getMaxHealth() / 4, 1), 10), EntityDamageEvent.DamageCause.CUSTOM, getPlayer()); // Make it so you can shake a mob no more than 4 times.
|
||||||
applyXpGain(ExperienceConfig.getInstance().getFishingShakeXP(), XPGainReason.PVE);
|
applyXpGain(ExperienceConfig.getInstance().getFishingShakeXP(), XPGainReason.PVE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
Alchemy:
|
Alchemy:
|
||||||
Catalysis:
|
Catalysis:
|
||||||
Standard:
|
Standard:
|
||||||
Rank_1: 10
|
Rank_1: 0
|
||||||
RetroMode:
|
RetroMode:
|
||||||
Rank_1: 100
|
Rank_1: 0
|
||||||
Concoctions:
|
Concoctions:
|
||||||
Standard:
|
Standard:
|
||||||
Rank_1: 10
|
Rank_1: 0
|
||||||
Rank_2: 25
|
Rank_2: 25
|
||||||
Rank_3: 35
|
Rank_3: 35
|
||||||
Rank_4: 50
|
Rank_4: 50
|
||||||
@ -22,7 +22,7 @@ Alchemy:
|
|||||||
Rank_7: 85
|
Rank_7: 85
|
||||||
Rank_8: 100
|
Rank_8: 100
|
||||||
RetroMode:
|
RetroMode:
|
||||||
Rank_1: 100
|
Rank_1: 0
|
||||||
Rank_2: 250
|
Rank_2: 250
|
||||||
Rank_3: 350
|
Rank_3: 350
|
||||||
Rank_4: 500
|
Rank_4: 500
|
||||||
|
Loading…
Reference in New Issue
Block a user