From 3aca1fa46c4e885564f2af5e86de024af24a4add Mon Sep 17 00:00:00 2001 From: Perryvw Date: Thu, 10 Aug 2023 21:14:41 +0200 Subject: [PATCH 1/3] Dump --- dumper/dump | 200 +++++++++++++++++++++++++++++++------- files/engine-enums.json | 16 ++- files/panorama/enums.json | 41 +++++++- files/vscripts/api.json | 67 +++++++++++++ files/vscripts/enums.json | 67 ++++++++++--- 5 files changed, 336 insertions(+), 55 deletions(-) diff --git a/dumper/dump b/dumper/dump index 8c04740..cc391e1 100644 --- a/dumper/dump +++ b/dumper/dump @@ -1,13 +1,13 @@ -ClientVersion=5770 -ServerVersion=5770 +ClientVersion=5782 +ServerVersion=5782 ProductName=dota2_workshop appID=570 ServerAppID=373310 CustomGameServerAppID=471280 ToolsAppID=316570 -SourceRevision=8235949 -VersionDate=Aug 02 2023 -VersionTime=16:40:20 +SourceRevision=8254881 +VersionDate=Aug 09 2023 +VersionTime=18:24:47 $> dump_panorama_css_properties === align === <Needs a description> @@ -1101,6 +1101,7 @@ declare enum dotaunitorder_t DOTA_UNIT_ORDER_DROP_ITEM_AT_FOUNTAIN = 37, DOTA_UNIT_ORDER_TAKE_ITEM_FROM_NEUTRAL_ITEM_STASH = 38, DOTA_UNIT_ORDER_MOVE_RELATIVE = 39, + DOTA_UNIT_ORDER_CAST_TOGGLE_ALT = 40, } declare enum DOTA_OVERHEAD_ALERT @@ -1420,6 +1421,7 @@ declare enum DOTA_ABILITY_BEHAVIOR DOTA_ABILITY_BEHAVIOR_IGNORE_SILENCE = 137438953472, DOTA_ABILITY_BEHAVIOR_OVERSHOOT = 274877906944, DOTA_ABILITY_BEHAVIOR_IGNORE_MUTED = 549755813888, + DOTA_ABILITY_BEHAVIOR_ALT_CASTABLE = 1099511627776, } declare enum DAMAGE_TYPES @@ -2425,7 +2427,17 @@ declare enum modifierfunction MODIFIER_PROPERTY_AVOID_DAMAGE_AFTER_REDUCTIONS = 271, /** GetModifierDamageOutgoing_PercentageMultiplicative */ MODIFIER_PROPERTY_DAMAGEOUTGOING_PERCENTAGE_MULTIPLICATIVE = 272, - MODIFIER_FUNCTION_LAST = 273, + /** GetModifierSlowResistance */ + MODIFIER_PROPERTY_SLOW_RESISTANCE = 273, + /** GetModifierAoEBonusPercentage */ + MODIFIER_PROPERTY_AOE_BONUS_PERCENTAGE = 274, + /** GetModifierProjectileSpeed */ + MODIFIER_PROPERTY_PROJECTILE_SPEED = 275, + /** GetModifierBecomeUniversal */ + MODIFIER_PROPERTY_BECOME_UNIVERSAL = 276, + /** OnForceProcMagicStick */ + MODIFIER_EVENT_ON_FORCE_PROC_MAGIC_STICK = 277, + MODIFIER_FUNCTION_LAST = 278, MODIFIER_FUNCTION_INVALID = 65535, } @@ -2490,7 +2502,8 @@ declare enum modifierstate MODIFIER_STATE_DEBUFF_IMMUNE = 56, MODIFIER_STATE_NO_INVISIBILITY_VISUALS = 57, MODIFIER_STATE_ALLOW_PATHING_THROUGH_BASE_BLOCKER = 58, - MODIFIER_STATE_LAST = 59, + MODIFIER_STATE_IGNORING_MOVE_ORDERS = 59, + MODIFIER_STATE_LAST = 60, } declare enum DOTAModifierAttribute_t @@ -11231,6 +11244,11 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "kind":"constant", "name":"DMG_VEHICLE", "value":16 + },{ + "enum":"DOTA_ABILITY_BEHAVIOR", + "kind":"constant", + "name":"DOTA_ABILITY_BEHAVIOR_ALT_CASTABLE", + "value":0 },{ "enum":"DOTA_ABILITY_BEHAVIOR", "kind":"constant", @@ -12576,6 +12594,11 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "kind":"constant", "name":"DOTA_HUD_VISIBILITY_TOP_TIMEOFDAY", "value":0 + },{ + "enum":"DOTA_INVALID_ORDERS", + "kind":"constant", + "name":"DOTA_INVALID_ORDER_ABILITY_CANT_ALT_CAST", + "value":118 },{ "enum":"DOTA_INVALID_ORDERS", "kind":"constant", @@ -12885,7 +12908,7 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "enum":"DOTA_INVALID_ORDERS", "kind":"constant", "name":"DOTA_INVALID_ORDER_COUNT", - "value":118 + "value":119 },{ "enum":"DOTA_INVALID_ORDERS", "kind":"constant", @@ -14256,11 +14279,6 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "kind":"constant", "name":"DOTA_PSEUDO_RANDOM_AXE_HELIX_ATTACK", "value":9 - },{ - "enum":"DotaPseudoRandomType", - "kind":"constant", - "name":"DOTA_PSEUDO_RANDOM_BATRIDER_NAPALM", - "value":75 },{ "enum":"DotaPseudoRandomType", "kind":"constant", @@ -14651,6 +14669,11 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "kind":"constant", "name":"DOTA_PSEUDO_RANDOM_TROLL_BASH", "value":58 + },{ + "enum":"DotaPseudoRandomType", + "kind":"constant", + "name":"DOTA_PSEUDO_RANDOM_TROLL_FERVOR_SHARD", + "value":75 },{ "enum":"DotaPseudoRandomType", "kind":"constant", @@ -15029,6 +15052,10 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "kind":"constant", "name":"DOTA_UNIT_ORDER_CAST_TOGGLE", "value":9 + },{ + "kind":"constant", + "name":"DOTA_UNIT_ORDER_CAST_TOGGLE_ALT", + "value":40 },{ "kind":"constant", "name":"DOTA_UNIT_ORDER_CAST_TOGGLE_AUTO", @@ -15660,6 +15687,12 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "kind":"constant", "name":"MODIFIER_EVENT_ON_DOMINATED", "value":237 + },{ + "description":"OnForceProcMagicStick", + "enum":"modifierfunction", + "kind":"constant", + "name":"MODIFIER_EVENT_ON_FORCE_PROC_MAGIC_STICK", + "value":277 },{ "description":"OnHealthGained", "enum":"modifierfunction", @@ -15837,7 +15870,7 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "enum":"modifierfunction", "kind":"constant", "name":"MODIFIER_FUNCTION_LAST", - "value":273 + "value":278 },{ "enum":"modifierpriority", "kind":"constant", @@ -15911,6 +15944,12 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "kind":"constant", "name":"MODIFIER_PROPERTY_ALWAYS_ETHEREAL_ATTACK", "value":165 + },{ + "description":"GetModifierAoEBonusPercentage", + "enum":"modifierfunction", + "kind":"constant", + "name":"MODIFIER_PROPERTY_AOE_BONUS_PERCENTAGE", + "value":274 },{ "description":"GetModifierAttackSpeedBaseOverride", "enum":"modifierfunction", @@ -16036,6 +16075,12 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "kind":"constant", "name":"MODIFIER_PROPERTY_BASE_MANA_REGEN", "value":84 + },{ + "description":"GetModifierBecomeUniversal", + "enum":"modifierfunction", + "kind":"constant", + "name":"MODIFIER_PROPERTY_BECOME_UNIVERSAL", + "value":276 },{ "description":"GetModifierBonusDamageOutgoing_Percentage", "enum":"modifierfunction", @@ -16911,6 +16956,12 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "kind":"constant", "name":"MODIFIER_PROPERTY_PROJECTILE_NAME", "value":116 + },{ + "description":"GetModifierProjectileSpeed", + "enum":"modifierfunction", + "kind":"constant", + "name":"MODIFIER_PROPERTY_PROJECTILE_SPEED", + "value":275 },{ "description":"GetModifierProjectileSpeedBonus", "enum":"modifierfunction", @@ -16971,6 +17022,12 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "kind":"constant", "name":"MODIFIER_PROPERTY_RESPAWNTIME_STACKING", "value":120 + },{ + "description":"GetModifierSlowResistance", + "enum":"modifierfunction", + "kind":"constant", + "name":"MODIFIER_PROPERTY_SLOW_RESISTANCE", + "value":273 },{ "description":"GetModifierSpellsRequireHP", "enum":"modifierfunction", @@ -17323,6 +17380,11 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "kind":"constant", "name":"MODIFIER_STATE_IGNORING_MOVE_AND_ATTACK_ORDERS", "value":41 + },{ + "enum":"modifierstate", + "kind":"constant", + "name":"MODIFIER_STATE_IGNORING_MOVE_ORDERS", + "value":59 },{ "enum":"modifierstate", "kind":"constant", @@ -17342,7 +17404,7 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "enum":"modifierstate", "kind":"constant", "name":"MODIFIER_STATE_LAST", - "value":59 + "value":60 },{ "enum":"modifierstate", "kind":"constant", @@ -20537,6 +20599,14 @@ LUA Memory usage warning: The VM has hit a new high usage of 16,777,216 bytes. "description":"Set a custom cooldown for team Scan ability.", "name":"SetCustomScanCooldown", "returns":"void" + },{ + "args":[{ + "name":"iMaxCharges", + "type":"int" + }], + "description":"Set a custom max charges for team Scan ability.", + "name":"SetCustomScanMaxCharges", + "returns":"void" },{ "args":[{ "name":"pszEffectName", @@ -33592,7 +33662,7 @@ Initializing script VM... },{ "kind":"constant", "name":"ACT_DOTA_CYCLONE", - "value":1788 + "value":1789 },{ "kind":"constant", "name":"ACT_DOTA_DAGON", @@ -33760,7 +33830,7 @@ Initializing script VM... },{ "kind":"constant", "name":"ACT_DOTA_IMPALE", - "value":1789 + "value":1790 },{ "kind":"constant", "name":"ACT_DOTA_INTRO", @@ -33980,7 +34050,7 @@ Initializing script VM... },{ "kind":"constant", "name":"ACT_DOTA_RADIANT_CREEP_HAMMER", - "value":1786 + "value":1782 },{ "kind":"constant", "name":"ACT_DOTA_RATTLETRAP_BATTERYASSAULT", @@ -34052,7 +34122,7 @@ Initializing script VM... },{ "kind":"constant", "name":"ACT_DOTA_RUN_ALT", - "value":1784 + "value":1787 },{ "kind":"constant", "name":"ACT_DOTA_RUN_RARE", @@ -34136,7 +34206,7 @@ Initializing script VM... },{ "kind":"constant", "name":"ACT_DOTA_SPWN", - "value":1791 + "value":1783 },{ "kind":"constant", "name":"ACT_DOTA_STARTLE", @@ -34236,7 +34306,7 @@ Initializing script VM... },{ "kind":"constant", "name":"ACT_DOTA_TORRENT", - "value":1790 + "value":1791 },{ "kind":"constant", "name":"ACT_DOTA_TRANSITION", @@ -34292,7 +34362,7 @@ Initializing script VM... },{ "kind":"constant", "name":"ACT_DOTA_VOODOO_REST", - "value":1787 + "value":1788 },{ "kind":"constant", "name":"ACT_DOTA_WAIT_IDLE", @@ -38217,6 +38287,11 @@ Initializing script VM... "kind":"constant", "name":"DMG_VEHICLE", "value":16 + },{ + "enum":"DOTA_ABILITY_BEHAVIOR", + "kind":"constant", + "name":"DOTA_ABILITY_BEHAVIOR_ALT_CASTABLE", + "value":0 },{ "enum":"DOTA_ABILITY_BEHAVIOR", "kind":"constant", @@ -38924,6 +38999,11 @@ Initializing script VM... "kind":"constant", "name":"DOTA_HERO_PICK_STATE_CUSTOMGAME_SELECT", "value":58 + },{ + "enum":"DOTA_INVALID_ORDERS", + "kind":"constant", + "name":"DOTA_INVALID_ORDER_ABILITY_CANT_ALT_CAST", + "value":118 },{ "enum":"DOTA_INVALID_ORDERS", "kind":"constant", @@ -39233,7 +39313,7 @@ Initializing script VM... "enum":"DOTA_INVALID_ORDERS", "kind":"constant", "name":"DOTA_INVALID_ORDER_COUNT", - "value":118 + "value":119 },{ "enum":"DOTA_INVALID_ORDERS", "kind":"constant", @@ -39647,11 +39727,6 @@ Initializing script VM... "kind":"constant", "name":"DOTA_PSEUDO_RANDOM_AXE_HELIX_ATTACK", "value":9 - },{ - "enum":"DotaPseudoRandomType", - "kind":"constant", - "name":"DOTA_PSEUDO_RANDOM_BATRIDER_NAPALM", - "value":75 },{ "enum":"DotaPseudoRandomType", "kind":"constant", @@ -40042,6 +40117,11 @@ Initializing script VM... "kind":"constant", "name":"DOTA_PSEUDO_RANDOM_TROLL_BASH", "value":58 + },{ + "enum":"DotaPseudoRandomType", + "kind":"constant", + "name":"DOTA_PSEUDO_RANDOM_TROLL_FERVOR_SHARD", + "value":75 },{ "enum":"DotaPseudoRandomType", "kind":"constant", @@ -40794,6 +40874,12 @@ Initializing script VM... "kind":"constant", "name":"MODIFIER_EVENT_ON_DOMINATED", "value":237 + },{ + "description":"OnForceProcMagicStick", + "enum":"modifierfunction", + "kind":"constant", + "name":"MODIFIER_EVENT_ON_FORCE_PROC_MAGIC_STICK", + "value":277 },{ "description":"OnHealthGained", "enum":"modifierfunction", @@ -40971,7 +41057,7 @@ Initializing script VM... "enum":"modifierfunction", "kind":"constant", "name":"MODIFIER_FUNCTION_LAST", - "value":273 + "value":278 },{ "enum":"modifierpriority", "kind":"constant", @@ -41045,6 +41131,12 @@ Initializing script VM... "kind":"constant", "name":"MODIFIER_PROPERTY_ALWAYS_ETHEREAL_ATTACK", "value":165 + },{ + "description":"GetModifierAoEBonusPercentage", + "enum":"modifierfunction", + "kind":"constant", + "name":"MODIFIER_PROPERTY_AOE_BONUS_PERCENTAGE", + "value":274 },{ "description":"GetModifierAttackSpeedBaseOverride", "enum":"modifierfunction", @@ -41170,6 +41262,12 @@ Initializing script VM... "kind":"constant", "name":"MODIFIER_PROPERTY_BASE_MANA_REGEN", "value":84 + },{ + "description":"GetModifierBecomeUniversal", + "enum":"modifierfunction", + "kind":"constant", + "name":"MODIFIER_PROPERTY_BECOME_UNIVERSAL", + "value":276 },{ "description":"GetModifierBonusDamageOutgoing_Percentage", "enum":"modifierfunction", @@ -42045,6 +42143,12 @@ Initializing script VM... "kind":"constant", "name":"MODIFIER_PROPERTY_PROJECTILE_NAME", "value":116 + },{ + "description":"GetModifierProjectileSpeed", + "enum":"modifierfunction", + "kind":"constant", + "name":"MODIFIER_PROPERTY_PROJECTILE_SPEED", + "value":275 },{ "description":"GetModifierProjectileSpeedBonus", "enum":"modifierfunction", @@ -42105,6 +42209,12 @@ Initializing script VM... "kind":"constant", "name":"MODIFIER_PROPERTY_RESPAWNTIME_STACKING", "value":120 + },{ + "description":"GetModifierSlowResistance", + "enum":"modifierfunction", + "kind":"constant", + "name":"MODIFIER_PROPERTY_SLOW_RESISTANCE", + "value":273 },{ "description":"GetModifierSpellsRequireHP", "enum":"modifierfunction", @@ -42457,6 +42567,11 @@ Initializing script VM... "kind":"constant", "name":"MODIFIER_STATE_IGNORING_MOVE_AND_ATTACK_ORDERS", "value":41 + },{ + "enum":"modifierstate", + "kind":"constant", + "name":"MODIFIER_STATE_IGNORING_MOVE_ORDERS", + "value":59 },{ "enum":"modifierstate", "kind":"constant", @@ -42476,7 +42591,7 @@ Initializing script VM... "enum":"modifierstate", "kind":"constant", "name":"MODIFIER_STATE_LAST", - "value":59 + "value":60 },{ "enum":"modifierstate", "kind":"constant", @@ -42928,19 +43043,19 @@ Initializing script VM... },{ "kind":"constant", "name":"muerta_debut_satyr_a", - "value":1781 + "value":1784 },{ "kind":"constant", "name":"muerta_debut_satyr_b", - "value":1782 + "value":1785 },{ "kind":"constant", "name":"muerta_debut_satyr_c", - "value":1783 + "value":1786 },{ "kind":"constant", "name":"radiant_melee_mars_shieldbash", - "value":1785 + "value":1781 },{ "extend":"C_BaseModelEntity", "kind":"class", @@ -47921,6 +48036,7 @@ declare enum dotaunitorder_t DOTA_UNIT_ORDER_DROP_ITEM_AT_FOUNTAIN = 37, DOTA_UNIT_ORDER_TAKE_ITEM_FROM_NEUTRAL_ITEM_STASH = 38, DOTA_UNIT_ORDER_MOVE_RELATIVE = 39, + DOTA_UNIT_ORDER_CAST_TOGGLE_ALT = 40, } declare enum DOTA_OVERHEAD_ALERT @@ -48240,6 +48356,7 @@ declare enum DOTA_ABILITY_BEHAVIOR DOTA_ABILITY_BEHAVIOR_IGNORE_SILENCE = 137438953472, DOTA_ABILITY_BEHAVIOR_OVERSHOOT = 274877906944, DOTA_ABILITY_BEHAVIOR_IGNORE_MUTED = 549755813888, + DOTA_ABILITY_BEHAVIOR_ALT_CASTABLE = 1099511627776, } declare enum DAMAGE_TYPES @@ -49245,7 +49362,17 @@ declare enum modifierfunction MODIFIER_PROPERTY_AVOID_DAMAGE_AFTER_REDUCTIONS = 271, /** GetModifierDamageOutgoing_PercentageMultiplicative */ MODIFIER_PROPERTY_DAMAGEOUTGOING_PERCENTAGE_MULTIPLICATIVE = 272, - MODIFIER_FUNCTION_LAST = 273, + /** GetModifierSlowResistance */ + MODIFIER_PROPERTY_SLOW_RESISTANCE = 273, + /** GetModifierAoEBonusPercentage */ + MODIFIER_PROPERTY_AOE_BONUS_PERCENTAGE = 274, + /** GetModifierProjectileSpeed */ + MODIFIER_PROPERTY_PROJECTILE_SPEED = 275, + /** GetModifierBecomeUniversal */ + MODIFIER_PROPERTY_BECOME_UNIVERSAL = 276, + /** OnForceProcMagicStick */ + MODIFIER_EVENT_ON_FORCE_PROC_MAGIC_STICK = 277, + MODIFIER_FUNCTION_LAST = 278, MODIFIER_FUNCTION_INVALID = 65535, } @@ -49310,7 +49437,8 @@ declare enum modifierstate MODIFIER_STATE_DEBUFF_IMMUNE = 56, MODIFIER_STATE_NO_INVISIBILITY_VISUALS = 57, MODIFIER_STATE_ALLOW_PATHING_THROUGH_BASE_BLOCKER = 58, - MODIFIER_STATE_LAST = 59, + MODIFIER_STATE_IGNORING_MOVE_ORDERS = 59, + MODIFIER_STATE_LAST = 60, } declare enum DOTAModifierAttribute_t diff --git a/files/engine-enums.json b/files/engine-enums.json index 038e3dc..36a29d5 100644 --- a/files/engine-enums.json +++ b/files/engine-enums.json @@ -22,10 +22,6 @@ "name": "DOTA_PSEUDO_RANDOM_AXE_HELIX_ATTACK", "shortName": "AXE_HELIX_ATTACK" }, - { - "name": "DOTA_PSEUDO_RANDOM_BATRIDER_NAPALM", - "shortName": "BATRIDER_NAPALM" - }, { "name": "DOTA_PSEUDO_RANDOM_BREWMASTER_CINDER_BREW", "shortName": "BREWMASTER_CINDER_BREW" @@ -338,6 +334,10 @@ "name": "DOTA_PSEUDO_RANDOM_TROLL_BASH", "shortName": "TROLL_BASH" }, + { + "name": "DOTA_PSEUDO_RANDOM_TROLL_FERVOR_SHARD", + "shortName": "TROLL_FERVOR_SHARD" + }, { "name": "DOTA_PSEUDO_RANDOM_TUSK_CRIT", "shortName": "TUSK_CRIT" @@ -6329,6 +6329,10 @@ "name": "DAMAGE_TYPE_PHYSICAL", "shortName": "PHYSICAL" }, + { + "name": "DAMAGE_TYPE_Pure", + "shortName": "Pure" + }, { "name": "DAMAGE_TYPE_PURE", "shortName": "PURE" @@ -6338,6 +6342,10 @@ { "name": "AbilityBehavior", "members": [ + { + "name": "DOTA_ABILITY_BEHAVIOR_ALT_CASTABLE", + "shortName": "ALT_CASTABLE" + }, { "name": "DOTA_ABILITY_BEHAVIOR_AOE", "shortName": "AOE" diff --git a/files/panorama/enums.json b/files/panorama/enums.json index cee79e1..a3da5e0 100644 --- a/files/panorama/enums.json +++ b/files/panorama/enums.json @@ -596,6 +596,10 @@ { "name": "DOTA_UNIT_ORDER_MOVE_RELATIVE", "value": 39 + }, + { + "name": "DOTA_UNIT_ORDER_CAST_TOGGLE_ALT", + "value": 40 } ] }, @@ -1683,6 +1687,10 @@ { "name": "DOTA_ABILITY_BEHAVIOR_IGNORE_MUTED", "value": 549755813888 + }, + { + "name": "DOTA_ABILITY_BEHAVIOR_ALT_CASTABLE", + "value": 1099511627776 } ] }, @@ -4788,9 +4796,34 @@ "value": 272 }, { - "name": "MODIFIER_FUNCTION_LAST", + "name": "MODIFIER_PROPERTY_SLOW_RESISTANCE", + "description": "Method Name: `GetModifierSlowResistance`", "value": 273 }, + { + "name": "MODIFIER_PROPERTY_AOE_BONUS_PERCENTAGE", + "description": "Method Name: `GetModifierAoEBonusPercentage`", + "value": 274 + }, + { + "name": "MODIFIER_PROPERTY_PROJECTILE_SPEED", + "description": "Method Name: `GetModifierProjectileSpeed`", + "value": 275 + }, + { + "name": "MODIFIER_PROPERTY_BECOME_UNIVERSAL", + "description": "Method Name: `GetModifierBecomeUniversal`", + "value": 276 + }, + { + "name": "MODIFIER_EVENT_ON_FORCE_PROC_MAGIC_STICK", + "description": "Method Name: `OnForceProcMagicStick`", + "value": 277 + }, + { + "name": "MODIFIER_FUNCTION_LAST", + "value": 278 + }, { "name": "MODIFIER_FUNCTION_INVALID", "value": 65535 @@ -5037,8 +5070,12 @@ "value": 58 }, { - "name": "MODIFIER_STATE_LAST", + "name": "MODIFIER_STATE_IGNORING_MOVE_ORDERS", "value": 59 + }, + { + "name": "MODIFIER_STATE_LAST", + "value": 60 } ] }, diff --git a/files/vscripts/api.json b/files/vscripts/api.json index bbd7496..ad03f11 100644 --- a/files/vscripts/api.json +++ b/files/vscripts/api.json @@ -15442,6 +15442,16 @@ "float" ] }, + { + "kind": "function", + "name": "GetModifierAoEBonusPercentage", + "available": "both", + "abstract": true, + "args": [], + "returns": [ + "nil" + ] + }, { "kind": "function", "name": "GetModifierAttackPointConstant", @@ -15684,6 +15694,16 @@ "float" ] }, + { + "kind": "function", + "name": "GetModifierBecomeUniversal", + "available": "both", + "abstract": true, + "args": [], + "returns": [ + "nil" + ] + }, { "kind": "function", "name": "GetModifierBonusDamageOutgoing_Percentage", @@ -17329,6 +17349,16 @@ "string" ] }, + { + "kind": "function", + "name": "GetModifierProjectileSpeed", + "available": "both", + "abstract": true, + "args": [], + "returns": [ + "nil" + ] + }, { "kind": "function", "name": "GetModifierProjectileSpeedBonus", @@ -17397,6 +17427,16 @@ "nil" ] }, + { + "kind": "function", + "name": "GetModifierSlowResistance", + "available": "both", + "abstract": true, + "args": [], + "returns": [ + "nil" + ] + }, { "kind": "function", "name": "GetModifierSpellAmplify_Percentage", @@ -18188,6 +18228,16 @@ "nil" ] }, + { + "kind": "function", + "name": "OnForceProcMagicStick", + "available": "both", + "abstract": true, + "args": [], + "returns": [ + "nil" + ] + }, { "kind": "function", "name": "OnHealReceived", @@ -25077,6 +25127,23 @@ } ] }, + { + "kind": "function", + "name": "SetCustomScanMaxCharges", + "available": "server", + "description": "Set a custom max charges for team Scan ability.", + "returns": [ + "nil" + ], + "args": [ + { + "name": "maxCharges", + "types": [ + "int" + ] + } + ] + }, { "kind": "function", "name": "SetCustomTerrainWeatherEffect", diff --git a/files/vscripts/enums.json b/files/vscripts/enums.json index 82774f3..aa83a41 100644 --- a/files/vscripts/enums.json +++ b/files/vscripts/enums.json @@ -437,6 +437,10 @@ "name": "DOTA_ABILITY_BEHAVIOR_LAST_RESORT_POINT", "value": -2147483648 }, + { + "name": "DOTA_ABILITY_BEHAVIOR_ALT_CASTABLE", + "value": 0 + }, { "name": "DOTA_ABILITY_BEHAVIOR_CAN_SELF_CAST", "value": 0 @@ -1466,8 +1470,12 @@ "value": 117 }, { - "name": "DOTA_INVALID_ORDER_COUNT", + "name": "DOTA_INVALID_ORDER_ABILITY_CANT_ALT_CAST", "value": 118 + }, + { + "name": "DOTA_INVALID_ORDER_COUNT", + "value": 119 } ] }, @@ -3457,6 +3465,10 @@ { "name": "DOTA_UNIT_ORDER_MOVE_RELATIVE", "value": 39 + }, + { + "name": "DOTA_UNIT_ORDER_CAST_TOGGLE_ALT", + "value": 40 } ] }, @@ -8880,31 +8892,31 @@ "value": 1780 }, { - "name": "ACT_DOTA_RUN_ALT", - "value": 1784 + "name": "ACT_DOTA_RADIANT_CREEP_HAMMER", + "value": 1782 }, { - "name": "ACT_DOTA_RADIANT_CREEP_HAMMER", - "value": 1786 + "name": "ACT_DOTA_SPWN", + "value": 1783 }, { - "name": "ACT_DOTA_VOODOO_REST", + "name": "ACT_DOTA_RUN_ALT", "value": 1787 }, { - "name": "ACT_DOTA_CYCLONE", + "name": "ACT_DOTA_VOODOO_REST", "value": 1788 }, { - "name": "ACT_DOTA_IMPALE", + "name": "ACT_DOTA_CYCLONE", "value": 1789 }, { - "name": "ACT_DOTA_TORRENT", + "name": "ACT_DOTA_IMPALE", "value": 1790 }, { - "name": "ACT_DOTA_SPWN", + "name": "ACT_DOTA_TORRENT", "value": 1791 } ] @@ -10300,9 +10312,34 @@ "value": 272 }, { - "name": "MODIFIER_FUNCTION_LAST", + "name": "MODIFIER_PROPERTY_SLOW_RESISTANCE", + "description": "Method Name: `GetModifierSlowResistance`", "value": 273 }, + { + "name": "MODIFIER_PROPERTY_AOE_BONUS_PERCENTAGE", + "description": "Method Name: `GetModifierAoEBonusPercentage`", + "value": 274 + }, + { + "name": "MODIFIER_PROPERTY_PROJECTILE_SPEED", + "description": "Method Name: `GetModifierProjectileSpeed`", + "value": 275 + }, + { + "name": "MODIFIER_PROPERTY_BECOME_UNIVERSAL", + "description": "Method Name: `GetModifierBecomeUniversal`", + "value": 276 + }, + { + "name": "MODIFIER_EVENT_ON_FORCE_PROC_MAGIC_STICK", + "description": "Method Name: `OnForceProcMagicStick`", + "value": 277 + }, + { + "name": "MODIFIER_FUNCTION_LAST", + "value": 278 + }, { "name": "MODIFIER_FUNCTION_INVALID", "value": 65535 @@ -10597,8 +10634,12 @@ "value": 58 }, { - "name": "MODIFIER_STATE_LAST", + "name": "MODIFIER_STATE_IGNORING_MOVE_ORDERS", "value": 59 + }, + { + "name": "MODIFIER_STATE_LAST", + "value": 60 } ] }, @@ -10987,7 +11028,7 @@ "value": 74 }, { - "name": "DOTA_PSEUDO_RANDOM_BATRIDER_NAPALM", + "name": "DOTA_PSEUDO_RANDOM_TROLL_FERVOR_SHARD", "value": 75 }, { From 4e652eb33b0f8a3e4e4901e318b9edd795eefcfc Mon Sep 17 00:00:00 2001 From: Perryvw Date: Thu, 10 Aug 2023 21:33:11 +0200 Subject: [PATCH 2/3] Improve overrides --- .../vscripts/api/data/modifier-properties.ts | 24 +++- files/panorama/enums.json | 4 +- files/vscripts/api.json | 111 +++++++++++++----- files/vscripts/enums.json | 4 +- 4 files changed, 111 insertions(+), 32 deletions(-) diff --git a/build/vscripts/api/data/modifier-properties.ts b/build/vscripts/api/data/modifier-properties.ts index 49e19b5..9388f30 100644 --- a/build/vscripts/api/data/modifier-properties.ts +++ b/build/vscripts/api/data/modifier-properties.ts @@ -35,27 +35,38 @@ const modifiersData: Record = GetIsIllusion: [null, binaryBoolean], GetMinHealth: [null, anyNumber], GetModifierAbilityLayout: [null, anyNumber], + GetModifierAoEBonusPercentage: [null, anyNumber], GetModifierAttackPointConstant: [null, anyNumber], GetModifierAttackRangeBonus: [null, anyNumber], + GetModifierAttackRangeBonusPercentage: [null, anyNumber], GetModifierAttackRangeBonusUnique: [null, anyNumber], GetModifierAttackRangeOverride: [null, anyNumber], GetModifierAttackSpeedBaseOverride: [null, anyNumber], GetModifierAttackSpeedBonus_Constant: [null, anyNumber], + GetModifierAttackSpeedPercentage: [null, anyNumber], + GetModifierAttackSpeedReductionPercentage: [null, anyNumber], GetModifierAvoidDamage: ['ModifierAttackEvent', anyNumber], GetModifierAvoidDamageAfterReductions: ['ModifierAttackEvent', anyNumber], GetModifierAvoidSpell: ['ModifierAttackEvent', binaryBoolean], GetModifierBaseAttack_BonusDamage: [null, anyNumber], GetModifierBaseAttackTimeConstant: [null, anyNumber], + GetModifierBaseAttackTimeConstant_Adjust: [null, anyNumber], + GetModifierBaseAttackTimePercentage: [null, anyNumber], GetModifierBaseDamageOutgoing_Percentage: ['ModifierAttackEvent', anyNumber], GetModifierBaseDamageOutgoing_PercentageUnique: ['ModifierAttackEvent', anyNumber], GetModifierBaseRegen: [null, anyNumber], + GetModifierBecomeUniversal: [null, binaryBoolean], GetModifierBonusStats_Agility: [null, anyNumber], + GetModifierBonusStats_Agility_Percentage: [null, anyNumber], GetModifierBonusStats_Intellect: [null, anyNumber], + GetModifierBonusStats_Intellect_Percentage: [null, anyNumber], GetModifierBonusStats_Strength: [null, anyNumber], + GetModifierBonusStats_Strength_Percentage: [null, anyNumber], GetModifierBountyCreepMultiplier: [null, anyNumber], GetModifierBountyOtherMultiplier: [null, anyNumber], GetModifierCanAttackTrees: [null, binaryBoolean], GetModifierCastRangeBonus: ['ModifierAbilityEvent', anyNumber], + GetModifierCastRangeBonusPercentage: ['ModifierAbilityEvent', anyNumber], GetModifierCastRangeBonusStacking: ['ModifierAbilityEvent', anyNumber], GetModifierCastRangeBonusTarget: ['ModifierAbilityEvent', anyNumber], GetModifierChangeAbilityValue: [null, ['nil']], @@ -132,8 +143,10 @@ const modifiersData: Record = GetModifierOverrideAbilitySpecial: ['ModifierOverrideAbilitySpecialEvent', binaryBoolean], GetModifierOverrideAbilitySpecialValue: ['ModifierOverrideAbilitySpecialEvent', anyNumber], GetModifierOverrideAttackDamage: [null, anyNumber], + GetModifierPercentageAttackAnimTime: [null, anyNumber], GetModifierPercentageCasttime: ['ModifierAbilityEvent', anyNumber], GetModifierPercentageCooldown: ['ModifierAbilityEvent', anyNumber], + GetModifierPercentageCooldownOngoing: ['ModifierAbilityEvent', anyNumber], GetModifierPercentageCooldownStacking: ['ModifierAbilityEvent', anyNumber], GetModifierPercentageExpRateBoost: [null, anyNumber], GetModifierPercentageHealthcost: ['ModifierAbilityEvent', anyNumber], @@ -160,9 +173,14 @@ const modifiersData: Record = GetModifierProcAttack_BonusDamage_Pure: ['ModifierAttackEvent', anyNumber], GetModifierProcAttack_Feedback: ['ModifierAttackEvent', anyNumber], GetModifierProjectileName: [null, ['string']], + GetModifierProjectileSpeed: [null, anyNumber], GetModifierProjectileSpeedBonus: [null, anyNumber], + GetModifierProjectileSpeedBonusPercentage: [null, anyNumber], GetModifierProvidesFOWVision: [null, binaryBoolean], - GetModifierScepter: [null, ['nil'], 'Always applies scepter when this property is active'], + GetModifierRadarCooldownReduction: [null, anyNumber], + GetModifierScepter: [null, binaryBoolean, 'Applies scepter when this property is active'], + GetModifierShard: [null, binaryBoolean, 'Applies shard when this property is active'], + GetModifierSlowResistance: [null, anyNumber], GetModifierSpellAmplify_Percentage: ['ModifierAttackEvent', anyNumber], GetModifierSpellAmplify_PercentageUnique: [null, anyNumber], GetModifierSpellsRequireHP: [null, anyNumber], @@ -178,13 +196,17 @@ const modifiersData: Record = GetModifierTotalPercentageManaRegen: [null, anyNumber], GetModifierTurnRate_Override: [null, anyNumber], GetModifierTurnRate_Percentage: [null, anyNumber], + GetModifierTurnRateConstant: [null, anyNumber], GetModifierUnitDisllowUpgrading: [null, binaryBoolean], GetModifierUnitStatsNeedsRefresh: [null, binaryBoolean], GetOverrideAnimation: [null, ['GameActivity_t']], GetOverrideAnimationRate: [null, anyNumber], GetOverrideAnimationWeight: [null, anyNumber], GetOverrideAttackMagical: [null, binaryBoolean], + GetPrimaryStatDamageMultiplier: [null, anyNumber], GetReflectSpell: ['ModifierAbilityEvent', binaryBoolean], + GetSuppressCleave: ['ModifierAttackEvent', binaryBoolean], + GetSuppressTeleport: [null, binaryBoolean], GetUnitLifetimeFraction: [null, anyNumber], GetVisualZDelta: [null, anyNumber], OnAbilityEndChannel: ['ModifierAbilityEvent', ['nil']], diff --git a/files/panorama/enums.json b/files/panorama/enums.json index a3da5e0..5af7514 100644 --- a/files/panorama/enums.json +++ b/files/panorama/enums.json @@ -4544,12 +4544,12 @@ }, { "name": "MODIFIER_PROPERTY_IS_SCEPTER", - "description": "Always applies scepter when this property is active\n\nMethod Name: `GetModifierScepter`.", + "description": "Applies scepter when this property is active\n\nMethod Name: `GetModifierScepter`.", "value": 222 }, { "name": "MODIFIER_PROPERTY_IS_SHARD", - "description": "Method Name: `GetModifierShard`", + "description": "Applies shard when this property is active\n\nMethod Name: `GetModifierShard`.", "value": 223 }, { diff --git a/files/vscripts/api.json b/files/vscripts/api.json index ad03f11..d8cba0b 100644 --- a/files/vscripts/api.json +++ b/files/vscripts/api.json @@ -15449,7 +15449,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -15479,7 +15479,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -15539,7 +15539,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -15549,7 +15549,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -15637,7 +15637,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -15647,7 +15647,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -15701,7 +15701,14 @@ "abstract": true, "args": [], "returns": [ - "nil" + { + "kind": "literal", + "value": 0 + }, + { + "kind": "literal", + "value": 1 + } ] }, { @@ -15731,7 +15738,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -15751,7 +15758,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -15771,7 +15778,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -15813,9 +15820,16 @@ "name": "GetModifierCastRangeBonusPercentage", "available": "both", "abstract": true, - "args": [], + "args": [ + { + "name": "event", + "types": [ + "ModifierAbilityEvent" + ] + } + ], "returns": [ - "nil" + "float" ] }, { @@ -16849,7 +16863,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -16891,9 +16905,16 @@ "name": "GetModifierPercentageCooldownOngoing", "available": "both", "abstract": true, - "args": [], + "args": [ + { + "name": "event", + "types": [ + "ModifierAbilityEvent" + ] + } + ], "returns": [ - "nil" + "float" ] }, { @@ -17356,7 +17377,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -17376,7 +17397,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -17403,7 +17424,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -17411,10 +17432,17 @@ "name": "GetModifierScepter", "available": "both", "abstract": true, - "description": "Always applies scepter when this property is active", + "description": "Applies scepter when this property is active", "args": [], "returns": [ - "nil" + { + "kind": "literal", + "value": 0 + }, + { + "kind": "literal", + "value": 1 + } ] }, { @@ -17422,9 +17450,17 @@ "name": "GetModifierShard", "available": "both", "abstract": true, + "description": "Applies shard when this property is active", "args": [], "returns": [ - "nil" + { + "kind": "literal", + "value": 0 + }, + { + "kind": "literal", + "value": 1 + } ] }, { @@ -17434,7 +17470,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -17683,7 +17719,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -17784,7 +17820,7 @@ "abstract": true, "args": [], "returns": [ - "nil" + "float" ] }, { @@ -17816,9 +17852,23 @@ "name": "GetSuppressCleave", "available": "both", "abstract": true, - "args": [], + "args": [ + { + "name": "event", + "types": [ + "ModifierAttackEvent" + ] + } + ], "returns": [ - "nil" + { + "kind": "literal", + "value": 0 + }, + { + "kind": "literal", + "value": 1 + } ] }, { @@ -17828,7 +17878,14 @@ "abstract": true, "args": [], "returns": [ - "nil" + { + "kind": "literal", + "value": 0 + }, + { + "kind": "literal", + "value": 1 + } ] }, { diff --git a/files/vscripts/enums.json b/files/vscripts/enums.json index aa83a41..087cc71 100644 --- a/files/vscripts/enums.json +++ b/files/vscripts/enums.json @@ -10060,12 +10060,12 @@ }, { "name": "MODIFIER_PROPERTY_IS_SCEPTER", - "description": "Always applies scepter when this property is active\n\nMethod Name: `GetModifierScepter`.", + "description": "Applies scepter when this property is active\n\nMethod Name: `GetModifierScepter`.", "value": 222 }, { "name": "MODIFIER_PROPERTY_IS_SHARD", - "description": "Method Name: `GetModifierShard`", + "description": "Applies shard when this property is active\n\nMethod Name: `GetModifierShard`.", "value": 223 }, { From 115703d5121f5f3b91c1acd6fac1acc1cd127222 Mon Sep 17 00:00:00 2001 From: Perryvw Date: Thu, 10 Aug 2023 21:44:26 +0200 Subject: [PATCH 3/3] Fix tests --- src/schemas/units/units.ts | 4 +--- test/schemas/abilities.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/schemas/units/units.ts b/src/schemas/units/units.ts index 6c4e9e6..2886c73 100644 --- a/src/schemas/units/units.ts +++ b/src/schemas/units/units.ts @@ -125,9 +125,7 @@ export const baseUnit = () => .field('AttackCapabilities', s.enums('UnitAttackCapability')) .field('AttackDamageMin', s.int()) .field('AttackDamageMax', s.int()) - .field('AttackDamageType', s.literal('DAMAGE_TYPE_ArmorPhysical'), { - deprecated: 'The only valid value is default', - }) + .field('AttackDamageType', s.enums('DamageType')) .field('BaseAttackSpeed', s.int(), { description: 'https://dota2.gamepedia.com/Attack_speed#Initial_Attack_Speed', }) diff --git a/test/schemas/abilities.ts b/test/schemas/abilities.ts index 1744b6e..8e03753 100644 --- a/test/schemas/abilities.ts +++ b/test/schemas/abilities.ts @@ -8,18 +8,18 @@ describe('integration', () => { url: 'https://raw.githubusercontent.com/dotabuff/d2vpkr/master/dota/scripts/npc/npc_abilities.txt', ignore: [ + 'arc_warden_tempest_double.AbilityBehavior[0] should be a AbilityBehavior enum but is: DOTA_ABILITY_BEHAVIOR_POINT_TARGET', // Should be: DOTA_ABILITY_BEHAVIOR_POINT 'earth_spirit_boulder_smash.AbilityUnitTargetFlag is unknown', // Should be AbilityUnitTargetFlags instead 'lone_druid_true_form_battle_cry.AbilityBehavior[1] should be a AbilityBehavior enum but is: DOTA_ABILITY_TYPE_ULTIMATE', // DOTA_ABILITY_TYPE_ULTIMATE + 'lone_druid_savage_roar_bear.AbilityBehavior[2] should be a AbilityBehavior enum but is: ABILITY_NOT_LEARNABLE', // Should be: DOTA_ABILITY_BEHAVIOR_NOT_LEARNABLE 'meepo_poof.AbilityBehavior[1] should be a AbilityBehavior enum but is: ', // Extra |, empty string ability behavior 'satyr_soulstealer_mana_burn.Modelscale is unknown', // Model scale is a unit flag? 'tinker_keen_teleport.AbilityBehavior[2] should be a AbilityBehavior enum but is: DOTA_ABILITY_BEHAVIOR_NOASSIST', // DOTA_ABILITY_BEHAVIOR_NOASSIST 'abyssal_underlord_portal_warp.AbilityBehavior[2] should be a AbilityBehavior enum but is: DOTA_ABILITY_BEHAVIOR_NOASSIST', // DOTA_ABILITY_BEHAVIOR_NOASSIST - 'ogre_magi_ignite.AbilitySpecial.06.var_type should be a SpecialValueFieldType enum but is: FIELD_INT', // FIELD_INT, should be FIELD_INTEGER 'medusa_mana_shield.RequiredLevel should be greater than 0', // Innate learnable ability, RequiredLevel is -1 'elder_titan_move_spirit.AbilityBehavior[1] should be a AbilityBehavior enum but is: DOTA_ABILITY_BEHAVIOR_POINT_TARGET', // DOTA_ABILITY_BEHAVIOR_POINT_TARGET, should be DOTA_ABILITY_BEHAVIOR_POINT_TARGET 'special_bonus_unique_warlock_1.base_class is unknown', // Should be BaseClass instead 'special_bonus_unique_warlock_3.base_class is unknown', // Should be BaseClass instead - 'jakiro_liquid_fire.AbilitySpecial.04.var_type is missing', 'twin_gate_portal_warp.AbilityBehavior[2] should be a AbilityBehavior enum but is: DOTA_ABILITY_BEHAVIOR_NOASSIST', ], });