Improved enemy drop tables

This commit is contained in:
Anuken
2018-07-05 14:09:46 -04:00
parent 5efa7d551e
commit bc36c57f9f
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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));
}