warscript 0.0.1-dev.9cbb1ff → 0.0.1-dev.9d07b64
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/core/dummy.lua +4 -2
- package/core/types/effect.d.ts +11 -1
- package/core/types/effect.lua +43 -77
- package/core/types/frame.d.ts +16 -2
- package/core/types/frame.lua +141 -77
- package/core/types/handle.lua +9 -9
- package/core/types/item.d.ts +1 -0
- package/core/types/item.lua +1 -0
- package/core/types/player.d.ts +18 -1
- package/core/types/player.lua +76 -26
- package/core/types/playerCamera.d.ts +2 -0
- package/core/types/playerCamera.lua +123 -5
- package/core/types/playerColor.lua +4 -3
- package/core/types/sound.d.ts +1 -1
- package/core/types/sound.lua +14 -9
- package/core/types/tileCell.d.ts +18 -3
- package/core/types/tileCell.lua +108 -0
- package/core/types/timer.d.ts +3 -1
- package/core/types/timer.lua +27 -2
- package/core/types/unit.d.ts +5 -0
- package/core/types/unit.lua +5 -0
- package/core/util.d.ts +3 -1
- package/core/util.lua +109 -3
- package/decl/native.d.ts +1718 -964
- package/destroyable.d.ts +1 -0
- package/destroyable.lua +9 -0
- package/engine/ability-type-extended-tooltip.d.ts +8 -0
- package/engine/ability-type-extended-tooltip.lua +44 -0
- package/engine/behavior.d.ts +14 -1
- package/engine/behavior.lua +230 -70
- package/engine/behaviour/ability/apply-buff.lua +5 -5
- package/engine/behaviour/ability/apply-unit-behavior.lua +5 -0
- package/engine/behaviour/ability/damage.d.ts +10 -3
- package/engine/behaviour/ability/damage.lua +41 -49
- package/engine/behaviour/ability/emulate-impact.d.ts +1 -1
- package/engine/behaviour/ability/emulate-impact.lua +16 -7
- package/engine/behaviour/ability/on-command-impact.d.ts +1 -0
- package/engine/behaviour/ability/on-command-impact.lua +1 -0
- package/engine/behaviour/ability/remove-buffs.d.ts +9 -0
- package/engine/behaviour/ability/remove-buffs.lua +21 -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 +13 -6
- package/engine/behaviour/ability.lua +109 -25
- package/engine/behaviour/unit/stun-immunity.d.ts +12 -6
- package/engine/behaviour/unit/stun-immunity.lua +57 -31
- package/engine/behaviour/unit.d.ts +40 -3
- package/engine/behaviour/unit.lua +270 -6
- package/engine/buff.d.ts +114 -58
- package/engine/buff.lua +567 -303
- package/engine/index.d.ts +2 -1
- package/engine/internal/ability.d.ts +14 -1
- package/engine/internal/ability.lua +113 -44
- package/engine/internal/item/ability.lua +63 -11
- package/engine/internal/item/fields.d.ts +12 -0
- package/engine/internal/item/fields.lua +33 -0
- package/engine/internal/item/owner-cache.d.ts +5 -0
- package/engine/internal/item/owner-cache.lua +4 -0
- package/engine/internal/item+owner.d.ts +2 -0
- package/engine/internal/item+owner.lua +37 -8
- package/engine/internal/item.d.ts +32 -16
- package/engine/internal/item.lua +257 -82
- package/engine/internal/mechanics/cast-ability.lua +6 -3
- 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/misc/unit-ability-level-natives.d.ts +2 -0
- package/engine/internal/misc/unit-ability-level-natives.lua +12 -0
- package/engine/internal/object-data/armor-bonus.d.ts +2 -0
- package/engine/internal/object-data/attribute-bonus.lua +2 -2
- package/engine/internal/object-data/health-bonus.d.ts +2 -0
- package/engine/internal/object-data/health-bonus.lua +16 -0
- package/engine/internal/object-data/health-regeneration-rate-increase.d.ts +2 -0
- package/engine/internal/object-data/health-regeneration-rate-increase.lua +48 -0
- package/engine/internal/object-data/mana-bonus.d.ts +2 -0
- package/engine/internal/object-data/mana-bonus.lua +16 -0
- package/engine/internal/object-data/mana-regeneration-rate-increase-factor.d.ts +2 -0
- package/engine/internal/object-data/mana-regeneration-rate-increase-factor.lua +16 -0
- package/engine/internal/object-data/returned-melee-damage-factor.d.ts +2 -0
- package/engine/internal/object-data/returned-melee-damage-factor.lua +21 -0
- package/engine/internal/unit/ability.d.ts +35 -0
- package/engine/internal/unit/ability.lua +98 -9
- package/engine/internal/unit/add-item-to-slot-init.lua +3 -14
- package/engine/internal/unit/add-item-to-slot.lua +53 -12
- package/engine/internal/unit/allowed-targets.d.ts +1 -1
- package/engine/internal/unit/allowed-targets.lua +9 -1
- package/engine/internal/unit/appearance.d.ts +15 -0
- package/engine/internal/unit/appearance.lua +85 -0
- package/engine/internal/unit/attributes.d.ts +17 -0
- package/engine/internal/unit/attributes.lua +46 -0
- package/engine/internal/unit/bonus.d.ts +17 -0
- package/engine/internal/unit/bonus.lua +113 -8
- package/engine/internal/unit/buff.d.ts +2 -2
- package/engine/internal/unit/buff.lua +34 -19
- package/engine/internal/unit/equipment-inventory.d.ts +44 -0
- package/engine/internal/unit/equipment-inventory.lua +233 -0
- package/engine/internal/unit/expiration-timer.lua +1 -1
- package/engine/internal/unit/extended-inventory.d.ts +25 -0
- package/engine/internal/unit/extended-inventory.lua +99 -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.lua +10 -1
- package/engine/internal/unit/interrupts.d.ts +12 -0
- package/engine/internal/unit/interrupts.lua +28 -0
- package/engine/internal/unit/{item.d.ts → inventory.d.ts} +7 -3
- package/engine/internal/unit/inventory.lua +87 -0
- package/engine/internal/unit/item-container.d.ts +25 -0
- package/engine/internal/unit/item-container.lua +11 -0
- package/engine/internal/unit/item-order-events.d.ts +17 -0
- package/engine/internal/unit/item-order-events.lua +67 -0
- package/engine/internal/unit/item-slot.d.ts +27 -0
- package/engine/internal/unit/item-slot.lua +92 -0
- package/engine/internal/unit/main-selected.lua +12 -27
- package/engine/internal/unit/order.d.ts +20 -0
- package/engine/internal/unit/order.lua +136 -0
- package/engine/internal/unit/range-event.d.ts +12 -0
- package/engine/internal/unit/range-event.lua +90 -0
- package/engine/internal/unit/scale.d.ts +7 -0
- package/engine/internal/unit/scale.lua +20 -0
- package/engine/internal/unit+ability.d.ts +2 -1
- package/engine/internal/unit+ability.lua +73 -3
- package/engine/internal/unit+bonus.lua +3 -3
- package/engine/internal/unit+damage.d.ts +11 -11
- package/engine/internal/unit+damage.lua +43 -14
- package/engine/internal/unit+rally.lua +9 -31
- package/engine/internal/unit+spellSteal.lua +1 -2
- package/engine/internal/unit-missile-data.lua +58 -32
- package/engine/internal/unit-missile-launch.lua +65 -27
- package/engine/internal/unit.d.ts +35 -36
- package/engine/internal/unit.lua +381 -336
- package/engine/local-client.d.ts +28 -0
- package/engine/local-client.lua +324 -54
- 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 -0
- package/engine/object-data/auxiliary/attachment-preset.lua +7 -0
- 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/equipment-slot.d.ts +12 -0
- package/engine/object-data/auxiliary/equipment-slot.lua +2 -0
- package/engine/object-data/auxiliary/equipment-type.d.ts +12 -0
- package/engine/object-data/auxiliary/equipment-type.lua +26 -0
- package/engine/object-data/auxiliary/health-regeneration-type.d.ts +8 -0
- package/engine/object-data/auxiliary/health-regeneration-type.lua +2 -0
- package/engine/object-data/auxiliary/item-class.d.ts +11 -0
- package/engine/object-data/auxiliary/item-class.lua +2 -0
- package/engine/object-data/auxiliary/item-tag.d.ts +12 -0
- package/engine/object-data/auxiliary/item-tag.lua +2 -0
- package/engine/object-data/auxiliary/order-type.d.ts +939 -0
- package/engine/object-data/auxiliary/order-type.lua +2 -0
- package/engine/object-data/auxiliary/sound-set-name.d.ts +14 -3
- package/engine/object-data/auxiliary/unit-attribute.lua +1 -1
- package/engine/object-data/entry/ability-type/apprehend.d.ts +22 -0
- package/engine/object-data/entry/ability-type/apprehend.lua +66 -0
- package/engine/object-data/entry/ability-type/armor-bonus.d.ts +8 -0
- package/engine/object-data/entry/ability-type/{armor-increase.lua → armor-bonus.lua} +9 -9
- package/engine/object-data/entry/ability-type/aura-of-blight.d.ts +13 -0
- package/engine/object-data/entry/ability-type/aura-of-blight.lua +39 -0
- package/engine/object-data/entry/ability-type/banshee.d.ts +8 -0
- package/engine/object-data/entry/ability-type/banshee.lua +13 -0
- package/engine/object-data/entry/ability-type/banshees-wail-damage-amp.d.ts +12 -0
- package/engine/object-data/entry/ability-type/banshees-wail-damage-amp.lua +27 -0
- package/engine/object-data/entry/ability-type/banshees-wail.d.ts +31 -0
- package/engine/object-data/entry/ability-type/banshees-wail.lua +117 -0
- package/engine/object-data/entry/ability-type/battering-ram.d.ts +33 -0
- package/engine/object-data/entry/ability-type/battering-ram.lua +130 -0
- package/engine/object-data/entry/ability-type/blank-configurable.lua +2 -2
- package/engine/object-data/entry/ability-type/blank-passive-with-cooldown.d.ts +23 -0
- package/engine/object-data/entry/ability-type/blank-passive-with-cooldown.lua +112 -0
- package/engine/object-data/entry/ability-type/blank-passive.d.ts +4 -0
- package/engine/object-data/entry/ability-type/blank-passive.lua +27 -7
- package/engine/object-data/entry/ability-type/breath-of-fire.d.ts +11 -0
- package/engine/object-data/entry/ability-type/breath-of-fire.lua +27 -0
- package/engine/object-data/entry/ability-type/channel.d.ts +2 -2
- package/engine/object-data/entry/ability-type/channel.lua +3 -3
- package/engine/object-data/entry/ability-type/cleansing-fire.d.ts +27 -0
- package/engine/object-data/entry/ability-type/cleansing-fire.lua +104 -0
- package/engine/object-data/entry/ability-type/consecration.d.ts +15 -0
- package/engine/object-data/entry/ability-type/consecration.lua +52 -0
- package/engine/object-data/entry/ability-type/cooldown-reduction.d.ts +12 -0
- package/engine/object-data/entry/ability-type/cooldown-reduction.lua +39 -0
- package/engine/object-data/entry/ability-type/critical-strike-system.d.ts +18 -0
- package/engine/object-data/entry/ability-type/critical-strike-system.lua +65 -0
- package/engine/object-data/entry/ability-type/deathseeker-arrows.d.ts +21 -0
- package/engine/object-data/entry/ability-type/deathseeker-arrows.lua +78 -0
- package/engine/object-data/entry/ability-type/equipment-inventory-interface.d.ts +8 -0
- package/engine/object-data/entry/ability-type/equipment-inventory-interface.lua +13 -0
- package/engine/object-data/entry/ability-type/equipment-inventory.d.ts +13 -0
- package/engine/object-data/entry/ability-type/equipment-inventory.lua +27 -0
- package/engine/object-data/entry/ability-type/equipment.d.ts +13 -0
- package/engine/object-data/entry/ability-type/equipment.lua +27 -0
- package/engine/object-data/entry/ability-type/exhume-corpses.d.ts +14 -0
- package/engine/object-data/entry/ability-type/exhume-corpses.lua +40 -0
- package/engine/object-data/entry/ability-type/firebolt.d.ts +7 -0
- package/engine/object-data/entry/ability-type/firebolt.lua +13 -0
- package/engine/object-data/entry/ability-type/flame-strike.d.ts +25 -0
- package/engine/object-data/entry/ability-type/flame-strike.lua +92 -0
- package/engine/object-data/entry/ability-type/grant-talent-point.d.ts +8 -0
- package/engine/object-data/entry/ability-type/grant-talent-point.lua +13 -0
- package/engine/object-data/entry/ability-type/grim-conviction.d.ts +36 -0
- package/engine/object-data/entry/ability-type/grim-conviction.lua +131 -0
- package/engine/object-data/entry/ability-type/grit.d.ts +18 -0
- package/engine/object-data/entry/ability-type/grit.lua +65 -0
- package/engine/object-data/entry/ability-type/guiding-hand.d.ts +27 -0
- package/engine/object-data/entry/ability-type/guiding-hand.lua +104 -0
- package/engine/object-data/entry/ability-type/headsplitter.d.ts +27 -0
- package/engine/object-data/entry/ability-type/headsplitter.lua +104 -0
- package/engine/object-data/entry/ability-type/{armor-increase.d.ts → healing-modifier.d.ts} +4 -3
- package/engine/object-data/entry/ability-type/healing-modifier.lua +26 -0
- package/engine/object-data/entry/ability-type/healing-ward-aura.d.ts +13 -0
- package/engine/object-data/entry/ability-type/healing-ward-aura.lua +39 -0
- package/engine/object-data/entry/ability-type/health-bonus.d.ts +8 -0
- package/engine/object-data/entry/ability-type/health-bonus.lua +26 -0
- package/engine/object-data/entry/ability-type/heroic-slash.d.ts +18 -0
- package/engine/object-data/entry/ability-type/heroic-slash.lua +65 -0
- package/engine/object-data/entry/ability-type/holy-wrath.d.ts +30 -0
- package/engine/object-data/entry/ability-type/holy-wrath.lua +117 -0
- package/engine/object-data/entry/ability-type/inspire-courage.d.ts +18 -0
- package/engine/object-data/entry/ability-type/inspire-courage.lua +65 -0
- package/engine/object-data/entry/ability-type/item-life-regeneration.d.ts +10 -0
- package/engine/object-data/entry/ability-type/item-life-regeneration.lua +26 -0
- package/engine/object-data/entry/ability-type/life-drain.d.ts +37 -0
- package/engine/object-data/entry/ability-type/life-drain.lua +144 -0
- package/engine/object-data/entry/ability-type/lights-mercy.d.ts +27 -0
- package/engine/object-data/entry/ability-type/lights-mercy.lua +104 -0
- package/engine/object-data/entry/ability-type/mana-bonus.d.ts +8 -0
- package/engine/object-data/entry/ability-type/mana-bonus.lua +26 -0
- package/engine/object-data/entry/ability-type/mana-efficiency.d.ts +12 -0
- package/engine/object-data/entry/ability-type/mana-efficiency.lua +39 -0
- package/engine/object-data/entry/ability-type/mana-regeneration.d.ts +8 -0
- package/engine/object-data/entry/ability-type/mana-regeneration.lua +26 -0
- package/engine/object-data/entry/ability-type/mind-control.d.ts +21 -0
- package/engine/object-data/entry/ability-type/mind-control.lua +78 -0
- package/engine/object-data/entry/ability-type/on-attack-cast-spell.d.ts +21 -0
- package/engine/object-data/entry/ability-type/on-attack-cast-spell.lua +52 -0
- package/engine/object-data/entry/ability-type/on-basic-attack-cast-spell.d.ts +19 -0
- package/engine/object-data/entry/ability-type/on-basic-attack-cast-spell.lua +65 -0
- package/engine/object-data/entry/ability-type/on-hit-cast-spell.d.ts +15 -0
- package/engine/object-data/entry/ability-type/on-hit-cast-spell.lua +26 -0
- package/engine/object-data/entry/ability-type/on-magic-attack-cast-spell.d.ts +6 -0
- package/engine/object-data/entry/ability-type/on-magic-attack-cast-spell.lua +12 -0
- 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/provoke.d.ts +21 -0
- package/engine/object-data/entry/ability-type/provoke.lua +66 -0
- package/engine/object-data/entry/ability-type/rain-of-fire.d.ts +7 -0
- package/engine/object-data/entry/ability-type/rain-of-fire.lua +13 -0
- package/engine/object-data/entry/ability-type/raise-the-banner.d.ts +9 -0
- package/engine/object-data/entry/ability-type/raise-the-banner.lua +26 -0
- package/engine/object-data/entry/ability-type/reincarnation.d.ts +8 -0
- package/engine/object-data/entry/ability-type/reincarnation.lua +26 -0
- package/engine/object-data/entry/ability-type/resolve.d.ts +12 -0
- package/engine/object-data/entry/ability-type/resolve.lua +39 -0
- package/engine/object-data/entry/ability-type/righteous-fury.d.ts +33 -0
- package/engine/object-data/entry/ability-type/righteous-fury.lua +130 -0
- package/engine/object-data/entry/ability-type/sacred-aura.d.ts +27 -0
- package/engine/object-data/entry/ability-type/sacred-aura.lua +104 -0
- package/engine/object-data/entry/ability-type/soul-burn.d.ts +22 -0
- package/engine/object-data/entry/ability-type/soul-burn.lua +79 -0
- package/engine/object-data/entry/ability-type/soul-lantern.d.ts +30 -0
- package/engine/object-data/entry/ability-type/soul-lantern.lua +117 -0
- package/engine/object-data/entry/ability-type/spell-amp.d.ts +15 -0
- package/engine/object-data/entry/ability-type/spell-amp.lua +52 -0
- package/engine/object-data/entry/ability-type/spell-critical-strike.d.ts +12 -0
- package/engine/object-data/entry/ability-type/spell-critical-strike.lua +39 -0
- package/engine/object-data/entry/ability-type/spell-vamp.d.ts +12 -0
- package/engine/object-data/entry/ability-type/spell-vamp.lua +39 -0
- package/engine/object-data/entry/ability-type/stackable-evasion.d.ts +9 -0
- package/engine/object-data/entry/ability-type/stackable-evasion.lua +13 -0
- package/engine/object-data/entry/ability-type/stackable-hardened-skin.d.ts +21 -0
- package/engine/object-data/entry/ability-type/stackable-hardened-skin.lua +78 -0
- package/engine/object-data/entry/ability-type/stackable-life-steal.d.ts +9 -0
- package/engine/object-data/entry/ability-type/stackable-life-steal.lua +26 -0
- package/engine/object-data/entry/ability-type/stackable-spell-damage-reduction.d.ts +9 -0
- package/engine/object-data/entry/ability-type/stackable-spell-damage-reduction.lua +13 -0
- package/engine/object-data/entry/ability-type/stackable-thorn-shield.d.ts +9 -0
- package/engine/object-data/entry/ability-type/stackable-thorn-shield.lua +13 -0
- package/engine/object-data/entry/ability-type/stat-details.d.ts +12 -0
- package/engine/object-data/entry/ability-type/stat-details.lua +27 -0
- package/engine/object-data/entry/ability-type/surge-of-light.d.ts +33 -0
- package/engine/object-data/entry/ability-type/surge-of-light.lua +130 -0
- package/engine/object-data/entry/ability-type/sweeping-strike.d.ts +57 -0
- package/engine/object-data/entry/ability-type/sweeping-strike.lua +234 -0
- package/engine/object-data/entry/ability-type/talents.d.ts +12 -0
- package/engine/object-data/entry/ability-type/talents.lua +27 -0
- package/engine/object-data/entry/ability-type/unyielding-guard.d.ts +30 -0
- package/engine/object-data/entry/ability-type/unyielding-guard.lua +117 -0
- package/engine/object-data/entry/ability-type/valiant-charge.d.ts +27 -0
- package/engine/object-data/entry/ability-type/valiant-charge.lua +104 -0
- package/engine/object-data/entry/ability-type/warcry.d.ts +9 -0
- package/engine/object-data/entry/ability-type/warcry.lua +26 -0
- package/engine/object-data/entry/ability-type/withering-fire.d.ts +21 -0
- package/engine/object-data/entry/ability-type/withering-fire.lua +78 -0
- package/engine/object-data/entry/ability-type.d.ts +33 -8
- package/engine/object-data/entry/ability-type.lua +291 -15
- package/engine/object-data/entry/buff-type/applicable.lua +122 -111
- package/engine/object-data/entry/buff-type.d.ts +6 -2
- package/engine/object-data/entry/buff-type.lua +26 -0
- package/engine/object-data/entry/destructible-type.d.ts +32 -2
- package/engine/object-data/entry/destructible-type.lua +181 -0
- package/engine/object-data/entry/item-type.d.ts +18 -3
- package/engine/object-data/entry/item-type.lua +84 -0
- package/engine/object-data/entry/lightning-type.d.ts +6 -8
- package/engine/object-data/entry/lightning-type.lua +1 -1
- package/engine/object-data/entry/sound-preset.d.ts +2 -2
- package/engine/object-data/entry/unit-type.d.ts +74 -6
- package/engine/object-data/entry/unit-type.lua +552 -98
- package/engine/object-data/entry/upgrade.d.ts +2 -2
- package/engine/object-data/entry.d.ts +6 -1
- package/engine/object-data/entry.lua +8 -0
- package/engine/object-field/ability.d.ts +4 -4
- package/engine/object-field/ability.lua +9 -8
- package/engine/object-field/item.d.ts +22 -0
- package/engine/object-field/item.lua +118 -0
- package/engine/object-field/unit.d.ts +72 -3
- package/engine/object-field/unit.lua +268 -7
- package/engine/object-field.d.ts +18 -7
- package/engine/object-field.lua +294 -135
- package/engine/random.d.ts +10 -0
- package/engine/random.lua +21 -0
- package/engine/standard/entries/ability-type.d.ts +3102 -7
- package/engine/standard/entries/ability-type.lua +0 -6
- package/engine/standard/entries/buff-type.d.ts +45 -0
- package/engine/standard/entries/buff-type.lua +43 -0
- package/engine/standard/entries/item-type.d.ts +1299 -0
- package/engine/standard/entries/item-type.lua +2 -0
- package/engine/standard/entries/lightning-type.d.ts +42 -15
- package/engine/standard/entries/lightning-type.lua +0 -14
- package/engine/standard/entries/unit-type.d.ts +5 -0
- package/engine/standard/entries/unit-type.lua +5 -0
- package/engine/standard/fields/ability.d.ts +4 -4
- package/engine/standard/fields/ability.lua +4 -4
- package/engine/standard/fields/item.d.ts +4 -0
- package/engine/standard/fields/item.lua +6 -0
- package/engine/standard/fields/unit.d.ts +12 -0
- package/engine/standard/fields/unit.lua +20 -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 +11 -1
- package/engine/unit.lua +11 -1
- package/event.d.ts +1 -1
- package/lualib_bundle.lua +1 -1
- package/math.d.ts +2 -0
- package/math.lua +14 -0
- package/net/socket.lua +1 -1
- package/network.lua +25 -1
- package/objutil/buff.lua +12 -11
- package/objutil/object.lua +1 -1
- package/operation.d.ts +8 -1
- package/operation.lua +38 -18
- package/package.json +3 -23
- package/patch-lua.lua +15 -0
- package/patch-lualib.lua +1 -1
- package/utility/arrays.d.ts +9 -1
- package/utility/arrays.lua +28 -0
- 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/linked-map.d.ts +35 -0
- package/utility/linked-map.lua +107 -0
- package/utility/linked-set.d.ts +4 -1
- package/utility/linked-set.lua +46 -1
- package/utility/lua-maps.d.ts +12 -2
- package/utility/lua-maps.lua +37 -2
- package/utility/lua-sets.d.ts +1 -0
- package/utility/lua-sets.lua +4 -0
- package/utility/random.d.ts +102 -0
- package/utility/random.lua +273 -0
- package/utility/records.lua +20 -1
- package/utility/types.d.ts +3 -0
- package/utility/unordered-map.d.ts +27 -0
- package/utility/unordered-map.lua +99 -0
- package/core/types/order.d.ts +0 -25
- package/core/types/order.lua +0 -55
- package/engine/internal/unit/item.lua +0 -78
- /package/engine/internal/{object-data/armor-increase.d.ts → misc/damage-metadata-by-target.d.ts} +0 -0
- /package/engine/internal/object-data/{armor-increase.lua → armor-bonus.lua} +0 -0
- /package/engine/object-data/entry/ability-type/{attribute-increase.d.ts → attribute-bonus.d.ts} +0 -0
- /package/engine/object-data/entry/ability-type/{attribute-increase.lua → attribute-bonus.lua} +0 -0
|
@@ -11,8 +11,9 @@ export declare const enum SoundSetName {
|
|
|
11
11
|
ALTAR_OF_ELDERS = "AltarOfElders",
|
|
12
12
|
ALTAR_OF_KINGS = "AltarOfKings",
|
|
13
13
|
ALTAR_OF_STORMS = "AltarOfStorms",
|
|
14
|
-
ARCHMAGE = "
|
|
14
|
+
ARCHMAGE = "HeroArchMage",
|
|
15
15
|
BANDIT = "Bandit",
|
|
16
|
+
BANSHEE = "Banshee",
|
|
16
17
|
BLOOD_MAGE = "BloodElfSorceror",
|
|
17
18
|
BREWMASTER = "PandarenBrewmaster",
|
|
18
19
|
CLOCKWERK_GOBLIN = "ClockwerkGoblin",
|
|
@@ -20,16 +21,26 @@ export declare const enum SoundSetName {
|
|
|
20
21
|
DEATH_KNIGHT = "HeroDeathKnight",
|
|
21
22
|
DEMON_HUNTER = "HeroDemonHunter",
|
|
22
23
|
DEMON_HUNTER_MORPHED = "HeroDemonHunterMorphed",
|
|
23
|
-
|
|
24
|
+
EVIL_ARTHAS = "EvilArthas",
|
|
24
25
|
FEL_ORC_GRUNT = "ChaosGrunt",
|
|
26
|
+
FEMALE_CENTAUR = "FemaleCentaur",
|
|
25
27
|
FEMALE_DEMON_HUNTER = "HeroFemaleDemonHunter",
|
|
26
28
|
FEMALE_DEMON_HUNTER_MORPHED = "HeroFemaleDemonHunterMorphed",
|
|
29
|
+
FOOTMAN = "Footman",
|
|
30
|
+
FOREST_TROLL = "ForestTroll",
|
|
27
31
|
FURBOLG = "Furbolg",
|
|
28
32
|
GOBLIN_SAPPER = "GoblinSapper",
|
|
33
|
+
GROM = "Grom",
|
|
29
34
|
GRUNT = "Grunt",
|
|
35
|
+
ILLIDAN = "Illidan",
|
|
30
36
|
MOUNTAIN_KING = "HeroMountainKing",
|
|
31
37
|
NERUBIAN = "Nerubian",
|
|
32
38
|
PALADIN = "HeroPaladin",
|
|
39
|
+
PRIEST = "Priest",
|
|
40
|
+
REVENANT = "Revenant",
|
|
33
41
|
RIFLEMAN = "Rifleman",
|
|
34
|
-
|
|
42
|
+
SKELETON = "Skeleton",
|
|
43
|
+
SNAP_DRAGON = "SnapDragon",
|
|
44
|
+
TINKER = "HeroTinker",
|
|
45
|
+
WARDEN = "HeroWarden"
|
|
35
46
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
|
-
____exports.UnitAttribute = UnitAttribute or ({})
|
|
2
|
+
____exports.UnitAttribute = ____exports.UnitAttribute or ({})
|
|
3
3
|
____exports.UnitAttribute.STRENGTH = 1
|
|
4
4
|
____exports.UnitAttribute[____exports.UnitAttribute.STRENGTH] = "STRENGTH"
|
|
5
5
|
____exports.UnitAttribute.INTELLIGENCE = 2
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import { EnsnareAbilityType } from "./ensnare";
|
|
3
|
+
import { AbilityTypeId } from "../ability-type";
|
|
4
|
+
import { ObjectDataEntryLevelFieldValueSupplier } from "../../entry";
|
|
5
|
+
/**
|
|
6
|
+
* Apprehend (Aena) — ensnare with stun/attack speed/bonus damage/silence extensions (Data D-G).
|
|
7
|
+
*/
|
|
8
|
+
export declare class ApprehendAbilityType extends EnsnareAbilityType {
|
|
9
|
+
static readonly BASE_ID: AbilityTypeId;
|
|
10
|
+
/** Stun Duration */
|
|
11
|
+
get stunDuration(): number[];
|
|
12
|
+
set stunDuration(stunDuration: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
13
|
+
/** Attack Speed Reduction Percent */
|
|
14
|
+
get attackSpeedReductionPercentage(): number[];
|
|
15
|
+
set attackSpeedReductionPercentage(attackSpeedReductionPercentage: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
16
|
+
/** Bonus Damage Taken Percent */
|
|
17
|
+
get bonusDamageTakenPercentage(): number[];
|
|
18
|
+
set bonusDamageTakenPercentage(bonusDamageTakenPercentage: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
19
|
+
/** Silences When Ensnared */
|
|
20
|
+
get silencesWhenEnsnared(): boolean[];
|
|
21
|
+
set silencesWhenEnsnared(silencesWhenEnsnared: ObjectDataEntryLevelFieldValueSupplier<boolean>);
|
|
22
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
+
local __TS__SetDescriptor = ____lualib.__TS__SetDescriptor
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local ____ensnare = require("engine.object-data.entry.ability-type.ensnare")
|
|
7
|
+
local EnsnareAbilityType = ____ensnare.EnsnareAbilityType
|
|
8
|
+
--- Apprehend (Aena) — ensnare with stun/attack speed/bonus damage/silence extensions (Data D-G).
|
|
9
|
+
____exports.ApprehendAbilityType = __TS__Class()
|
|
10
|
+
local ApprehendAbilityType = ____exports.ApprehendAbilityType
|
|
11
|
+
ApprehendAbilityType.name = "ApprehendAbilityType"
|
|
12
|
+
__TS__ClassExtends(ApprehendAbilityType, EnsnareAbilityType)
|
|
13
|
+
ApprehendAbilityType.BASE_ID = fourCC("Aena")
|
|
14
|
+
__TS__SetDescriptor(
|
|
15
|
+
ApprehendAbilityType.prototype,
|
|
16
|
+
"stunDuration",
|
|
17
|
+
{
|
|
18
|
+
get = function(self)
|
|
19
|
+
return self:getNumberLevelField("Ens4")
|
|
20
|
+
end,
|
|
21
|
+
set = function(self, stunDuration)
|
|
22
|
+
self:setNumberLevelField("Ens4", stunDuration)
|
|
23
|
+
end
|
|
24
|
+
},
|
|
25
|
+
true
|
|
26
|
+
)
|
|
27
|
+
__TS__SetDescriptor(
|
|
28
|
+
ApprehendAbilityType.prototype,
|
|
29
|
+
"attackSpeedReductionPercentage",
|
|
30
|
+
{
|
|
31
|
+
get = function(self)
|
|
32
|
+
return self:getNumberLevelField("Ens5")
|
|
33
|
+
end,
|
|
34
|
+
set = function(self, attackSpeedReductionPercentage)
|
|
35
|
+
self:setNumberLevelField("Ens5", attackSpeedReductionPercentage)
|
|
36
|
+
end
|
|
37
|
+
},
|
|
38
|
+
true
|
|
39
|
+
)
|
|
40
|
+
__TS__SetDescriptor(
|
|
41
|
+
ApprehendAbilityType.prototype,
|
|
42
|
+
"bonusDamageTakenPercentage",
|
|
43
|
+
{
|
|
44
|
+
get = function(self)
|
|
45
|
+
return self:getNumberLevelField("Ens6")
|
|
46
|
+
end,
|
|
47
|
+
set = function(self, bonusDamageTakenPercentage)
|
|
48
|
+
self:setNumberLevelField("Ens6", bonusDamageTakenPercentage)
|
|
49
|
+
end
|
|
50
|
+
},
|
|
51
|
+
true
|
|
52
|
+
)
|
|
53
|
+
__TS__SetDescriptor(
|
|
54
|
+
ApprehendAbilityType.prototype,
|
|
55
|
+
"silencesWhenEnsnared",
|
|
56
|
+
{
|
|
57
|
+
get = function(self)
|
|
58
|
+
return self:getBooleanLevelField("Ens7")
|
|
59
|
+
end,
|
|
60
|
+
set = function(self, silencesWhenEnsnared)
|
|
61
|
+
self:setBooleanLevelField("Ens7", silencesWhenEnsnared)
|
|
62
|
+
end
|
|
63
|
+
},
|
|
64
|
+
true
|
|
65
|
+
)
|
|
66
|
+
return ____exports
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import { AbilityType, AbilityTypeId } from "../ability-type";
|
|
3
|
+
import { ObjectDataEntryLevelFieldValueSupplier } from "../../entry";
|
|
4
|
+
export declare class ArmorBonusAbilityType extends AbilityType {
|
|
5
|
+
static readonly BASE_ID: AbilityTypeId;
|
|
6
|
+
get armorBonus(): number[];
|
|
7
|
+
set armorBonus(armorBonus: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
8
|
+
}
|
|
@@ -5,20 +5,20 @@ local __TS__SetDescriptor = ____lualib.__TS__SetDescriptor
|
|
|
5
5
|
local ____exports = {}
|
|
6
6
|
local ____ability_2Dtype = require("engine.object-data.entry.ability-type")
|
|
7
7
|
local AbilityType = ____ability_2Dtype.AbilityType
|
|
8
|
-
____exports.
|
|
9
|
-
local
|
|
10
|
-
|
|
11
|
-
__TS__ClassExtends(
|
|
12
|
-
|
|
8
|
+
____exports.ArmorBonusAbilityType = __TS__Class()
|
|
9
|
+
local ArmorBonusAbilityType = ____exports.ArmorBonusAbilityType
|
|
10
|
+
ArmorBonusAbilityType.name = "ArmorBonusAbilityType"
|
|
11
|
+
__TS__ClassExtends(ArmorBonusAbilityType, AbilityType)
|
|
12
|
+
ArmorBonusAbilityType.BASE_ID = fourCC("AId1")
|
|
13
13
|
__TS__SetDescriptor(
|
|
14
|
-
|
|
15
|
-
"
|
|
14
|
+
ArmorBonusAbilityType.prototype,
|
|
15
|
+
"armorBonus",
|
|
16
16
|
{
|
|
17
17
|
get = function(self)
|
|
18
18
|
return self:getNumberLevelField("Idef")
|
|
19
19
|
end,
|
|
20
|
-
set = function(self,
|
|
21
|
-
self:setNumberLevelField("Idef",
|
|
20
|
+
set = function(self, armorBonus)
|
|
21
|
+
self:setNumberLevelField("Idef", armorBonus)
|
|
22
22
|
end
|
|
23
23
|
},
|
|
24
24
|
true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import { AbilityType } from "../ability-type";
|
|
3
|
+
import { ObjectDataEntryLevelFieldValueSupplier } from "../../entry";
|
|
4
|
+
import { StandardAbilityTypeId } from "../../../standard/entries/ability-type";
|
|
5
|
+
export declare class AuraOfBlightAbilityType extends AbilityType {
|
|
6
|
+
static readonly BASE_ID = StandardAbilityTypeId.AURA_OF_BLIGHT;
|
|
7
|
+
/** Amount of Hit Points Regenerated */
|
|
8
|
+
get healthRegeneration(): number[];
|
|
9
|
+
set healthRegeneration(healthRegeneration: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
10
|
+
/** Percentage */
|
|
11
|
+
get isHealthRegenerationPercentage(): boolean[];
|
|
12
|
+
set isHealthRegenerationPercentage(isHealthRegenerationPercentage: ObjectDataEntryLevelFieldValueSupplier<boolean>);
|
|
13
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
+
local __TS__SetDescriptor = ____lualib.__TS__SetDescriptor
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local ____ability_2Dtype = require("engine.object-data.entry.ability-type")
|
|
7
|
+
local AbilityType = ____ability_2Dtype.AbilityType
|
|
8
|
+
____exports.AuraOfBlightAbilityType = __TS__Class()
|
|
9
|
+
local AuraOfBlightAbilityType = ____exports.AuraOfBlightAbilityType
|
|
10
|
+
AuraOfBlightAbilityType.name = "AuraOfBlightAbilityType"
|
|
11
|
+
__TS__ClassExtends(AuraOfBlightAbilityType, AbilityType)
|
|
12
|
+
AuraOfBlightAbilityType.BASE_ID = 1096901234
|
|
13
|
+
__TS__SetDescriptor(
|
|
14
|
+
AuraOfBlightAbilityType.prototype,
|
|
15
|
+
"healthRegeneration",
|
|
16
|
+
{
|
|
17
|
+
get = function(self)
|
|
18
|
+
return self:getNumberLevelField("Oar1")
|
|
19
|
+
end,
|
|
20
|
+
set = function(self, healthRegeneration)
|
|
21
|
+
self:setNumberLevelField("Oar1", healthRegeneration)
|
|
22
|
+
end
|
|
23
|
+
},
|
|
24
|
+
true
|
|
25
|
+
)
|
|
26
|
+
__TS__SetDescriptor(
|
|
27
|
+
AuraOfBlightAbilityType.prototype,
|
|
28
|
+
"isHealthRegenerationPercentage",
|
|
29
|
+
{
|
|
30
|
+
get = function(self)
|
|
31
|
+
return self:getBooleanLevelField("Oar2")
|
|
32
|
+
end,
|
|
33
|
+
set = function(self, isHealthRegenerationPercentage)
|
|
34
|
+
self:setBooleanLevelField("Oar2", isHealthRegenerationPercentage)
|
|
35
|
+
end
|
|
36
|
+
},
|
|
37
|
+
true
|
|
38
|
+
)
|
|
39
|
+
return ____exports
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local ____ability_2Dtype = require("engine.object-data.entry.ability-type")
|
|
6
|
+
local AbilityType = ____ability_2Dtype.AbilityType
|
|
7
|
+
--- Banshee (Abns). Has no data fields of its own.
|
|
8
|
+
____exports.BansheeAbilityType = __TS__Class()
|
|
9
|
+
local BansheeAbilityType = ____exports.BansheeAbilityType
|
|
10
|
+
BansheeAbilityType.name = "BansheeAbilityType"
|
|
11
|
+
__TS__ClassExtends(BansheeAbilityType, AbilityType)
|
|
12
|
+
BansheeAbilityType.BASE_ID = fourCC("Abns")
|
|
13
|
+
return ____exports
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import { AbilityType, AbilityTypeId } from "../ability-type";
|
|
3
|
+
import { ObjectDataEntryLevelFieldValueSupplier } from "../../entry";
|
|
4
|
+
/**
|
|
5
|
+
* Ability damage amplification applied by Banshee's Wail (Amda).
|
|
6
|
+
*/
|
|
7
|
+
export declare class BansheesWailDamageAmpAbilityType extends AbilityType {
|
|
8
|
+
static readonly BASE_ID: AbilityTypeId;
|
|
9
|
+
/** Bonus Magic Damage Factor */
|
|
10
|
+
get bonusMagicDamageFactor(): number[];
|
|
11
|
+
set bonusMagicDamageFactor(bonusMagicDamageFactor: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
12
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
+
local __TS__SetDescriptor = ____lualib.__TS__SetDescriptor
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local ____ability_2Dtype = require("engine.object-data.entry.ability-type")
|
|
7
|
+
local AbilityType = ____ability_2Dtype.AbilityType
|
|
8
|
+
--- Ability damage amplification applied by Banshee's Wail (Amda).
|
|
9
|
+
____exports.BansheesWailDamageAmpAbilityType = __TS__Class()
|
|
10
|
+
local BansheesWailDamageAmpAbilityType = ____exports.BansheesWailDamageAmpAbilityType
|
|
11
|
+
BansheesWailDamageAmpAbilityType.name = "BansheesWailDamageAmpAbilityType"
|
|
12
|
+
__TS__ClassExtends(BansheesWailDamageAmpAbilityType, AbilityType)
|
|
13
|
+
BansheesWailDamageAmpAbilityType.BASE_ID = fourCC("Amda")
|
|
14
|
+
__TS__SetDescriptor(
|
|
15
|
+
BansheesWailDamageAmpAbilityType.prototype,
|
|
16
|
+
"bonusMagicDamageFactor",
|
|
17
|
+
{
|
|
18
|
+
get = function(self)
|
|
19
|
+
return self:getNumberLevelField("mda1")
|
|
20
|
+
end,
|
|
21
|
+
set = function(self, bonusMagicDamageFactor)
|
|
22
|
+
self:setNumberLevelField("mda1", bonusMagicDamageFactor)
|
|
23
|
+
end
|
|
24
|
+
},
|
|
25
|
+
true
|
|
26
|
+
)
|
|
27
|
+
return ____exports
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import { AbilityType, AbilityTypeId } from "../ability-type";
|
|
3
|
+
import { UnitTypeId } from "../unit-type";
|
|
4
|
+
import { ObjectDataEntryLevelFieldValueSupplier } from "../../entry";
|
|
5
|
+
export declare class BansheesWailAbilityType extends AbilityType {
|
|
6
|
+
static readonly BASE_ID: AbilityTypeId;
|
|
7
|
+
/** Number of Swarm Units */
|
|
8
|
+
get swarmUnitCount(): number[];
|
|
9
|
+
set swarmUnitCount(swarmUnitCount: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
10
|
+
/** Unit Release Interval (seconds) */
|
|
11
|
+
get unitReleaseInterval(): number[];
|
|
12
|
+
set unitReleaseInterval(unitReleaseInterval: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
13
|
+
/** Max Swarm Units Per Target */
|
|
14
|
+
get maximumSwarmUnitsPerTarget(): number[];
|
|
15
|
+
set maximumSwarmUnitsPerTarget(maximumSwarmUnitsPerTarget: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
16
|
+
/** Damage Return Factor */
|
|
17
|
+
get damageReturnFactor(): number[];
|
|
18
|
+
set damageReturnFactor(damageReturnFactor: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
19
|
+
/** Damage Return Threshold */
|
|
20
|
+
get damageReturnThreshold(): number[];
|
|
21
|
+
set damageReturnThreshold(damageReturnThreshold: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
22
|
+
/** Flat Mana Gain */
|
|
23
|
+
get flatManaGain(): number[];
|
|
24
|
+
set flatManaGain(flatManaGain: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
25
|
+
/** Healing Radius */
|
|
26
|
+
get healingRadius(): number[];
|
|
27
|
+
set healingRadius(healingRadius: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
28
|
+
/** Swarm Unit Type */
|
|
29
|
+
get swarmUnitTypeId(): UnitTypeId[];
|
|
30
|
+
set swarmUnitTypeId(swarmUnitTypeId: ObjectDataEntryLevelFieldValueSupplier<UnitTypeId>);
|
|
31
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
+
local __TS__SetDescriptor = ____lualib.__TS__SetDescriptor
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local ____ability_2Dtype = require("engine.object-data.entry.ability-type")
|
|
7
|
+
local AbilityType = ____ability_2Dtype.AbilityType
|
|
8
|
+
____exports.BansheesWailAbilityType = __TS__Class()
|
|
9
|
+
local BansheesWailAbilityType = ____exports.BansheesWailAbilityType
|
|
10
|
+
BansheesWailAbilityType.name = "BansheesWailAbilityType"
|
|
11
|
+
__TS__ClassExtends(BansheesWailAbilityType, AbilityType)
|
|
12
|
+
BansheesWailAbilityType.BASE_ID = fourCC("AUwc")
|
|
13
|
+
__TS__SetDescriptor(
|
|
14
|
+
BansheesWailAbilityType.prototype,
|
|
15
|
+
"swarmUnitCount",
|
|
16
|
+
{
|
|
17
|
+
get = function(self)
|
|
18
|
+
return self:getNumberLevelField("Uls1")
|
|
19
|
+
end,
|
|
20
|
+
set = function(self, swarmUnitCount)
|
|
21
|
+
self:setNumberLevelField("Uls1", swarmUnitCount)
|
|
22
|
+
end
|
|
23
|
+
},
|
|
24
|
+
true
|
|
25
|
+
)
|
|
26
|
+
__TS__SetDescriptor(
|
|
27
|
+
BansheesWailAbilityType.prototype,
|
|
28
|
+
"unitReleaseInterval",
|
|
29
|
+
{
|
|
30
|
+
get = function(self)
|
|
31
|
+
return self:getNumberLevelField("Uls2")
|
|
32
|
+
end,
|
|
33
|
+
set = function(self, unitReleaseInterval)
|
|
34
|
+
self:setNumberLevelField("Uls2", unitReleaseInterval)
|
|
35
|
+
end
|
|
36
|
+
},
|
|
37
|
+
true
|
|
38
|
+
)
|
|
39
|
+
__TS__SetDescriptor(
|
|
40
|
+
BansheesWailAbilityType.prototype,
|
|
41
|
+
"maximumSwarmUnitsPerTarget",
|
|
42
|
+
{
|
|
43
|
+
get = function(self)
|
|
44
|
+
return self:getNumberLevelField("Uls3")
|
|
45
|
+
end,
|
|
46
|
+
set = function(self, maximumSwarmUnitsPerTarget)
|
|
47
|
+
self:setNumberLevelField("Uls3", maximumSwarmUnitsPerTarget)
|
|
48
|
+
end
|
|
49
|
+
},
|
|
50
|
+
true
|
|
51
|
+
)
|
|
52
|
+
__TS__SetDescriptor(
|
|
53
|
+
BansheesWailAbilityType.prototype,
|
|
54
|
+
"damageReturnFactor",
|
|
55
|
+
{
|
|
56
|
+
get = function(self)
|
|
57
|
+
return self:getNumberLevelField("Uls4")
|
|
58
|
+
end,
|
|
59
|
+
set = function(self, damageReturnFactor)
|
|
60
|
+
self:setNumberLevelField("Uls4", damageReturnFactor)
|
|
61
|
+
end
|
|
62
|
+
},
|
|
63
|
+
true
|
|
64
|
+
)
|
|
65
|
+
__TS__SetDescriptor(
|
|
66
|
+
BansheesWailAbilityType.prototype,
|
|
67
|
+
"damageReturnThreshold",
|
|
68
|
+
{
|
|
69
|
+
get = function(self)
|
|
70
|
+
return self:getNumberLevelField("Uls5")
|
|
71
|
+
end,
|
|
72
|
+
set = function(self, damageReturnThreshold)
|
|
73
|
+
self:setNumberLevelField("Uls5", damageReturnThreshold)
|
|
74
|
+
end
|
|
75
|
+
},
|
|
76
|
+
true
|
|
77
|
+
)
|
|
78
|
+
__TS__SetDescriptor(
|
|
79
|
+
BansheesWailAbilityType.prototype,
|
|
80
|
+
"flatManaGain",
|
|
81
|
+
{
|
|
82
|
+
get = function(self)
|
|
83
|
+
return self:getNumberLevelField("bns6")
|
|
84
|
+
end,
|
|
85
|
+
set = function(self, flatManaGain)
|
|
86
|
+
self:setNumberLevelField("bns6", flatManaGain)
|
|
87
|
+
end
|
|
88
|
+
},
|
|
89
|
+
true
|
|
90
|
+
)
|
|
91
|
+
__TS__SetDescriptor(
|
|
92
|
+
BansheesWailAbilityType.prototype,
|
|
93
|
+
"healingRadius",
|
|
94
|
+
{
|
|
95
|
+
get = function(self)
|
|
96
|
+
return self:getNumberLevelField("bns7")
|
|
97
|
+
end,
|
|
98
|
+
set = function(self, healingRadius)
|
|
99
|
+
self:setNumberLevelField("bns7", healingRadius)
|
|
100
|
+
end
|
|
101
|
+
},
|
|
102
|
+
true
|
|
103
|
+
)
|
|
104
|
+
__TS__SetDescriptor(
|
|
105
|
+
BansheesWailAbilityType.prototype,
|
|
106
|
+
"swarmUnitTypeId",
|
|
107
|
+
{
|
|
108
|
+
get = function(self)
|
|
109
|
+
return self:getObjectDataEntryNumericIdLevelField("Ulsu")
|
|
110
|
+
end,
|
|
111
|
+
set = function(self, swarmUnitTypeId)
|
|
112
|
+
self:setObjectDataEntryNumericIdLevelField("Ulsu", swarmUnitTypeId)
|
|
113
|
+
end
|
|
114
|
+
},
|
|
115
|
+
true
|
|
116
|
+
)
|
|
117
|
+
return ____exports
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import { AbilityType, AbilityTypeId } from "../ability-type";
|
|
3
|
+
import { ObjectDataEntryLevelFieldValueSupplier } from "../../entry";
|
|
4
|
+
export declare class BatteringRamAbilityType extends AbilityType {
|
|
5
|
+
static readonly BASE_ID: AbilityTypeId;
|
|
6
|
+
/** Target Intersect Radius */
|
|
7
|
+
get targetIntersectRadius(): number[];
|
|
8
|
+
set targetIntersectRadius(targetIntersectRadius: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
9
|
+
/** Dash Speed */
|
|
10
|
+
get dashSpeed(): number[];
|
|
11
|
+
set dashSpeed(dashSpeed: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
12
|
+
/** Dash Damage */
|
|
13
|
+
get dashDamage(): number[];
|
|
14
|
+
set dashDamage(dashDamage: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
15
|
+
/** Bonus Critical Strike */
|
|
16
|
+
get bonusCriticalStrike(): number[];
|
|
17
|
+
set bonusCriticalStrike(bonusCriticalStrike: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
18
|
+
/** Remove Buffs On Ability Start */
|
|
19
|
+
get removesBuffsOnStart(): boolean[];
|
|
20
|
+
set removesBuffsOnStart(removesBuffsOnStart: ObjectDataEntryLevelFieldValueSupplier<boolean>);
|
|
21
|
+
/** Bonus Damage */
|
|
22
|
+
get bonusDamage(): number[];
|
|
23
|
+
set bonusDamage(bonusDamage: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
24
|
+
/** Bonus Damage Duration */
|
|
25
|
+
get bonusDamageDuration(): number[];
|
|
26
|
+
set bonusDamageDuration(bonusDamageDuration: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
27
|
+
/** Max Charges */
|
|
28
|
+
get maximumCharges(): number[];
|
|
29
|
+
set maximumCharges(maximumCharges: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
30
|
+
/** Charges Regen Time */
|
|
31
|
+
get chargeRegenerationTime(): number[];
|
|
32
|
+
set chargeRegenerationTime(chargeRegenerationTime: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
33
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
+
local __TS__SetDescriptor = ____lualib.__TS__SetDescriptor
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local ____ability_2Dtype = require("engine.object-data.entry.ability-type")
|
|
7
|
+
local AbilityType = ____ability_2Dtype.AbilityType
|
|
8
|
+
____exports.BatteringRamAbilityType = __TS__Class()
|
|
9
|
+
local BatteringRamAbilityType = ____exports.BatteringRamAbilityType
|
|
10
|
+
BatteringRamAbilityType.name = "BatteringRamAbilityType"
|
|
11
|
+
__TS__ClassExtends(BatteringRamAbilityType, AbilityType)
|
|
12
|
+
BatteringRamAbilityType.BASE_ID = fourCC("AUbr")
|
|
13
|
+
__TS__SetDescriptor(
|
|
14
|
+
BatteringRamAbilityType.prototype,
|
|
15
|
+
"targetIntersectRadius",
|
|
16
|
+
{
|
|
17
|
+
get = function(self)
|
|
18
|
+
return self:getNumberLevelField("chra")
|
|
19
|
+
end,
|
|
20
|
+
set = function(self, targetIntersectRadius)
|
|
21
|
+
self:setNumberLevelField("chra", targetIntersectRadius)
|
|
22
|
+
end
|
|
23
|
+
},
|
|
24
|
+
true
|
|
25
|
+
)
|
|
26
|
+
__TS__SetDescriptor(
|
|
27
|
+
BatteringRamAbilityType.prototype,
|
|
28
|
+
"dashSpeed",
|
|
29
|
+
{
|
|
30
|
+
get = function(self)
|
|
31
|
+
return self:getNumberLevelField("chr1")
|
|
32
|
+
end,
|
|
33
|
+
set = function(self, dashSpeed)
|
|
34
|
+
self:setNumberLevelField("chr1", dashSpeed)
|
|
35
|
+
end
|
|
36
|
+
},
|
|
37
|
+
true
|
|
38
|
+
)
|
|
39
|
+
__TS__SetDescriptor(
|
|
40
|
+
BatteringRamAbilityType.prototype,
|
|
41
|
+
"dashDamage",
|
|
42
|
+
{
|
|
43
|
+
get = function(self)
|
|
44
|
+
return self:getNumberLevelField("chr2")
|
|
45
|
+
end,
|
|
46
|
+
set = function(self, dashDamage)
|
|
47
|
+
self:setNumberLevelField("chr2", dashDamage)
|
|
48
|
+
end
|
|
49
|
+
},
|
|
50
|
+
true
|
|
51
|
+
)
|
|
52
|
+
__TS__SetDescriptor(
|
|
53
|
+
BatteringRamAbilityType.prototype,
|
|
54
|
+
"bonusCriticalStrike",
|
|
55
|
+
{
|
|
56
|
+
get = function(self)
|
|
57
|
+
return self:getNumberLevelField("chr3")
|
|
58
|
+
end,
|
|
59
|
+
set = function(self, bonusCriticalStrike)
|
|
60
|
+
self:setNumberLevelField("chr3", bonusCriticalStrike)
|
|
61
|
+
end
|
|
62
|
+
},
|
|
63
|
+
true
|
|
64
|
+
)
|
|
65
|
+
__TS__SetDescriptor(
|
|
66
|
+
BatteringRamAbilityType.prototype,
|
|
67
|
+
"removesBuffsOnStart",
|
|
68
|
+
{
|
|
69
|
+
get = function(self)
|
|
70
|
+
return self:getBooleanLevelField("chr6")
|
|
71
|
+
end,
|
|
72
|
+
set = function(self, removesBuffsOnStart)
|
|
73
|
+
self:setBooleanLevelField("chr6", removesBuffsOnStart)
|
|
74
|
+
end
|
|
75
|
+
},
|
|
76
|
+
true
|
|
77
|
+
)
|
|
78
|
+
__TS__SetDescriptor(
|
|
79
|
+
BatteringRamAbilityType.prototype,
|
|
80
|
+
"bonusDamage",
|
|
81
|
+
{
|
|
82
|
+
get = function(self)
|
|
83
|
+
return self:getNumberLevelField("ubr1")
|
|
84
|
+
end,
|
|
85
|
+
set = function(self, bonusDamage)
|
|
86
|
+
self:setNumberLevelField("ubr1", bonusDamage)
|
|
87
|
+
end
|
|
88
|
+
},
|
|
89
|
+
true
|
|
90
|
+
)
|
|
91
|
+
__TS__SetDescriptor(
|
|
92
|
+
BatteringRamAbilityType.prototype,
|
|
93
|
+
"bonusDamageDuration",
|
|
94
|
+
{
|
|
95
|
+
get = function(self)
|
|
96
|
+
return self:getNumberLevelField("ubr2")
|
|
97
|
+
end,
|
|
98
|
+
set = function(self, bonusDamageDuration)
|
|
99
|
+
self:setNumberLevelField("ubr2", bonusDamageDuration)
|
|
100
|
+
end
|
|
101
|
+
},
|
|
102
|
+
true
|
|
103
|
+
)
|
|
104
|
+
__TS__SetDescriptor(
|
|
105
|
+
BatteringRamAbilityType.prototype,
|
|
106
|
+
"maximumCharges",
|
|
107
|
+
{
|
|
108
|
+
get = function(self)
|
|
109
|
+
return self:getNumberLevelField("ubr3")
|
|
110
|
+
end,
|
|
111
|
+
set = function(self, maximumCharges)
|
|
112
|
+
self:setNumberLevelField("ubr3", maximumCharges)
|
|
113
|
+
end
|
|
114
|
+
},
|
|
115
|
+
true
|
|
116
|
+
)
|
|
117
|
+
__TS__SetDescriptor(
|
|
118
|
+
BatteringRamAbilityType.prototype,
|
|
119
|
+
"chargeRegenerationTime",
|
|
120
|
+
{
|
|
121
|
+
get = function(self)
|
|
122
|
+
return self:getNumberLevelField("ubr4")
|
|
123
|
+
end,
|
|
124
|
+
set = function(self, chargeRegenerationTime)
|
|
125
|
+
self:setNumberLevelField("ubr4", chargeRegenerationTime)
|
|
126
|
+
end
|
|
127
|
+
},
|
|
128
|
+
true
|
|
129
|
+
)
|
|
130
|
+
return ____exports
|
|
@@ -37,7 +37,7 @@ function BlankConfigurableAbilityType.prototype.____constructor(self, object)
|
|
|
37
37
|
self._isChanneling = false
|
|
38
38
|
self.buttonPositionX = 0
|
|
39
39
|
self.buttonPositionY = 0
|
|
40
|
-
self.
|
|
40
|
+
self.casterEffectPresets = {}
|
|
41
41
|
self.effectModelPaths = {}
|
|
42
42
|
self.targetEffectPresets = {}
|
|
43
43
|
self.levelCount = 1
|
|
@@ -46,7 +46,7 @@ function BlankConfigurableAbilityType.prototype.____constructor(self, object)
|
|
|
46
46
|
self.isPhysical = false
|
|
47
47
|
self.isUniversal = false
|
|
48
48
|
self.isUniqueCast = true
|
|
49
|
-
self.
|
|
49
|
+
self.casterEffectPresetsDuration = 0
|
|
50
50
|
self.disablesOtherAbilities = false
|
|
51
51
|
self:setAutoOrderTypeStringIds()
|
|
52
52
|
usesAttackAnimationByAbilityTypeId[self.id] = false
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import { ExhumeCorpsesAbilityType } from "./exhume-corpses";
|
|
3
|
+
import { ObjectDataEntryLevelFieldValueSupplier } from "../../entry";
|
|
4
|
+
/**
|
|
5
|
+
* A passive ability whose cooldown can be started (`Ability.startCooldown`): Exhume
|
|
6
|
+
* Corpses (`Aexh`) is the only passive base ability that shows a cooldown.
|
|
7
|
+
*
|
|
8
|
+
* The corpse fields of the underlying Exhume Corpses are fixed at zero and its native
|
|
9
|
+
* durations at a practically infinite value. {@link buffDuration} and
|
|
10
|
+
* {@link heroBuffDuration} are kept for scripts separately from the native fields.
|
|
11
|
+
*
|
|
12
|
+
* The game ignores per-ability extended tooltips of this base ability, so the type's own
|
|
13
|
+
* tooltip is replaced locally with the one of the locally main selected unit's ability.
|
|
14
|
+
* Read the type's tooltip with `getAbilityTypeExtendedTooltip`, not with the native.
|
|
15
|
+
*/
|
|
16
|
+
export declare class BlankPassiveAbilityWithCooldownAbilityType extends ExhumeCorpsesAbilityType {
|
|
17
|
+
static readonly IS_SYNTHETIC = true;
|
|
18
|
+
constructor(object: WarObject);
|
|
19
|
+
get buffDuration(): number[];
|
|
20
|
+
set buffDuration(buffDuration: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
21
|
+
get heroBuffDuration(): number[];
|
|
22
|
+
set heroBuffDuration(heroBuffDuration: ObjectDataEntryLevelFieldValueSupplier<number>);
|
|
23
|
+
}
|