Skip to content

Commit fc09363

Browse files
committed
@moddota/dota-data 0.47.2
1 parent d13f056 commit fc09363

7 files changed

Lines changed: 192 additions & 140 deletions

File tree

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"devDependencies": {
3737
"@ark120202/eslint-config": "^2.5.0",
38-
"@moddota/dota-data": "^0.47.1",
38+
"@moddota/dota-data": "^0.47.2",
3939
"@types/fs-extra": "^9.0.4",
4040
"@types/lodash": "^4.14.165",
4141
"@types/node": "^20.14.8",

packages/dota-lua-types/types/api.generated.d.ts

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,6 +1516,12 @@ declare interface CDOTA_Ability_Lua extends CDOTABaseAbility {
15161516
*/
15171517
OnUpgrade(): void;
15181518
OtherAbilitiesAlwaysInterruptChanneling(): boolean;
1519+
/**
1520+
* Return if an ability and its modifiers should pierce debuff immunity.
1521+
*
1522+
* @both
1523+
*/
1524+
PiercesDebuffImmunity(): boolean;
15191525
/**
15201526
* Returns true if this ability will generate magic stick charges for nearby
15211527
* enemies.
@@ -3784,9 +3790,10 @@ declare interface CDOTA_Item_Lua extends CDOTA_Item {
37843790
*/
37853791
OnChannelThink(interval: number): void;
37863792
/**
3787-
* Runs when item's charge count changes.
3793+
* Runs when item's charge count changes. bSpent is true when the charge count
3794+
* change is coming from SpendCharge.
37883795
*/
3789-
OnChargeCountChanged(): void;
3796+
OnChargeCountChanged(spent: boolean): void;
37903797
/**
37913798
* Caster (hero only) gained a level, skilled an ability, or received a new stat
37923799
* bonus.
@@ -4126,6 +4133,13 @@ declare interface CDOTA_Modifier_Lua extends CDOTA_Buff {
41264133
* @both
41274134
*/
41284135
OnStackCountChanged(stackCount: number): void;
4136+
/**
4137+
* Returns true or false on if the effects of this modifier should pierce debuff
4138+
* immunity. By default uses the setting from the ability.
4139+
*
4140+
* @both
4141+
*/
4142+
PiercesDebuffImmunity(): boolean;
41294143
/**
41304144
* True/false if this modifier is removed when the parent dies.
41314145
*
@@ -5069,7 +5083,7 @@ declare interface CDOTA_Modifier_Lua extends CDOTA_Buff {
50695083
* @abstract
50705084
* @both
50715085
*/
5072-
'GetModifierMoveSpeedPostMultiplierBonus_Constant '?(): void;
5086+
GetModifierMoveSpeedPostMultiplierBonus_Constant?(): void;
50735087
/**
50745088
* @abstract
50755089
* @both
@@ -5424,6 +5438,11 @@ declare interface CDOTA_Modifier_Lua extends CDOTA_Buff {
54245438
* @both
54255439
*/
54265440
GetModifierPropertyManacostOverride?(): void;
5441+
/**
5442+
* @abstract
5443+
* @both
5444+
*/
5445+
GetModifierPropertyRedirectHealthGain?(): void;
54275446
/**
54285447
* @abstract
54295448
* @both
@@ -5940,11 +5959,6 @@ declare interface CDOTA_Modifier_Lua extends CDOTA_Buff {
59405959
* @both
59415960
*/
59425961
OnKill?(event: ModifierUnitEvent): void;
5943-
/**
5944-
* @abstract
5945-
* @both
5946-
*/
5947-
OnKnockbackAttempted?(): void;
59485962
/**
59495963
* @abstract
59505964
* @both
@@ -6020,6 +6034,11 @@ declare interface CDOTA_Modifier_Lua extends CDOTA_Buff {
60206034
* @both
60216035
*/
60226036
OnPurged?(event: ModifierUnitEvent): void;
6037+
/**
6038+
* @abstract
6039+
* @both
6040+
*/
6041+
OnRedirectHealthGain?(): void;
60236042
/**
60246043
* @abstract
60256044
* @both
@@ -6616,6 +6635,10 @@ declare interface CDOTABaseAbility extends CBaseEntity {
66166635
GetAbilityTargetTeam(): DOTA_UNIT_TARGET_TEAM;
66176636
GetAbilityTargetType(): DOTA_UNIT_TARGET_TYPE;
66186637
GetAbilityType(): number;
6638+
/**
6639+
* Gets the current Alt Cast State.
6640+
*/
6641+
GetAltCastState(): boolean;
66196642
GetAnimationIgnoresModelScale(): boolean;
66206643
GetAOERadius(): number;
66216644
GetAssociatedPrimaryAbilities(): string;
@@ -6791,6 +6814,10 @@ declare interface CDOTABaseAbility extends CBaseEntity {
67916814
ResetToggleOnRespawn(): boolean;
67926815
SetAbilityIndex(index: number): void;
67936816
SetActivated(activated: boolean): void;
6817+
/**
6818+
* Set Alt Cast State to a specific value (true for on, false for off).
6819+
*/
6820+
SetAltCastState(altCastEnabled: boolean): void;
67946821
SetChanneling(channeling: boolean): void;
67956822
SetCurrentAbilityCharges(charges: number): void;
67966823
SetFrozenCooldown(frozenCooldown: boolean): void;
@@ -6805,11 +6832,20 @@ declare interface CDOTABaseAbility extends CBaseEntity {
68056832
SetStealable(stealable: boolean): void;
68066833
SetStolen(stolen: boolean): void;
68076834
SetUpgradeRecommended(upgradeRecommended: boolean): void;
6835+
/**
6836+
* This is what the Alt Cast State of the ability was when it was initially cast.
6837+
* Updated during Execute Orders.
6838+
*/
6839+
ShouldAltCast(): boolean;
68086840
ShouldUseResources(): boolean;
68096841
SpeakAbilityConcept(concept: number): void;
68106842
SpeakTrigger(): unknown;
68116843
StartCooldown(cooldown: number): void;
68126844
ToggleAbility(): void;
6845+
/**
6846+
* Toggle the Alt Cast State of an Ability.
6847+
*/
6848+
ToggleAltCast(): void;
68136849
ToggleAutoCast(): void;
68146850
UpgradeAbility(supressSpeech: boolean): void;
68156851
UseResources(mana: boolean, useHealth: boolean, gold: boolean, cooldown: boolean): void;

packages/dota-lua-types/types/enums-normalized.generated.d.ts

Lines changed: 41 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,18 +2645,18 @@ declare const enum GameActivity {
26452645
DOTA_TAUNT_STATUE = 1790,
26462646
DOTA_IDLE_STATUE = 1791,
26472647
DOTA_DISABLED_END = 1792,
2648-
DOTA_CAST_3_STATUE = 1793,
2649-
DOTA_CAST_4_STATUE = 1794,
2650-
DOTA_CAST_5_STATUE = 1795,
2651-
DOTA_RELAX_IN = 1796,
2652-
DOTA_RELAX_OUT = 1797,
2653-
DOTA_CAST_FENCE = 1798,
2654-
DOTA_RADIANT_CREEP_HAMMER = 1800,
2655-
DOTA_SPWN = 1801,
2656-
DOTA_RUN_ALT = 1805,
2657-
DOTA_VOODOO_REST = 1806,
2658-
DOTA_CYCLONE = 1807,
2659-
DOTA_IMPALE = 1808,
2648+
DOTA_VOODOO_REST = 1793,
2649+
DOTA_CYCLONE = 1794,
2650+
DOTA_IMPALE = 1795,
2651+
DOTA_TORRENT = 1796,
2652+
DOTA_RADIANT_CREEP_HAMMER = 1798,
2653+
DOTA_RELAX_IN = 1799,
2654+
DOTA_RELAX_OUT = 1800,
2655+
DOTA_CAST_FENCE = 1801,
2656+
DOTA_SPWN = 1802,
2657+
DOTA_CAST_3_STATUE = 1803,
2658+
DOTA_CAST_4_STATUE = 1804,
2659+
DOTA_CAST_5_STATUE = 1805,
26602660
}
26612661

26622662
/**
@@ -2672,7 +2672,7 @@ declare const enum LuaModifierMotionType {
26722672
INVALID = 4,
26732673
}
26742674

2675-
declare const MODIFIER_FUNCTION_LAST: 398;
2675+
declare const MODIFIER_FUNCTION_LAST: 399;
26762676

26772677
/**
26782678
* @deprecated Non-normalized enum name. Defined only for library compatibility.
@@ -3624,26 +3624,26 @@ declare const enum ModifierFunction {
36243624
* Method Name: `OnHealReceived`
36253625
*/
36263626
ON_HEAL_RECEIVED = 233,
3627+
/**
3628+
* Method Name: `OnRedirectHealthGain`
3629+
*/
3630+
ON_REDIRECT_HEALTH_GAIN = 234,
36273631
/**
36283632
* Method Name: `OnBuildingKilled`
36293633
*/
3630-
ON_BUILDING_KILLED = 234,
3634+
ON_BUILDING_KILLED = 235,
36313635
/**
36323636
* Method Name: `OnModelChanged`
36333637
*/
3634-
ON_MODEL_CHANGED = 235,
3638+
ON_MODEL_CHANGED = 236,
36353639
/**
36363640
* Method Name: `OnModifierAdded`
36373641
*/
3638-
ON_MODIFIER_ADDED = 236,
3642+
ON_MODIFIER_ADDED = 237,
36393643
/**
36403644
* Method Name: `OnModifierRemoved`
36413645
*/
3642-
ON_MODIFIER_REMOVED = 237,
3643-
/**
3644-
* Method Name: `OnKnockbackAttempted`
3645-
*/
3646-
ON_KNOCKBACK_ATTEMPTED = 238,
3646+
ON_MODIFIER_REMOVED = 238,
36473647
/**
36483648
* Method Name: `OnScepterUpgradeSelected`
36493649
*/
@@ -4209,7 +4209,7 @@ declare const enum ModifierFunction {
42094209
*/
42104210
MOVESPEED_MAX_BONUS_CONSTANT = 376,
42114211
/**
4212-
* Method Name: `GetModifierMoveSpeedPostMultiplierBonus_Constant `
4212+
* Method Name: `GetModifierMoveSpeedPostMultiplierBonus_Constant`
42134213
*/
42144214
MOVESPEED_POST_MULTIPLIER_BONUS_CONSTANT = 377,
42154215
/**
@@ -4232,66 +4232,70 @@ declare const enum ModifierFunction {
42324232
* Method Name: `GetModifierPropertyHealingAmplificationUnique`
42334233
*/
42344234
HEAL_AMPLIFY_PERCENTAGE_SOURCE_UNIQUE = 382,
4235+
/**
4236+
* Method Name: `GetModifierPropertyRedirectHealthGain`
4237+
*/
4238+
REDIRECT_HEALTH_GAIN = 383,
42354239
/**
42364240
* Method Name: `GetSuppressIncomingCrit`
42374241
*/
4238-
SUPPRESS_INCOMING_CRIT = 383,
4242+
SUPPRESS_INCOMING_CRIT = 384,
42394243
/**
42404244
* Method Name: `GetModifierPropertyUpgradeNeutralArtifacts`
42414245
*/
4242-
UPGRADE_NEUTRAL_ARTIFACTS = 384,
4246+
UPGRADE_NEUTRAL_ARTIFACTS = 385,
42434247
/**
42444248
* Method Name: `GetModifierPropertySuppressInvalidMoveAttackOrders`
42454249
*/
4246-
SUPPRESS_INVALID_MOVE_ATTACK_ORDERS = 385,
4250+
SUPPRESS_INVALID_MOVE_ATTACK_ORDERS = 386,
42474251
/**
42484252
* Method Name: `GetModifierPropertyConsumableUseSpeed`
42494253
*/
4250-
CONSUMABLE_USE_SPEED = 386,
4254+
CONSUMABLE_USE_SPEED = 387,
42514255
/**
42524256
* Method Name: `GetRequiredLevel`
42534257
*/
4254-
REQUIRED_LEVEL = 387,
4258+
REQUIRED_LEVEL = 388,
42554259
/**
42564260
* Method Name: `OnModifierRefreshed`
42574261
*/
4258-
ON_MODIFIER_REFRESHED = 388,
4262+
ON_MODIFIER_REFRESHED = 389,
42594263
/**
42604264
* Method Name: `OnAbilitySwapped`
42614265
*/
4262-
ON_ABILITY_SWAPPED = 389,
4266+
ON_ABILITY_SWAPPED = 390,
42634267
/**
42644268
* Method Name: `GetModifierOverrideCreepBounty`
42654269
*/
4266-
OVERRIDE_CREEP_BOUNTY = 390,
4270+
OVERRIDE_CREEP_BOUNTY = 391,
42674271
/**
42684272
* Method Name: `GetModifierOverrideBaseDamage`
42694273
*/
4270-
OVERRIDE_BASE_DAMAGE = 391,
4274+
OVERRIDE_BASE_DAMAGE = 392,
42714275
/**
42724276
* Method Name: `GetModifierOverrideUntargetableFrom`
42734277
*/
4274-
UNTARGETABLE_FROM = 392,
4278+
UNTARGETABLE_FROM = 393,
42754279
/**
42764280
* Method Name: `GetModifierOverrideUntargetableTo`
42774281
*/
4278-
UNTARGETABLE_TO = 393,
4282+
UNTARGETABLE_TO = 394,
42794283
/**
42804284
* Method Name: `GetModifierSuperIllusionWithItems`
42814285
*/
4282-
SUPER_ILLUSION_WITH_ITEMS = 394,
4286+
SUPER_ILLUSION_WITH_ITEMS = 395,
42834287
/**
42844288
* Method Name: `OnPurged`
42854289
*/
4286-
ON_PURGE = 395,
4290+
ON_PURGE = 396,
42874291
/**
42884292
* Method Name: `OnIllusionCreated`
42894293
*/
4290-
ON_ILLUSION_CREATED = 396,
4294+
ON_ILLUSION_CREATED = 397,
42914295
/**
42924296
* Method Name: `GetModifierHeroLevelScale`
42934297
*/
4294-
HEROLEVELSCALE = 397,
4298+
HEROLEVELSCALE = 398,
42954299
INVALID = 65535,
42964300
}
42974301

0 commit comments

Comments
 (0)