haha characteristics render!

This commit is contained in:
tresabhi committed 2026-10-01 15:52:14 -05:00
1 parent bd42cb44e4
commit af85fb74cb
10 files changed
+114 -38

No files matched your search

@@ -26,12 +26,12 @@ export const characteristics = {
damage: {
type: CharacteristicType.Number,
compute({ characteristic, gun, shell, equalizer, assault_distance }) {
compute({ characteristic, gun, shell, environment }) {
let coefficient = 1;
if (gun.assault_ranges && gun.assault_ranges.types.includes(shell.type)) {
const match = gun.assault_ranges.ranges.find(
({ distance }) => distance >= assault_distance,
({ distance }) => distance >= environment.assault_distance,
);
if (match !== undefined) {
@@ -39,7 +39,7 @@ export const characteristics = {
}
}
coefficient *= equalizer.damage;
// coefficient *= equalizer.damage;
return coefficient * shell.armor_damage;
},