Added defense stat, requires latest mmolib to function.

Add to lore-format.yml '- '#defense#''

Add to stats.yml 'defense: '&7■ Defense: &f<plus>#''
This commit is contained in:
Ethan 2020-07-26 01:30:39 -04:00
parent ec859807a9
commit f76e93b5bb
4 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>

View File

@ -183,6 +183,9 @@ public abstract class ItemStat {
"Magic Damage", new String[] { "Additional magic skill damage in %." });
public static final ItemStat PHYSICAL_DAMAGE = new DoubleStat("PHYSICAL_DAMAGE", new ItemStack(Material.IRON_AXE),
"Physical Damage", new String[] { "Additional skill/weapon physical damage." });
public static final ItemStat DEFENSE = new DoubleStat("DEFENSE",
new ItemStack(Material.SHIELD), "Defense",
new String[] { "Reduces damage from any source.", "Formula can be set in MMOLib Config." });
public static final ItemStat DAMAGE_REDUCTION = new DoubleStat("DAMAGE_REDUCTION",
new ItemStack(Material.IRON_CHESTPLATE), "Damage Reduction",
new String[] { "Reduces damage from any source.", "In %." });

View File

@ -40,6 +40,7 @@ lore-format:
- '#skill-damage#'
- '#physical-damage#'
- '#projectile-damage#'
- '#defense#'
- '#damage-reduction#'
- '#fall-damage-reduction#'
- '#fire-damage-reduction#'

View File

@ -44,6 +44,7 @@ max-health: '&c❤ Health: <plus>#'
movement-speed: '&7■ Movement Speed: &f<plus>#'
# Damage Reduction
defense: '&7■ Defense: &f<plus>#'
damage-reduction: '&7■ Damage Reduction: &f<plus>#%'
fall-damage-reduction: '&7■ Fall Damage Reduction: &f<plus>#%'
fire-damage-reduction: '&7■ Fire Damage Reduction: &f<plus>#%'