ShieldDamageMultiplier for bullets (#6331)

* ShieldDamageMultiplier + Dynamic damage multipliers

* Add to stats

* That's not right

* merge typo

---------

Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
MEEPofFaith
2025-02-06 13:57:17 -08:00
committed by GitHub
parent 5f1271e659
commit ed42bcb4f6
6 changed files with 18 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ public class ForceProjector extends Block{
bullet.absorb();
paramEffect.at(bullet);
paramEntity.hit = 1f;
paramEntity.buildup += bullet.damage;
paramEntity.buildup += bullet.type.shieldDamage(bullet);
}
};

View File

@@ -644,6 +644,10 @@ public class StatValues{
sep(bt, Core.bundle.format("bullet.range", ammoStat(type.rangeChange / tilesize)));
}
if(type.shieldDamageMultiplier != 1){
sep(bt, Core.bundle.format("bullet.shielddamage", (int)(type.shieldDamageMultiplier * 100)));
}
if(type.splashDamage > 0){
sep(bt, Core.bundle.format("bullet.splashdamage", (int)type.splashDamage, Strings.fixed(type.splashDamageRadius / tilesize, 1)));
}