mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 13:16:11 +01:00
start of scripts
This commit is contained in:
1 parent
b4175dc60d
commit
bf132a7387
3 files changed
+19
-4
No files matched your search
@@ -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;
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user