Added in the Demon Spawn achievement

This commit is contained in:
Arcaratus 2015-07-28 13:03:47 -04:00
parent f20d99628b
commit acfc78187f
4 changed files with 15 additions and 1 deletions

View file

@ -812,6 +812,12 @@ public class AlchemicalWizardryEventHooks
{
EntityLivingBase entityLiving = event.entityLiving;
if (entityLiving instanceof IDemon && event.source.getEntity() instanceof EntityPlayer)
{
EntityPlayer player = (EntityPlayer) event.source.getEntity();
player.addStat(ModAchievements.demonSpawn, 1);
}
if (entityLiving instanceof IHoardDemon && event.source.getEntity() instanceof EntityPlayer)
{
EntityPlayer player = (EntityPlayer) event.source.getEntity();