Improved enemy drop tables
This commit is contained in:
@@ -93,6 +93,7 @@ public class TurretBlocks extends BlockList implements ContentList {
|
|||||||
cooldown = 0.03f;
|
cooldown = 0.03f;
|
||||||
powerUsed = 20f;
|
powerUsed = 20f;
|
||||||
powerCapacity = 60f;
|
powerCapacity = 60f;
|
||||||
|
shootShake = 2f;
|
||||||
shootEffect = ShootFx.lancerLaserShoot;
|
shootEffect = ShootFx.lancerLaserShoot;
|
||||||
smokeEffect = ShootFx.lancerLaserShootSmoke;
|
smokeEffect = ShootFx.lancerLaserShootSmoke;
|
||||||
chargeEffect = ShootFx.lancerLaserCharge;
|
chargeEffect = ShootFx.lancerLaserCharge;
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ public class UnitDrops {
|
|||||||
|
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
for(Item item : dropTable){
|
for(Item item : dropTable){
|
||||||
if(Mathf.chance(0.2)){
|
if(Mathf.chance(0.03)){
|
||||||
int amount = Mathf.random(1, 5);
|
int amount = Mathf.random(20, 40);
|
||||||
ItemDrop.create(item, amount, unit.x + Mathf.range(2f), unit.y + Mathf.range(2f),
|
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));
|
unit.getVelocity().x + Mathf.range(3f), unit.getVelocity().y + Mathf.range(3f));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user