Buff moss regeneration for projectiles

This commit is contained in:
Bernhard Bonigl committed 2014-12-19 14:12:29 +01:00
1 parent d11d844537
commit f9819dcd10
1 file changed
+1 -1
@@ -36,7 +36,7 @@ public class TActiveOmniMod extends ActiveToolMod
int chance = tags.getInteger("Moss");
int check = world.canBlockSeeTheSky((int) entity.posX, (int) entity.posY, (int) entity.posZ) ? 350 : 1150;
// REGROWING AMMO :OOoo
if(tool instanceof IAmmo && random.nextInt(check*10) < chance) // ammo regenerates at a much slower rate
if(tool instanceof IAmmo && random.nextInt(check*3) < chance) // ammo regenerates at a much slower rate
{
IAmmo ammothing = (IAmmo)tool;
if(ammothing.getAmmoCount(stack) > 0) // must have ammo