Skip to content

Commit

Permalink
feat: rename creator spike damage to primordial spike damage
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed Jun 16, 2023
1 parent 887085b commit a6b0bd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private void addSoundTranslations() {

private void addDamageTranslations() {
addDeathMessage(ModDamageSources.CHEST_BITE, "%1$s tried touching a chest but was eaten instead");
addDeathMessage(ModDamageSources.CREATOR_SPIKES, "%1$s angered the Maykrs and was impaled by bone spikes");
addDeathMessage(ModDamageSources.PRIMORDIAL_SPIKES, "%1$s was impaled by primordial spikes");

addDeathMessage(ModDamageSources.FALL_ON_SPIKE, "%1$s fell on a sharp spike");
addDeathMessage(ModDamageSources.IMPALED_BY_SPIKE, "%1$s was skewered by a sharp spike");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ protected void attackAOE(ServerLevel level, BlockPos pos) {
float distSqr = (float) entity.distanceToSqr(origin);
float pct = distSqr / maxAttackDistanceSqr;
float damage = Mth.clamp(8f * (1 - pct), 0.5f, 8f); //linear damage falloff
entity.hurt(ModDamageSources.CREATOR_SPIKES, damage);
entity.hurt(ModDamageSources.PRIMORDIAL_SPIKES, damage);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

public final class ModDamageSources {

public static final DamageSource CREATOR_SPIKES = createDamage("creator_spikes").bypassArmor();
public static final DamageSource PRIMORDIAL_SPIKES = createDamage("primordial_spikes").bypassArmor();
public static final DamageSource CHEST_BITE = createDamage("chest_bite").bypassArmor();

public static final DamageSource CORROSIVE_ACID = createDamage("corrosive_acid");
Expand Down

0 comments on commit a6b0bd4

Please sign in to comment.