Permalink
Browse files

Aethons can now drop giger alien heads and multiple heads at a 1% rat…

…e each.
  • Loading branch information...
Ri5ux committed Dec 17, 2018
1 parent aa7fbf7 commit ea312f109d00c3df2fb79e40666c3dd9bd37aa2b
@@ -24,6 +24,7 @@
public static final ItemDrop SKULL_XENO_WARRIOR = new ItemDrop(1, new ItemStack(AliensVsPredator.blocks().skullXenoWarrior));
public static final ItemDrop SKULL_PREDATOR = new ItemDrop(1, new ItemStack(AliensVsPredator.blocks().skullYautja));
public static final ItemDrop SKULL_AETHON = new ItemDrop(1, new ItemStack(AliensVsPredator.blocks().headAethon));
public static final ItemDrop HEAD_GIGER = new ItemDrop(1, new ItemStack(AliensVsPredator.blocks().headGigerAlien));
public static final ItemDrop SKULLS_XENO = new ItemDrop(1, DropType.RATE_PERDROP_SINGLE, new ItemStack(AliensVsPredator.blocks().skullXenoWarrior), new ItemStack(AliensVsPredator.blocks().skullXeno));
public static final ItemDrop PREDATOR_ARTIFACT = new ItemDrop(25, new ItemStack(items.itemArtifactTech));
public static final ItemDrop PLASMACANNON = new ItemDrop(2, new ItemStack(items.itemPlasmaCannon));
@@ -206,19 +206,13 @@ protected void despawnEntity()
public void onDeath(DamageSource source)
{
super.onDeath(source);

switch (this.rand.nextInt(4))
{
case 0:
EntityItemDrops.SKULL_ENGINEER.tryDrop(this);
case 1:
EntityItemDrops.SKULL_SPACEJOCKEY.tryDrop(this);
case 2:
EntityItemDrops.SKULL_PREDATOR.tryDrop(this);
case 3:
EntityItemDrops.SKULL_XENO_DRONE.tryDrop(this);
case 4:
EntityItemDrops.SKULL_XENO_WARRIOR.tryDrop(this);
}

EntityItemDrops.SKULL_ENGINEER.tryDrop(this);
EntityItemDrops.SKULL_SPACEJOCKEY.tryDrop(this);
EntityItemDrops.SKULL_PREDATOR.tryDrop(this);
EntityItemDrops.SKULL_XENO_DRONE.tryDrop(this);
EntityItemDrops.SKULL_XENO_WARRIOR.tryDrop(this);
EntityItemDrops.SKULL_AETHON.tryDrop(this);
EntityItemDrops.HEAD_GIGER.tryDrop(this);
}
}

0 comments on commit ea312f1

Please sign in to comment.