Skip to content

Commit

Permalink
Make shulking 8%, the weakness is big enough to make up for the stron…
Browse files Browse the repository at this point in the history
…g nearly unconditional defense
  • Loading branch information
KnightMiner committed Jun 8, 2022
1 parent 481f23a commit 66c708d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ protected ModifierMaxLevel createData() {
@Override
public float getProtectionModifier(IToolStackView tool, int level, EquipmentContext context, EquipmentSlot slotType, DamageSource source, float modifierValue) {
if (context.getEntity().isCrouching() && !source.isBypassMagic() && !source.isBypassInvul()) {
modifierValue += getScaledLevel(tool, level) * 1.5;
modifierValue += getScaledLevel(tool, level) * 2;
}
return modifierValue;
}

@Override
public void addInformation(IToolStackView tool, int level, @Nullable Player player, List<Component> tooltip, TooltipKey tooltipKey, TooltipFlag tooltipFlag) {
AbstractProtectionModifier.addResistanceTooltip(this, tool, level, 1.5f, tooltip);
AbstractProtectionModifier.addResistanceTooltip(this, tool, level, 2f, tooltip);
}

private static void onAttack(LivingHurtEvent event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"modifier_id": "tconstruct:shulking",
"text": [
{
"text": "Grants +6% resistance while sneaking. Caps at 80% across the whole set, or 14 levels."
"text": "Grants +8% resistance while sneaking. Caps at 80% across the whole set, or 10 levels."
},
{
"text": "Decreases attack damage while sneaking by 10% per level of the highest level piece.", "paragraph": true
Expand Down

0 comments on commit 66c708d

Please sign in to comment.