start of scripts

This commit is contained in:
tresabhi committed 2026-10-04 16:42:35 -05:00
1 parent b4175dc60d
commit bf132a7387
3 files changed
+19 -4

No files matched your search

+10 -2
View File
@@ -26,8 +26,16 @@ export const characteristics = {
damage: {
type: CharacteristicType.Number,
compute({ shell }) {
return shell.armor_damage;
compute({ shell, environment, equalizer, script }) {
let coefficient = 1;
if (environment.equalize) coefficient *= equalizer.damage;
script("", (script) => {
coefficient *= script.something;
});
return coefficient * shell.armor_damage;
},
},