warscript 0.0.1-dev.3e67cca → 0.0.1-dev.3eed609
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.d.ts +6 -0
- package/attributes.lua +17 -1
- package/config.d.ts +5 -0
- package/config.lua +10 -0
- package/core/types/effect.d.ts +14 -6
- package/core/types/effect.lua +131 -35
- package/core/types/frame.d.ts +4 -0
- package/core/types/frame.lua +95 -21
- package/core/types/player.d.ts +16 -0
- package/core/types/player.lua +60 -15
- package/core/types/playerCamera.d.ts +2 -0
- package/core/types/playerCamera.lua +123 -5
- package/core/types/sound.d.ts +17 -24
- package/core/types/sound.lua +99 -24
- package/core/types/tileCell.d.ts +11 -1
- package/core/types/tileCell.lua +97 -0
- package/core/types/timer.d.ts +9 -8
- package/core/types/timer.lua +45 -23
- package/core/util.d.ts +1 -1
- package/core/util.lua +12 -1
- package/decl/native.d.ts +846 -790
- package/engine/behavior.d.ts +14 -3
- package/engine/behavior.lua +175 -73
- package/engine/behaviour/ability/always-enabled.d.ts +7 -0
- package/engine/behaviour/ability/always-enabled.lua +31 -0
- package/engine/behaviour/ability/apply-buff.d.ts +5 -0
- package/engine/behaviour/ability/apply-buff.lua +32 -0
- package/engine/behaviour/ability/apply-unit-behavior.lua +1 -0
- package/engine/behaviour/ability/damage.d.ts +9 -3
- package/engine/behaviour/ability/damage.lua +26 -38
- package/engine/behaviour/ability/emulate-impact.d.ts +6 -0
- package/engine/behaviour/ability/emulate-impact.lua +43 -0
- package/engine/behaviour/ability/instant-impact.d.ts +2 -2
- package/engine/behaviour/ability/instant-impact.lua +4 -19
- package/engine/behaviour/ability/on-command-impact.d.ts +8 -0
- package/engine/behaviour/ability/on-command-impact.lua +25 -0
- package/engine/behaviour/ability/remove-buffs.d.ts +25 -0
- package/engine/behaviour/ability/remove-buffs.lua +49 -0
- package/engine/behaviour/ability/restore-mana.d.ts +1 -1
- package/engine/behaviour/ability/restore-mana.lua +6 -6
- package/engine/behaviour/ability.d.ts +20 -4
- package/engine/behaviour/ability.lua +111 -47
- package/engine/behaviour/unit/stun-immunity.d.ts +11 -5
- package/engine/behaviour/unit/stun-immunity.lua +53 -28
- package/engine/behaviour/unit.d.ts +40 -2
- package/engine/behaviour/unit.lua +259 -6
- package/engine/buff.d.ts +73 -45
- package/engine/buff.lua +374 -248
- package/engine/internal/ability.d.ts +22 -3
- package/engine/internal/ability.lua +133 -13
- package/engine/internal/item/ability.lua +162 -4
- package/engine/internal/item+owner.lua +12 -6
- package/engine/internal/item.d.ts +20 -19
- package/engine/internal/item.lua +191 -74
- package/engine/internal/mechanics/ability-duration.lua +1 -1
- package/engine/internal/misc/ability-disable-counter.d.ts +2 -0
- package/engine/internal/misc/ability-disable-counter.lua +13 -0
- package/engine/internal/misc/damage-metadata-by-target.d.ts +2 -0
- package/engine/internal/misc/damage-metadata-by-target.lua +5 -0
- package/engine/internal/misc/frame-coordinates.d.ts +2 -0
- package/engine/internal/misc/frame-coordinates.lua +21 -0
- package/engine/internal/misc/get-terrain-z.d.ts +2 -0
- package/engine/internal/misc/get-terrain-z.lua +11 -0
- package/engine/internal/misc/player-local-handle.d.ts +2 -0
- package/engine/internal/misc/player-local-handle.lua +5 -0
- package/engine/internal/object-data/auto-attack-speed-increase.d.ts +1 -1
- package/engine/internal/object-data/auto-attack-speed-increase.lua +2 -0
- package/engine/internal/object-data/evasion-probability.d.ts +2 -0
- package/engine/internal/object-data/evasion-probability.lua +16 -0
- package/engine/internal/unit/ability.d.ts +45 -1
- package/engine/internal/unit/ability.lua +128 -17
- package/engine/internal/unit/add-item-to-slot-init.d.ts +2 -0
- package/engine/internal/unit/add-item-to-slot-init.lua +23 -0
- package/engine/internal/unit/add-item-to-slot.d.ts +2 -0
- package/engine/internal/unit/add-item-to-slot.lua +52 -0
- package/engine/internal/unit/allowed-targets.d.ts +1 -1
- package/engine/internal/unit/allowed-targets.lua +9 -1
- package/engine/internal/unit/bonus.d.ts +2 -0
- package/engine/internal/unit/bonus.lua +17 -0
- package/engine/internal/unit/fly-height.d.ts +7 -0
- package/engine/internal/unit/fly-height.lua +20 -0
- package/engine/internal/unit/ignore-events-items.d.ts +2 -0
- package/engine/internal/unit/ignore-events-items.lua +5 -0
- package/engine/internal/unit/item.d.ts +1 -0
- package/engine/internal/unit/item.lua +8 -4
- package/engine/internal/unit/main-selected.d.ts +13 -0
- package/engine/internal/unit/main-selected.lua +36 -0
- package/engine/internal/unit/order.d.ts +20 -0
- package/engine/internal/unit/order.lua +136 -0
- package/engine/internal/unit/scale.d.ts +7 -0
- package/engine/internal/unit/scale.lua +20 -0
- package/engine/internal/unit+ability.lua +10 -1
- package/engine/internal/unit+damage.d.ts +2 -11
- package/engine/internal/unit+damage.lua +10 -14
- package/engine/internal/unit+spellSteal.lua +1 -2
- package/engine/internal/unit-missile-launch.lua +45 -14
- package/engine/internal/unit.d.ts +59 -20
- package/engine/internal/unit.lua +429 -188
- package/engine/internal/utility.lua +12 -0
- package/engine/lightning.d.ts +12 -5
- package/engine/lightning.lua +48 -14
- package/engine/local-client.d.ts +9 -2
- package/engine/local-client.lua +112 -0
- package/engine/object-data/auxiliary/animation-name.d.ts +1 -0
- package/engine/object-data/auxiliary/animation-name.lua +16 -0
- package/engine/object-data/auxiliary/armor-type.d.ts +11 -0
- package/engine/object-data/auxiliary/armor-type.lua +46 -0
- package/engine/object-data/auxiliary/attachment-preset.d.ts +7 -2
- package/engine/object-data/auxiliary/attachment-preset.lua +4 -3
- package/engine/object-data/auxiliary/attack-type.d.ts +7 -8
- package/engine/object-data/auxiliary/attack-type.lua +42 -0
- package/engine/object-data/auxiliary/movement-type.d.ts +7 -7
- package/engine/object-data/auxiliary/movement-type.lua +22 -0
- package/engine/object-data/auxiliary/sound-eax.d.ts +10 -0
- package/engine/object-data/auxiliary/sound-eax.lua +2 -0
- package/engine/object-data/auxiliary/sound-preset-name.d.ts +5 -1
- package/engine/object-data/auxiliary/tech-tree-dependency.d.ts +1 -1
- package/engine/object-data/auxiliary/unit-attribute.d.ts +6 -0
- package/engine/object-data/auxiliary/unit-attribute.lua +9 -0
- package/engine/object-data/entry/ability-type/berserk.d.ts +2 -0
- package/engine/object-data/entry/ability-type/berserk.lua +13 -0
- package/engine/object-data/entry/ability-type/blank-configurable.lua +12 -1
- package/engine/object-data/entry/ability-type/carrion-swarm.d.ts +14 -0
- package/engine/object-data/entry/ability-type/carrion-swarm.lua +65 -0
- package/engine/object-data/entry/ability-type/disease-cloud.lua +2 -2
- package/engine/object-data/entry/ability-type/engineering-upgrade.lua +2 -2
- package/engine/object-data/entry/ability-type/ensnare.d.ts +12 -0
- package/engine/object-data/entry/ability-type/ensnare.lua +52 -0
- package/engine/object-data/entry/ability-type/feral-spirit.lua +2 -2
- package/engine/object-data/entry/ability-type/permanent-invisibility.d.ts +8 -0
- package/engine/object-data/entry/ability-type/permanent-invisibility.lua +26 -0
- package/engine/object-data/entry/ability-type/phase-shift.d.ts +10 -0
- package/engine/object-data/entry/ability-type/phase-shift.lua +39 -0
- package/engine/object-data/entry/ability-type/phoenix-morph.lua +4 -4
- package/engine/object-data/entry/ability-type/raise-dead.d.ts +17 -0
- package/engine/object-data/entry/ability-type/raise-dead.lua +78 -0
- package/engine/object-data/entry/ability-type/shock-wave.d.ts +4 -0
- package/engine/object-data/entry/ability-type/shock-wave.lua +26 -0
- package/engine/object-data/entry/ability-type/slow-poison.d.ts +10 -0
- package/engine/object-data/entry/ability-type/slow-poison.lua +58 -0
- package/engine/object-data/entry/ability-type/summon-quilbeast.lua +2 -2
- package/engine/object-data/entry/ability-type/summon-water-elemental.lua +2 -2
- package/engine/object-data/entry/ability-type/web.d.ts +12 -0
- package/engine/object-data/entry/ability-type/web.lua +52 -0
- package/engine/object-data/entry/ability-type.d.ts +19 -17
- package/engine/object-data/entry/ability-type.lua +93 -36
- package/engine/object-data/entry/buff-type/applicable.lua +18 -37
- package/engine/object-data/entry/buff-type.d.ts +6 -12
- package/engine/object-data/entry/buff-type.lua +13 -29
- package/engine/object-data/entry/destructible-type.d.ts +1 -1
- package/engine/object-data/entry/item-type.d.ts +3 -1
- package/engine/object-data/entry/item-type.lua +15 -2
- package/engine/object-data/entry/lightning-type.d.ts +1 -1
- package/engine/object-data/entry/sound-preset.d.ts +33 -0
- package/engine/object-data/entry/sound-preset.lua +140 -0
- package/engine/object-data/entry/unit-type.d.ts +25 -5
- package/engine/object-data/entry/unit-type.lua +258 -93
- package/engine/object-data/entry/upgrade.d.ts +1 -1
- package/engine/object-data/entry/upgrade.lua +4 -4
- package/engine/object-data/entry.d.ts +16 -14
- package/engine/object-data/entry.lua +60 -32
- package/engine/object-data/utility/object-data-entry-id-generator.lua +7 -0
- package/engine/object-field/ability.d.ts +12 -6
- package/engine/object-field/ability.lua +8 -4
- package/engine/object-field/unit.d.ts +69 -3
- package/engine/object-field/unit.lua +264 -7
- package/engine/object-field.d.ts +23 -6
- package/engine/object-field.lua +311 -124
- package/engine/random.d.ts +9 -0
- package/engine/random.lua +13 -0
- package/engine/standard/entries/buff-type.d.ts +3 -0
- package/engine/standard/entries/buff-type.lua +3 -0
- package/engine/standard/entries/sound-preset.d.ts +10 -0
- package/engine/standard/entries/sound-preset.lua +10 -0
- package/engine/standard/fields/ability.d.ts +4 -2
- package/engine/standard/fields/ability.lua +4 -2
- package/engine/standard/fields/unit.d.ts +6 -0
- package/engine/standard/fields/unit.lua +11 -0
- package/engine/synchronization.d.ts +11 -0
- package/engine/synchronization.lua +77 -0
- package/engine/text-tag.d.ts +36 -2
- package/engine/text-tag.lua +250 -10
- package/engine/unit.d.ts +5 -0
- package/engine/unit.lua +5 -0
- package/net/socket.lua +1 -1
- package/objutil/buff.lua +2 -3
- package/objutil/unit.lua +8 -0
- package/package.json +2 -2
- package/patch-lualib.lua +1 -1
- package/utility/arrays.d.ts +10 -1
- package/utility/arrays.lua +45 -3
- package/utility/callback-array.d.ts +17 -0
- package/utility/callback-array.lua +61 -0
- package/utility/functions.d.ts +8 -0
- package/utility/functions.lua +13 -0
- package/utility/lazy.d.ts +2 -0
- package/utility/lazy.lua +14 -0
- package/utility/linked-set.d.ts +2 -0
- package/utility/linked-set.lua +22 -1
- package/utility/lua-maps.d.ts +15 -2
- package/utility/lua-maps.lua +53 -2
- package/utility/lua-sets.d.ts +2 -0
- package/utility/lua-sets.lua +7 -0
- package/utility/reflection.lua +11 -7
- package/utility/types.d.ts +3 -0
- package/core/types/order.d.ts +0 -25
- package/core/types/order.lua +0 -55
package/engine/buff.d.ts
CHANGED
|
@@ -8,9 +8,12 @@ import { BuffResistanceType } from "./object-data/auxiliary/buff-resistance-type
|
|
|
8
8
|
import { AbilityBooleanField, AbilityBooleanLevelField, AbilityCombatClassificationsLevelField, AbilityDependentValue, AbilityEnumLevelField, AbilityIntegerField, AbilityIntegerLevelField, AbilityNumberField, AbilityNumberLevelField } from "./object-field/ability";
|
|
9
9
|
import { CombatClassifications } from "./object-data/auxiliary/combat-classification";
|
|
10
10
|
import { IsExactlyAny, Prohibit, ReadonlyNonEmptyArray } from "../utility/types";
|
|
11
|
+
import { EffectParameters } from "../core/types/effect";
|
|
11
12
|
import { UnitBehavior } from "./behaviour/unit";
|
|
12
13
|
import type { Widget } from "../core/types/widget";
|
|
13
14
|
import { Destructor } from "../destroyable";
|
|
15
|
+
import { Event } from "../event";
|
|
16
|
+
import { AbilityBehavior } from "./behaviour/ability";
|
|
14
17
|
export type BuffConstructor<T extends Buff<any> = Buff<any>, Args extends any[] = any> = OmitConstructor<typeof Buff<any>> & (new (...args: Args) => T);
|
|
15
18
|
type EnumParameterValueType<T extends number> = T | AbilityEnumLevelField<T>;
|
|
16
19
|
type NumberParameterValueType = number | AbilityNumberField | AbilityNumberLevelField;
|
|
@@ -54,12 +57,15 @@ export type BuffParameters<T extends Buff<any> = Buff> = Buff extends T ? {
|
|
|
54
57
|
armorIncreaseFactor?: NumberParameterValueType;
|
|
55
58
|
attackSpeedIncreaseFactor?: NumberParameterValueType;
|
|
56
59
|
movementSpeedIncreaseFactor?: NumberParameterValueType;
|
|
60
|
+
evasionProbability?: NumberParameterValueType;
|
|
61
|
+
missProbability?: NumberParameterValueType;
|
|
57
62
|
damageFactor?: NumberParameterValueType;
|
|
58
63
|
receivedDamageFactor?: NumberParameterValueType;
|
|
59
64
|
receivedMagicDamageFactor?: NumberParameterValueType;
|
|
60
65
|
durationIncreaseOnAutoAttack?: NumberParameterValueType;
|
|
61
66
|
maximumRemainingDuration?: NumberParameterValueType;
|
|
62
67
|
maximumDuration?: NumberParameterValueType;
|
|
68
|
+
turnsIntoGhost?: BooleanParameterValueType;
|
|
63
69
|
stuns?: BooleanParameterValueType;
|
|
64
70
|
ignoresStunImmunity?: BooleanParameterValueType;
|
|
65
71
|
providesStunImmunity?: BooleanParameterValueType;
|
|
@@ -74,49 +80,55 @@ export type BuffParameters<T extends Buff<any> = Buff> = Buff extends T ? {
|
|
|
74
80
|
healingOnExpiration?: NumberParameterValueType;
|
|
75
81
|
killsOnExpiration?: BooleanParameterValueType;
|
|
76
82
|
explodesOnExpiration?: BooleanParameterValueType;
|
|
83
|
+
abilityCooldownFactor?: NumberParameterValueType;
|
|
77
84
|
uniqueGroup?: BuffUniqueGroup;
|
|
78
85
|
} : BuffParameters & (T extends Buff<infer AdditionalParameters> ? AdditionalParameters : object);
|
|
79
86
|
declare const enum BuffPropertyKey {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
87
|
+
STATE = 100,
|
|
88
|
+
UNIT = 101,
|
|
89
|
+
SOURCE = 102,
|
|
90
|
+
DURATION = 103,
|
|
91
|
+
UNIQUE_GROUP = 104,
|
|
92
|
+
EFFECT_MODEL_PATH = 105,
|
|
93
|
+
SPECIAL_EFFECT_MODEL_PATH = 106,
|
|
94
|
+
DURATION_INCREASE_ON_AUTO_ATTACK = 107,
|
|
95
|
+
MAXIMUM_DURATION = 108,
|
|
96
|
+
MAXIMUM_REMAINING_DURATION = 109,
|
|
97
|
+
DAMAGE_OVER_DURATION = 110,
|
|
98
|
+
DAMAGE_PER_INTERVAL = 111,
|
|
99
|
+
DAMAGE_INTERVAL = 112,
|
|
100
|
+
REMAINING_DAMAGE_OVER_DURATION = 113,
|
|
101
|
+
DAMAGE_INTERVAL_TIMER = 114,
|
|
102
|
+
HEALING_OVER_DURATION = 115,
|
|
103
|
+
HEALING_PER_INTERVAL = 116,
|
|
104
|
+
HEALING_INTERVAL = 117,
|
|
105
|
+
REMAINING_HEALING_OVER_DURATION = 118,
|
|
106
|
+
HEALING_INTERVAL_TIMER = 119,
|
|
107
|
+
DAMAGE_ON_EXPIRATION = 120,
|
|
108
|
+
HEALING_ON_EXPIRATION = 121,
|
|
109
|
+
DAMAGE_UPON_DEATH_ALLOWED_TARGET_CLASSIFICATIONS = 122,
|
|
110
|
+
DAMAGE_UPON_DEATH = 123,
|
|
111
|
+
DAMAGE_UPON_DEATH_RANGE = 124,
|
|
112
|
+
MEDIUM_DAMAGE_UPON_DEATH = 125,
|
|
113
|
+
MEDIUM_DAMAGE_UPON_DEATH_RANGE = 126,
|
|
114
|
+
SMALL_DAMAGE_UPON_DEATH = 127,
|
|
115
|
+
SMALL_DAMAGE_UPON_DEATH_RANGE = 128,
|
|
116
|
+
AUTO_ATTACK_COUNT = 129,
|
|
117
|
+
MAXIMUM_AUTO_ATTACK_COUNT = 130,
|
|
118
|
+
DAMAGE_DEALT_EVENT_COUNT = 131,
|
|
119
|
+
MAXIMUM_DAMAGE_DEALT_EVENT_COUNT = 132,
|
|
120
|
+
DAMAGE_RECEIVED_EVENT_COUNT = 133,
|
|
121
|
+
MAXIMUM_DAMAGE_RECEIVED_EVENT_COUNT = 134,
|
|
122
|
+
TURNS_INTO_GHOST = 135,
|
|
123
|
+
STUNS = 136,
|
|
124
|
+
IGNORES_STUN_IMMUNITY = 137,
|
|
125
|
+
DISABLES_AUTO_ATTACK = 138,
|
|
126
|
+
PROVIDES_INVULNERABILITY = 139,
|
|
127
|
+
KILLS_ON_EXPIRATION = 140,
|
|
128
|
+
EXPLODES_ON_EXPIRATION = 141,
|
|
129
|
+
MISS_PROBABILITY = 142,
|
|
130
|
+
ABILITY_COOLDOWN_FACTOR = 143,
|
|
131
|
+
ABILITY_COOLDOWN_MODIFIER = 144
|
|
120
132
|
}
|
|
121
133
|
export declare const enum BuffTypeIdSelectionPolicy {
|
|
122
134
|
LEAST_DURATION = 0
|
|
@@ -130,13 +142,14 @@ export type BuffConstructorParameters<AdditionalParameters extends BuffAdditiona
|
|
|
130
142
|
polarity: BuffPolarityParameterType,
|
|
131
143
|
resistanceType: BuffResistanceTypeParameterType,
|
|
132
144
|
...abilityOrParameters: [
|
|
133
|
-
ability
|
|
145
|
+
ability?: Ability | AbilityBehavior,
|
|
134
146
|
parameters?: BuffParameters & Omit<AdditionalParameters, keyof BuffParameters>
|
|
135
147
|
] | [parameters?: BuffParameters & Omit<AdditionalParameters, keyof BuffParameters>]
|
|
136
148
|
];
|
|
137
149
|
export declare class Buff<AdditionalParameters extends Prohibit<Record<string, any>, keyof BuffParameters> = object> extends UnitBehavior {
|
|
138
150
|
private _unit;
|
|
139
151
|
protected readonly __additionalParametersBrand?: AdditionalParameters;
|
|
152
|
+
private [BuffPropertyKey.STATE];
|
|
140
153
|
private [BuffPropertyKey.UNIT];
|
|
141
154
|
private [BuffPropertyKey.SOURCE]?;
|
|
142
155
|
private [BuffPropertyKey.DURATION];
|
|
@@ -171,12 +184,15 @@ export declare class Buff<AdditionalParameters extends Prohibit<Record<string, a
|
|
|
171
184
|
private [BuffPropertyKey.DAMAGE_DEALT_EVENT_COUNT]?;
|
|
172
185
|
private [BuffPropertyKey.MAXIMUM_DAMAGE_RECEIVED_EVENT_COUNT]?;
|
|
173
186
|
private [BuffPropertyKey.DAMAGE_RECEIVED_EVENT_COUNT]?;
|
|
187
|
+
private [BuffPropertyKey.TURNS_INTO_GHOST]?;
|
|
174
188
|
private [BuffPropertyKey.STUNS]?;
|
|
175
189
|
private [BuffPropertyKey.IGNORES_STUN_IMMUNITY]?;
|
|
176
190
|
private [BuffPropertyKey.DISABLES_AUTO_ATTACK]?;
|
|
177
191
|
private [BuffPropertyKey.PROVIDES_INVULNERABILITY]?;
|
|
178
192
|
private [BuffPropertyKey.KILLS_ON_EXPIRATION]?;
|
|
179
193
|
private [BuffPropertyKey.EXPLODES_ON_EXPIRATION]?;
|
|
194
|
+
private [BuffPropertyKey.ABILITY_COOLDOWN_FACTOR]?;
|
|
195
|
+
private [BuffPropertyKey.ABILITY_COOLDOWN_MODIFIER]?;
|
|
180
196
|
protected static readonly defaultParameters: BuffParameters;
|
|
181
197
|
get source(): Unit;
|
|
182
198
|
readonly typeId: ApplicableBuffTypeId;
|
|
@@ -190,11 +206,9 @@ export declare class Buff<AdditionalParameters extends Prohibit<Record<string, a
|
|
|
190
206
|
private readonly _level?;
|
|
191
207
|
private readonly _spellStealPriority?;
|
|
192
208
|
private readonly _learnLevelMinimum?;
|
|
193
|
-
private
|
|
209
|
+
private readonly [BuffPropertyKey.MISS_PROBABILITY]?;
|
|
194
210
|
private readonly _abilityTypeIds?;
|
|
195
211
|
private _behaviors?;
|
|
196
|
-
private getUnitBonus;
|
|
197
|
-
private addOrUpdateOrRemoveUnitBonus;
|
|
198
212
|
constructor(target: Unit, ...parameters: BuffConstructorParameters<AdditionalParameters>);
|
|
199
213
|
get level(): number;
|
|
200
214
|
get remainingDamageOverDuration(): number;
|
|
@@ -223,6 +237,8 @@ export declare class Buff<AdditionalParameters extends Prohibit<Record<string, a
|
|
|
223
237
|
set receivedDamageFactor(receivedDamageFactor: number);
|
|
224
238
|
get armorIncrease(): number;
|
|
225
239
|
set armorIncrease(armorIncrease: number);
|
|
240
|
+
get turnsIntoGhost(): boolean;
|
|
241
|
+
set turnsIntoGhost(turnsIntoGhost: boolean);
|
|
226
242
|
get stuns(): boolean;
|
|
227
243
|
set stuns(stuns: boolean);
|
|
228
244
|
get ignoresStunImmunity(): boolean;
|
|
@@ -247,11 +263,21 @@ export declare class Buff<AdditionalParameters extends Prohibit<Record<string, a
|
|
|
247
263
|
set attackSpeedIncreaseFactor(attackSpeedIncreaseFactor: number);
|
|
248
264
|
get movementSpeedIncreaseFactor(): number;
|
|
249
265
|
set movementSpeedIncreaseFactor(movementSpeedIncreaseFactor: number);
|
|
266
|
+
get evasionProbability(): number;
|
|
267
|
+
set evasionProbability(evasionProbability: number);
|
|
250
268
|
get duration(): number;
|
|
251
269
|
get remainingDuration(): number;
|
|
252
270
|
set remainingDuration(remainingDuration: number);
|
|
253
|
-
|
|
271
|
+
get abilityCooldownFactor(): number;
|
|
272
|
+
set abilityCooldownFactor(abilityCooldownFactor: number);
|
|
273
|
+
onAbilityGained(ability: Ability): void;
|
|
274
|
+
onAbilityLost(ability: Ability): void;
|
|
275
|
+
flashEffect(...parameters: [
|
|
276
|
+
...widgetOrXY: [] | [Widget] | [x: number, x: number],
|
|
277
|
+
...parametersOrDuration: [] | [EffectParameters] | [number]
|
|
278
|
+
]): void;
|
|
254
279
|
flashSpecialEffect(...parameters: [...widget: [] | [Widget], ...duration: [] | [number]]): void;
|
|
280
|
+
protected onCreate(): void;
|
|
255
281
|
protected onDestroy(): Destructor;
|
|
256
282
|
static apply<T extends Buff<any>, Args extends any[]>(this: BuffConstructor<T, Args>, ...args: Args): T | undefined;
|
|
257
283
|
static getByTypeId<T extends Buff<any>, Args extends any[]>(this: BuffConstructor<T, Args>, unit: Unit, typeId: ApplicableBuffTypeId): T | undefined;
|
|
@@ -259,5 +285,7 @@ export declare class Buff<AdditionalParameters extends Prohibit<Record<string, a
|
|
|
259
285
|
onDeath(source: Unit | undefined): void;
|
|
260
286
|
onDamageDealt(target: Unit, event: DamageEvent): void;
|
|
261
287
|
onDamageReceived(source: Unit | undefined, event: DamageEvent): void;
|
|
288
|
+
static readonly createdEvent: Event<[Buff<object>]>;
|
|
289
|
+
static readonly beingDestroyedEvent: Event<[Buff<object>]>;
|
|
262
290
|
}
|
|
263
291
|
export {};
|