Skip to content

Commit

Permalink
Projectiles now slowly regrow with moss :D
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Oct 26, 2014
1 parent 0691d21 commit 24cc1e7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
11 changes: 10 additions & 1 deletion src/main/java/tconstruct/tools/TActiveOmniMod.java
Expand Up @@ -15,6 +15,7 @@
import net.minecraftforge.common.ForgeHooks;
import tconstruct.library.ActiveToolMod;
import tconstruct.library.tools.*;
import tconstruct.library.weaponry.IAmmo;
import tconstruct.util.config.PHConstruct;
import tconstruct.world.TinkerWorld;
import tconstruct.world.entity.BlueSlime;
Expand All @@ -34,7 +35,15 @@ public void updateTool (ToolCore tool, ItemStack stack, World world, Entity enti
{
int chance = tags.getInteger("Moss");
int check = world.canBlockSeeTheSky((int) entity.posX, (int) entity.posY, (int) entity.posZ) ? 350 : 1150;
if (random.nextInt(check) < chance)
// REGROWING AMMO :OOoo
if(tool instanceof IAmmo && random.nextInt(check*10) < chance) // ammo regenerates at a much slower rate
{
IAmmo ammothing = (IAmmo)tool;
if(ammothing.getAmmoCount(stack) > 0) // must have ammo
ammothing.addAmmo(1, stack);
}
// selfrepairing tool. LAAAAAME
else if (random.nextInt(check) < chance)
{
AbilityHelper.healTool(stack, 1, (EntityLivingBase) entity, true);
}
Expand Down
12 changes: 7 additions & 5 deletions weaponry.txt
@@ -1,14 +1,16 @@
TODO:
* Effect graphics for arrows, throwing knifes, javelins,...
* Effect graphics for arrows, throwing knifes, javelins,... MOSTLY DONE
* Separate book explaining the system, text only, sorry folks
* Turn dagger into a proper projectile
* Reinforced gives a chance that projectiles aren't broken on entity-hit!
* Turn dagger into a proper projectile DONE
* Reinforced gives a chance that projectiles aren't broken on entity-hit! DONE
* Toolstation GUI for weaponry stuff
* Partbuilder stuff for weaponry stuff?
* Bring bowmaterial stats etc in line?
* Can't have flux or redstone or moss on ammo tools
* Knockback on projectiles knocks towards their moving direction
* Glassmakers Arrows :D
* Knockback on projectiles knocks towards their moving direction DONEish
* Glassmakers Arrows :D DONE
* Check why arrow repairing doesn't work
* REGROWING PROJECTILES HAR

maybe give javelins slight armor piercing? or do they have that already?

Expand Down

0 comments on commit 24cc1e7

Please sign in to comment.