mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 05:02:30 +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];
|
||||
|
||||
@@ -1973,7 +1973,7 @@ botania.page.livingwoodBow1=Does it shoot airplanes?
|
||||
|
||||
# -- CRYSTAL BOW
|
||||
botania.entry.crystalBow=Crystal Bow
|
||||
botania.page.crystalBow0=Crafted with &1Dragonstone&0, the &1Crystal Bow&0 is a ranged weapon with the capacity to generate arrows from &4Mana&0. Similarly to the &1Livingwood Bow&0, it'll repair using &4Mana&0 as well, but carrying &1Arrows&0 is not required as they are created through the magical energies.
|
||||
botania.page.crystalBow0=Crafted with &1Dragonstone&0, the &1Crystal Bow&0 is a ranged weapon with the capacity to generate arrows from &4Mana&0. Similarly to the &1Livingwood Bow&0, it'll repair using &4Mana&0 as well, but carrying &1Arrows&0 is not required as they are created through the magical energies.<br>Given the lightweight and flexible structure of the bow, it can also fire at a much increased velocity than a conventional wooden one.
|
||||
botania.page.crystalBow1=The elves are roving
|
||||
|
||||
# - ENDER ARTEFACTS
|
||||
|
||||
Reference in new issue
Block a user