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

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