From bc36c57f9fb5be6a6827b7e6ba8affb95ee14e5c Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 5 Jul 2018 14:09:46 -0400 Subject: [PATCH] Improved enemy drop tables --- core/src/io/anuke/mindustry/content/blocks/TurretBlocks.java | 1 + core/src/io/anuke/mindustry/entities/units/UnitDrops.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/io/anuke/mindustry/content/blocks/TurretBlocks.java b/core/src/io/anuke/mindustry/content/blocks/TurretBlocks.java index 3cb3766bd8..616dea4e7e 100644 --- a/core/src/io/anuke/mindustry/content/blocks/TurretBlocks.java +++ b/core/src/io/anuke/mindustry/content/blocks/TurretBlocks.java @@ -93,6 +93,7 @@ public class TurretBlocks extends BlockList implements ContentList { cooldown = 0.03f; powerUsed = 20f; powerCapacity = 60f; + shootShake = 2f; shootEffect = ShootFx.lancerLaserShoot; smokeEffect = ShootFx.lancerLaserShootSmoke; chargeEffect = ShootFx.lancerLaserCharge; diff --git a/core/src/io/anuke/mindustry/entities/units/UnitDrops.java b/core/src/io/anuke/mindustry/entities/units/UnitDrops.java index 39f931103c..c931cd875c 100644 --- a/core/src/io/anuke/mindustry/entities/units/UnitDrops.java +++ b/core/src/io/anuke/mindustry/entities/units/UnitDrops.java @@ -21,8 +21,8 @@ public class UnitDrops { for (int i = 0; i < 3; i++) { for(Item item : dropTable){ - if(Mathf.chance(0.2)){ - int amount = Mathf.random(1, 5); + if(Mathf.chance(0.03)){ + int amount = Mathf.random(20, 40); ItemDrop.create(item, amount, unit.x + Mathf.range(2f), unit.y + Mathf.range(2f), unit.getVelocity().x + Mathf.range(3f), unit.getVelocity().y + Mathf.range(3f)); }