mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-31 14:49:35 +01:00
Made many changes to Bleeding. Capped max Bleed ticks at 10.
This commit is contained in:
parent
fa35fd9e45
commit
c0a7b276b4
@ -3,12 +3,14 @@ Changelog:
|
|||||||
|
|
||||||
Version 1.3.00-dev
|
Version 1.3.00-dev
|
||||||
- Added ability to customize drops for Excavation skill
|
- Added ability to customize drops for Excavation skill
|
||||||
|
- Added player notification for when they stop Bleeding
|
||||||
- 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
|
- 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 Swords Bleeding effect to never kill
|
||||||
- Changed to use Bukkit's built-in ignoreCancelledEvents system
|
- Changed to use Bukkit's built-in ignoreCancelledEvents system
|
||||||
- Changed chat logging for /p & /a
|
- Changed chat logging for /p & /a
|
||||||
- Changed Tree Feller to use per-use ArrayList
|
- Changed Tree Feller to use per-use ArrayList
|
||||||
|
@ -608,9 +608,17 @@ public class PlayerProfile
|
|||||||
}
|
}
|
||||||
public void setBleedTicks(Integer newvalue){
|
public void setBleedTicks(Integer newvalue){
|
||||||
bleedticks = newvalue;
|
bleedticks = newvalue;
|
||||||
|
|
||||||
|
//Cap maximum ticks at 10
|
||||||
|
if(bleedticks > 10)
|
||||||
|
bleedticks = 10;
|
||||||
}
|
}
|
||||||
public void addBleedTicks(Integer newvalue){
|
public void addBleedTicks(Integer newvalue){
|
||||||
bleedticks+=newvalue;
|
bleedticks+=newvalue;
|
||||||
|
|
||||||
|
//Cap maximum ticks at 10
|
||||||
|
if(bleedticks > 10)
|
||||||
|
bleedticks = 10;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* EXPLOIT PREVENTION
|
* EXPLOIT PREVENTION
|
||||||
|
@ -21,6 +21,7 @@ import com.gmail.nossr50.Combat;
|
|||||||
import com.gmail.nossr50.Users;
|
import com.gmail.nossr50.Users;
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||||
|
import com.gmail.nossr50.locale.mcLocale;
|
||||||
import com.gmail.nossr50.skills.Skills;
|
import com.gmail.nossr50.skills.Skills;
|
||||||
import com.gmail.nossr50.skills.Swords;
|
import com.gmail.nossr50.skills.Swords;
|
||||||
|
|
||||||
@ -62,8 +63,18 @@ public class mcTimer implements Runnable
|
|||||||
*/
|
*/
|
||||||
if(thecount % 2 == 0 && PP.getBleedTicks() >= 1)
|
if(thecount % 2 == 0 && PP.getBleedTicks() >= 1)
|
||||||
{
|
{
|
||||||
Combat.dealDamage(player, 2);
|
//Never kill with Bleeding
|
||||||
|
if(player.getHealth() - 2 < 0)
|
||||||
|
{
|
||||||
|
if(player.getHealth() - 1 > 0)
|
||||||
|
Combat.dealDamage(player, 1);
|
||||||
|
} else
|
||||||
|
Combat.dealDamage(player, 2);
|
||||||
|
|
||||||
PP.decreaseBleedTicks();
|
PP.decreaseBleedTicks();
|
||||||
|
|
||||||
|
if(PP.getBleedTicks() == 0)
|
||||||
|
player.sendMessage(mcLocale.getString("Swords.StoppedBleeding"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -399,4 +399,5 @@ m.EffectsTaming8_0=Fast Food Service
|
|||||||
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
m.AbilBonusTaming5_0=Fast Food Service
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
||||||
|
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
|
@ -392,4 +392,5 @@ m.EffectsTaming8_0=Fast Food Service
|
|||||||
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
m.AbilBonusTaming5_0=Fast Food Service
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
||||||
|
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
|
@ -392,4 +392,5 @@ m.EffectsTaming8_0=Fast Food Service
|
|||||||
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
m.AbilBonusTaming5_0=Fast Food Service
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
||||||
|
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
|
@ -371,4 +371,5 @@ m.EffectsTaming8_0=Fast Food Service
|
|||||||
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
m.AbilBonusTaming5_0=Fast Food Service
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
||||||
|
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
|
@ -392,4 +392,5 @@ m.EffectsTaming8_0=Fast Food Service
|
|||||||
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
m.AbilBonusTaming5_0=Fast Food Service
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
||||||
|
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
|
@ -398,4 +398,5 @@ m.EffectsTaming8_0=Fast Food Service
|
|||||||
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
m.AbilBonusTaming5_0=Fast Food Service
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
||||||
|
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
|
@ -392,4 +392,5 @@ m.EffectsTaming8_0=Fast Food Service
|
|||||||
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
m.AbilBonusTaming5_0=Fast Food Service
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
||||||
|
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
|
@ -402,4 +402,5 @@ m.EffectsTaming8_0=Fast Food Service
|
|||||||
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
m.AbilBonusTaming5_0=Fast Food Service
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
||||||
|
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
|
@ -384,4 +384,5 @@ m.EffectsTaming8_0=Fast Food Service
|
|||||||
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
m.EffectsTaming8_1=Chance for wolves to heal when they attack
|
||||||
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
m.AbilLockTaming5=LOCKED UNTIL 50+ SKILL (FAST FOOD SERVICE)
|
||||||
m.AbilBonusTaming5_0=Fast Food Service
|
m.AbilBonusTaming5_0=Fast Food Service
|
||||||
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
m.AbilBonusTaming5_1=50% Chance to heal equivalent to damage dealt
|
||||||
|
Swords.StoppedBleeding=[[GRAY]]The bleeding has [[GREEN]]stopped[[GRAY]]!
|
Loading…
x
Reference in New Issue
Block a user