Skip to content

Commit

Permalink
Make silver axe and ninja weapons damage werewolves
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Dec 31, 2023
1 parent a3d0ec3 commit 66f0b55
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public boolean attackEntityFrom(DamageSource damagesource, float i) {
EntityPlayer entityplayer = (EntityPlayer) entity;
ItemStack stack = entityplayer.getHeldItemMainhand();
if (!stack.isEmpty()) {
if (stack.getItem() == MoCItems.silversword) {
i = 10F;
if (stack.getItem() == MoCItems.silversword || stack.getItem() == MoCItems.silveraxe) {
i = 10.0F;
} else if (stack.getItem() instanceof ItemSword) {
String swordMaterial = ((ItemSword) stack.getItem()).getToolMaterialName();
String swordName = stack.getItem().getTranslationKey();
Expand All @@ -182,7 +182,9 @@ public boolean attackEntityFrom(DamageSource damagesource, float i) {
i = ((ItemSword) stack.getItem()).getAttackDamage() * 0.5F;
}
} else if (stack.getItem().getTranslationKey().toLowerCase().contains("silver")) {
i = 6F;
i = 6.0F;
} else if (stack.getItem() == MoCItems.bo || stack.getItem() == MoCItems.katana || stack.getItem() == MoCItems.nunchaku || stack.getItem() == MoCItems.sai){
i = 7.0F;
} else {
i = Math.min(i * 0.5F, 4F);
}
Expand Down

0 comments on commit 66f0b55

Please sign in to comment.