mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-18 03:15:08 +00:00
Added in the Demon Spawn achievement
This commit is contained in:
1 parent
f20d99628b
commit
acfc78187f
4 files changed
+15
-1
No files matched your search
@@ -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();
|
||||
|
||||
+1
@@ -36,6 +36,7 @@ public class AchievementsRegistry
|
||||
craftinglist.add(ModItems.itemRitualDiviner);
|
||||
craftinglist.add(ModItems.sigilOfTheBridge);
|
||||
craftinglist.add(ModItems.itemSigilOfSupression);
|
||||
craftinglist.add(ModItems.energyBazooka);
|
||||
}
|
||||
|
||||
public static void addBlocksToCraftingList()
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package WayofTime.alchemicalWizardry.common.achievements;
|
||||
|
||||
import WayofTime.alchemicalWizardry.ModBlocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
import net.minecraftforge.common.AchievementPage;
|
||||
import WayofTime.alchemicalWizardry.ModItems;
|
||||
@@ -26,6 +27,7 @@ public class ModAchievements
|
||||
public static Achievement complexSpells;
|
||||
public static Achievement ritualDiviner;
|
||||
public static Achievement masterOrb;
|
||||
public static Achievement demonSpawn;
|
||||
public static Achievement phantomBridgeSigil;
|
||||
public static Achievement teleposer;
|
||||
public static Achievement suppressionSigil;
|
||||
@@ -52,12 +54,13 @@ public class ModAchievements
|
||||
complexSpells = new AchievementsMod("complexSpells", 1, -4, ModItems.itemComplexSpellCrystal, magicianOrb);
|
||||
ritualDiviner = new AchievementsMod("ritualDiviner", 1, -3, ModItems.itemRitualDiviner, magicianOrb);
|
||||
masterOrb = new AchievementsMod("masterOrb", -2, -1, ModItems.masterBloodOrb, boundBlade);
|
||||
demonSpawn = new AchievementsMod("demonSpawn", -3, -2, ModItems.demonPlacer, masterOrb);
|
||||
phantomBridgeSigil = new AchievementsMod("phantomBridgeSigil", 6, -1, ModItems.sigilOfTheBridge, masterOrb);
|
||||
teleposer = new AchievementsMod("teleposer", -4, -1, ModBlocks.blockTeleposer, masterOrb);
|
||||
suppressionSigil = new AchievementsMod("suppressionSigil", 6, -2, ModItems.itemSigilOfSupression, masterOrb);
|
||||
archmageOrb = new AchievementsMod("archmageOrb", -1, 2, ModItems.archmageBloodOrb, masterOrb);
|
||||
energyBazooka = new AchievementsMod("energyBazooka", -3, 2, ModItems.energyBazooka, archmageOrb);
|
||||
demons = new AchievementsMod("demons", 0, 3, ModItems.demonPlacer, archmageOrb).setSpecial();
|
||||
demons = new AchievementsMod("demons", 0, 3, new ItemStack(ModItems.baseItems, 1, 29), archmageOrb).setSpecial();
|
||||
transcendentOrb = new AchievementsMod("trancsendentOrb", 0, 5, ModItems.transcendentBloodOrb, demons);
|
||||
|
||||
alchemicalWizardryPage = new AchievementPage("Blood Magic", AchievementsMod.achievements.toArray(new Achievement[AchievementsMod.achievements.size()]));
|
||||
|
||||
Reference in new issue
Block a user