Skip to content

Commit

Permalink
Removed PVP requirement on Stab, added info about Stab to /swords
Browse files Browse the repository at this point in the history
  • Loading branch information
nossr50 committed Mar 27, 2019
1 parent e0341f7 commit c4a383c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
5 changes: 3 additions & 2 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ Version 2.1.26
NOTE: Combat skills will be completely configurable in the upcoming 2.2 update, be patient <3

Notes:
These changes are meant to be minor tweaks to PVP, a dedicated PVP update where I do a lot more research and testing will happen after 2.3
I collected several sets of data before making these changes, including damage to player with and without prot 4 diamond armor, damage to those players with and without enchanted weapons, damage with and without leveling your skills, and combinations of the previously mentioned things.
These changes are meant to be minor tweaks for endgame PVP, a dedicated PVP update where I do a lot more research and testing will happen after 2.3

Stab is unlocked at level 75/750, and ranks up again at level 100/1000
Stab permanently adds small amounts of extra damage when attacking players with a sword.
Stab permanently adds small amounts of extra damage when attacking with a sword.
Stab is meant to make up for Swords lackluster damage against fully geared opponents.

Iron Arm got buffed because Unarmed was dealing lackluster damage compared to other skills.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ protected List<String> statsDisplay(Player player, float skillValue, boolean has
+ (hasEndurance ? LocaleLoader.getString("Perks.ActivationTime.Bonus", serratedStrikesLengthEndurance) : ""));
}

if(canUseSubskill(player, SubSkillType.SWORDS_STAB))
{
messages.add(getStatMessage(SubSkillType.SWORDS_STAB,
String.valueOf(UserManager.getPlayer(player).getSwordsManager().getStabDamage())));
}

return messages;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,8 @@ public void ruptureCheck(LivingEntity target) {
}
}

public double stabCheck(LivingEntity target)
public double getStabDamage()
{
if(!(target instanceof Player))
return 0;

int rank = RankUtils.getRank(getPlayer(), SubSkillType.SWORDS_STAB);

if(rank > 0)
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.gmail.nossr50.util.player.NotificationManager;
import com.gmail.nossr50.util.player.UserManager;
import com.google.common.collect.ImmutableMap;
import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.Material;
import org.bukkit.entity.*;
Expand Down Expand Up @@ -64,7 +63,7 @@ private static void processSwordCombat(LivingEntity target, Player player, Entit
//Add Stab Damage
if(swordsManager.canUseStab())
{
event.setDamage(swordsManager.stabCheck(target) + initialDamage);
event.setDamage(swordsManager.getStabDamage(target) + initialDamage);
}

if (swordsManager.canUseSerratedStrike()) {
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/locale/locale_en_US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ Swords.SubSkill.SerratedStrikes.Stat=Serrated Strikes Length
Swords.SubSkill.Rupture.Name=Rupture
Swords.SubSkill.Rupture.Description=Apply a powerful bleed DoT
Swords.SubSkill.Stab.Name=Stab
Swords.SubSkill.Stab.Description=Adds {0} extra damage when attacking players.
Swords.SubSkill.Stab.Description=Adds bonus damage to your attacks.
Swords.SubSkill.Stab.Stat=Stab Damage
Swords.SubSkill.Rupture.Stat=Rupture Chance
Swords.SubSkill.Rupture.Stat.Extra=Rupture: [[GREEN]]{0} ticks [{1} DMG vs Player] [{2} DMG vs Mobs]
Swords.Effect.4=Serrated Strikes Rupture+
Expand Down

0 comments on commit c4a383c

Please sign in to comment.