Skip to content
Permalink
Browse files

Added a damage source for deacon bursters

  • Loading branch information...
Ri5ux committed Mar 13, 2019
1 parent d579e77 commit 34c6d0800c973bb77bed1dd768d8bfb278c3ad41
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/org/avp/DamageSources.java
@@ -12,6 +12,7 @@
public static DamageSource acid = (new DamageSource("acid")).setDamageBypassesArmor();
public static DamageSource acidProjectile = (new DamageSource("acidshot")).setDamageBypassesArmor().setProjectile();
public static DamageSource chestburster = (new DamageSource("chestburster")).setDamageIsAbsolute().setDamageBypassesArmor();
public static DamageSource deaconBurster = (new DamageSource("deaconBurster")).setDamageIsAbsolute().setDamageBypassesArmor();
public static DamageSource vardaAtmosphere = new DamageSource("atmosphere.varda").setDamageBypassesArmor();
public static DamageSource bullet = (new DamageSource("bullet")).setProjectile();
public static DamageSource smartdisc = (new DamageSource("smartdisc")).setProjectile();
@@ -68,6 +69,11 @@ public static DamageSource causeChestbursterDamage(Entity sourceEntity, Entity e
return (new EntityDamageSourceIndirect(chestburster.getDamageType(), sourceEntity, entity)).setDamageIsAbsolute().setDamageBypassesArmor();
}

public static DamageSource causeDeaconBursterDamage(Entity sourceEntity, Entity entity)
{
return (new EntityDamageSourceIndirect(deaconBurster.getDamageType(), sourceEntity, entity)).setDamageIsAbsolute().setDamageBypassesArmor();
}

public static DamageSource causeAcidicProjectileDamage(Entity sourceEntity, Entity entity)
{
return (new EntityDamageSourceIndirect(acidProjectile.getDamageType(), sourceEntity, entity)).setProjectile();

0 comments on commit 34c6d08

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.