Permalink
Browse files

Berserkers now drop their own biomask.

  • Loading branch information...
Ri5ux committed Dec 17, 2018
1 parent 72a157a commit 7c64d44fce84248dc94f294db64ea69ad991f628
@@ -181,7 +181,12 @@ public void onDeath(DamageSource damagesource)
EntityItemDrops.SHURIKEN.tryDrop(this);
EntityItemDrops.SILICON.tryDrop(this);
EntityItemDrops.WRISTBRACER_BLADES.tryDrop(this);


dropBiomaskAndSkull(damagesource);
}

protected void dropBiomaskAndSkull(DamageSource damagesource)
{
if (damagesource == DamageSources.wristbracer)
{
EntityItemDrops.SKULL_PREDATOR.tryDrop(this, 25);
@@ -1,6 +1,10 @@
package org.avp.entities.living;

import org.avp.DamageSources;
import org.avp.EntityItemDrops;

import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.util.DamageSource;
import net.minecraft.world.World;

public class EntityYautjaBerserker extends EntitySpeciesYautja
@@ -26,4 +30,19 @@ public int getTotalArmorValue()
{
return 8;
}

@Override
protected void dropBiomaskAndSkull(DamageSource damagesource)
{
if (damagesource == DamageSources.wristbracer)
{
EntityItemDrops.SKULL_PREDATOR.tryDrop(this, 25);
EntityItemDrops.BIOMASK_BERSERKER.tryDrop(this, 25);
}
else
{
EntityItemDrops.SKULL_PREDATOR.tryDrop(this);
EntityItemDrops.BIOMASK_BERSERKER.tryDrop(this);
}
}
}

0 comments on commit 7c64d44

Please sign in to comment.