Skip to content

Commit

Permalink
Adjust Mummy boss loot
Browse files Browse the repository at this point in the history
  • Loading branch information
glowredman committed May 22, 2023
1 parent c957275 commit bd0f28c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import net.minecraft.world.World;

import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
import de.katzenpapst.amunra.AmunRa;
import de.katzenpapst.amunra.entity.EntityCryoArrow;
import de.katzenpapst.amunra.entity.EntityOsirisBossFireball;
import de.katzenpapst.amunra.helper.NbtHelper;
Expand Down Expand Up @@ -80,7 +81,9 @@ public EntityMummyBoss(final World world) {

if (guaranteedLoot == null) {
guaranteedLoot = new ArrayList<>();
guaranteedLoot.add(ARItems.shuttleSchematic.getItemStack(1));
if (!AmunRa.isNHCoreLoaded) {
guaranteedLoot.add(ARItems.shuttleSchematic.getItemStack(1));
}
// guaranteedLoot.add(new ItemStack(ARItems.batteryQuantum, 0, 0));
}

Expand All @@ -100,8 +103,8 @@ public EntityMummyBoss(final World world) {
public boolean attackEntityFrom(DamageSource source, float amount) {
// modify the damage
if (source != DamageSource.outOfWorld && source != DamageSourceAR.dsFallOffShip) {
if (source instanceof EntityDamageSourceIndirect
&& ((EntityDamageSourceIndirect) source).getEntity() instanceof EntityCryoArrow) {
if (source instanceof EntityDamageSourceIndirect indirectSource
&& indirectSource.getEntity() instanceof EntityCryoArrow) {
amount *= 1.5F;
} else {
amount /= 2.0F;
Expand Down

0 comments on commit bd0f28c

Please sign in to comment.