mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
Made the Crystal Bow fire faster.
This commit is contained in:
1 parent
233b461196
commit
1cad5cd2df
3 files changed
+12
-3
No files matched your search
@@ -27,6 +27,11 @@ public class ItemCrystalBow extends ItemLivingwoodBow {
|
||||
super(LibItemNames.CRYSTAL_BOW);
|
||||
}
|
||||
|
||||
@Override
|
||||
float chargeVelocityMultiplier() {
|
||||
return 2F;
|
||||
}
|
||||
|
||||
@Override
|
||||
boolean postsEvent() {
|
||||
return false;
|
||||
|
||||
@@ -79,7 +79,7 @@ public class ItemLivingwoodBow extends ItemBow implements IManaUsingItem {
|
||||
|
||||
@Override
|
||||
public void onPlayerStoppedUsing(ItemStack p_77615_1_, World p_77615_2_, EntityPlayer p_77615_3_, int p_77615_4_) {
|
||||
int j = this.getMaxItemUseDuration(p_77615_1_) - p_77615_4_;
|
||||
int j = (int) ((getMaxItemUseDuration(p_77615_1_) - p_77615_4_) * chargeVelocityMultiplier());
|
||||
|
||||
ArrowLooseEvent event = new ArrowLooseEvent(p_77615_3_, p_77615_1_, j);
|
||||
MinecraftForge.EVENT_BUS.post(event);
|
||||
@@ -127,6 +127,10 @@ public class ItemLivingwoodBow extends ItemBow implements IManaUsingItem {
|
||||
}
|
||||
}
|
||||
|
||||
float chargeVelocityMultiplier() {
|
||||
return 1F;
|
||||
}
|
||||
|
||||
boolean postsEvent() {
|
||||
return true;
|
||||
}
|
||||
@@ -174,7 +178,7 @@ public class ItemLivingwoodBow extends ItemBow implements IManaUsingItem {
|
||||
if(stack != usingItem)
|
||||
return itemIcon;
|
||||
|
||||
int j = getMaxItemUseDuration(stack) - useRemaining;
|
||||
int j = (int) ((getMaxItemUseDuration(stack) - useRemaining) * chargeVelocityMultiplier());
|
||||
|
||||
if(j >= 18)
|
||||
return pullIcons[2];
|
||||
|
||||
Reference in new issue
Block a user