Skip to content

Commit

Permalink
Updated Mimics to game version 2.55.6.92665
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiephan committed Aug 16, 2024
1 parent 488866c commit 92d5bb6
Show file tree
Hide file tree
Showing 7 changed files with 282 additions and 135 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="us-ascii"?>

<!-- ======================================================== -->
<!-- This file is generated via "npm run buildmimicabilities" -->
<!-- This file is generated via "npm run build:mimicabilities" -->
<!-- ======================================================== -->
<!-- It will find all <CAbil*> and map to a <CBehaviorAbility>, -->
<!-- That enabled most abilities to be added with behavior, as an item like ice block. -->
<!-- To prevent collision, all Mimic Abilties's id will have prefixed "M" -->
<!-- Some Abilites required a specific behavior to be unlocked, which will shown next to the ability below. -->
<!-- To prevent collision, all Mimic Abilities' id will have prefixed "M" -->
<!-- Some Abilities required a specific behavior to be unlocked, which will shown next to the ability below. -->
<!-- Such as "Ultimate1Unlocked" for ultimates -->
<!-- Please also manually add the behavior to the units. -->

Expand Down Expand Up @@ -4091,7 +4091,6 @@
<Buttons Face="AmazonCancelFend" Type="AbilCmd" AbilCmd="AmazonFendCancelChannel,Execute" Behavior="AmazonFendCancelChannel" />
</CBehaviorAbility>
<CBehaviorAbility id="MAmazonSurgeOfLight">
<!-- Requirement Behavior Detected. Please add the behavior: AmazonAvoidanceSurgeOfLightHasReadyBehavior -->
<Buttons Face="AmazonAvoidance" Type="AbilCmd" AbilCmd="AmazonSurgeOfLight,Execute" Behavior="AmazonSurgeOfLight" />
</CBehaviorAbility>
<CBehaviorAbility id="MAmazonWarTravelerSummonMount">
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@
<CUnit id="UNTinkerXplodiumBombWarning" parent="UN_t"/>
<CUnit id="UNDethLazorChargeUpModel1" parent="UN_t"/>
<CUnit id="UNTinkerXplodiumBombModel" parent="UN_t"/>
<CUnit id="UNTinkerXplodiumBombSplatLeftArrow" parent="UN_t"/>
<CUnit id="UNTinkerPortrait" parent="UN_t"/>
<CUnit id="UNTinkerPortraitAddition" parent="UN_t"/>
<CUnit id="UNTinkerSalvagePickup" parent="UN_t"/>
Expand Down Expand Up @@ -6812,6 +6813,7 @@
<CUnit id="UNUtherHolyRadianceDamageImpact" parent="UN_t"/>
<CUnit id="UNUtherSkinTemp1" parent="UN_t"/>
<CUnit id="UNUtherDivineInterventionBuff" parent="UN_t"/>
<CUnit id="UNUtherDivineShieldBulwarkOfLightSplat" parent="UN_t"/>
<CUnit id="UNUtherSkinJudgementVar1Portrait" parent="UN_t"/>
<CUnit id="UNUtherSkinJudgementVar2Portrait" parent="UN_t"/>
<CUnit id="UNUtherSkinJudgementPortraitCommon" parent="UN_t"/>
Expand Down Expand Up @@ -17574,6 +17576,7 @@
<CUnit id="UNSamuroWindwalkShukuchiTeleport" parent="UN_t"/>
<CUnit id="UNSamuroWindwalkStop" parent="UN_t"/>
<CUnit id="UNSamuroWindwalkHarshWindsDebuff" parent="UN_t"/>
<CUnit id="UNSamuroMirrorImageRadialIndicator" parent="UN_t"/>
<CUnit id="UNSamuroSkinFelPortraitVar1" parent="UN_t"/>
<CUnit id="UNSamuroSkinFelPortraitVar2" parent="UN_t"/>
<CUnit id="UNSamuroSkinFelPortraitVar3" parent="UN_t"/>
Expand Down Expand Up @@ -21584,6 +21587,9 @@
<CActorUnit id="UNTinkerXplodiumBombModel" parent="GenericUnitStandard" unitName="UNTinkerXplodiumBombModel">
<Model value="TinkerXplodiumBombModel"/>
</CActorUnit>
<CActorUnit id="UNTinkerXplodiumBombSplatLeftArrow" parent="GenericUnitStandard" unitName="UNTinkerXplodiumBombSplatLeftArrow">
<Model value="TinkerXplodiumBombSplatLeftArrow"/>
</CActorUnit>
<CActorUnit id="UNTinkerPortrait" parent="GenericUnitStandard" unitName="UNTinkerPortrait">
<Model value="TinkerPortrait"/>
</CActorUnit>
Expand Down Expand Up @@ -39626,6 +39632,9 @@
<CActorUnit id="UNUtherDivineInterventionBuff" parent="GenericUnitStandard" unitName="UNUtherDivineInterventionBuff">
<Model value="UtherDivineInterventionBuff"/>
</CActorUnit>
<CActorUnit id="UNUtherDivineShieldBulwarkOfLightSplat" parent="GenericUnitStandard" unitName="UNUtherDivineShieldBulwarkOfLightSplat">
<Model value="UtherDivineShieldBulwarkOfLightSplat"/>
</CActorUnit>
<CActorUnit id="UNUtherSkinJudgementVar1Portrait" parent="GenericUnitStandard" unitName="UNUtherSkinJudgementVar1Portrait">
<Model value="UtherSkinJudgementVar1Portrait"/>
</CActorUnit>
Expand Down Expand Up @@ -71912,6 +71921,9 @@
<CActorUnit id="UNSamuroWindwalkHarshWindsDebuff" parent="GenericUnitStandard" unitName="UNSamuroWindwalkHarshWindsDebuff">
<Model value="SamuroWindwalkHarshWindsDebuff"/>
</CActorUnit>
<CActorUnit id="UNSamuroMirrorImageRadialIndicator" parent="GenericUnitStandard" unitName="UNSamuroMirrorImageRadialIndicator">
<Model value="SamuroMirrorImageRadialIndicator"/>
</CActorUnit>
<CActorUnit id="UNSamuroSkinFelPortraitVar1" parent="GenericUnitStandard" unitName="UNSamuroSkinFelPortraitVar1">
<Model value="SamuroSkinFelPortraitVar1"/>
</CActorUnit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,7 @@ void MimicGameDataHelperLib_gf_HeroLeoricIncrementHeroCountFunction () {
TriggerEnable(MimicGameDataHelperLib_gt_LeoricFealtyUntoDeathAlliedNPCProcListener, true);
TriggerEnable(MimicGameDataHelperLib_gt_HeroLeoricOsseinRenewalTalentGlobeProc, true);
TriggerEnable(MimicGameDataHelperLib_gt_HeroLeoricEntombForcedDestruction, true);
TriggerEnable(MimicGameDataHelperLib_gt_HeroLeoricShroudOfTheDeadKingFloatingText, true);
}

}
Expand All @@ -1659,6 +1660,7 @@ void MimicGameDataHelperLib_gf_HeroLeoricDecrementHeroCountFunction () {
TriggerEnable(MimicGameDataHelperLib_gt_LeoricFealtyUntoDeathAlliedNPCProcListener, false);
TriggerEnable(MimicGameDataHelperLib_gt_HeroLeoricOsseinRenewalTalentGlobeProc, false);
TriggerEnable(MimicGameDataHelperLib_gt_HeroLeoricEntombForcedDestruction, false);
TriggerEnable(MimicGameDataHelperLib_gt_HeroLeoricShroudOfTheDeadKingFloatingText, false);
}

}
Expand Down Expand Up @@ -12853,6 +12855,41 @@ void MimicGameDataHelperLib_gt_HeroLeoricOsseinRenewalTalentGlobeProc_Init () {
TriggerAddEventPlayerEffectUsed(MimicGameDataHelperLib_gt_HeroLeoricOsseinRenewalTalentGlobeProc, c_playerAny, "RegenGlobeImpactSet");
}

//--------------------------------------------------------------------------------------------------
// Trigger: Hero - Leoric - Shroud of the Dead King Floating Text
//--------------------------------------------------------------------------------------------------
bool MimicGameDataHelperLib_gt_HeroLeoricShroudOfTheDeadKingFloatingText_Func (bool testConds, bool runActions) {
// Variable Declarations
int lv_triggeringUnitOwner;

// Automatic Variable Declarations
// Variable Initialization
lv_triggeringUnitOwner = UnitGetOwner(EventUnit());

// Conditions
if (testConds) {
if (!((EventUnitBehaviorCumulativeDamageModification() >= 0.0))) {
return false;
}
}

// Actions
if (!runActions) {
return true;
}

FloatingCombatElementCreateNumberTextAtUnit(PlayerGroupSingle(lv_triggeringUnitOwner), "FloatingCombatElements/FloatingCombatAmountReadable", "", EventUnit(), FixedToInt(EventUnitBehaviorCumulativeDamageModification()), StringExternal("Param/Value/lib_HVAR_D90A4267"), libNtve_gv_FloatingCombatTextAutoRandomSeed);
return true;
}

//--------------------------------------------------------------------------------------------------
void MimicGameDataHelperLib_gt_HeroLeoricShroudOfTheDeadKingFloatingText_Init () {
MimicGameDataHelperLib_gt_HeroLeoricShroudOfTheDeadKingFloatingText = TriggerCreate("MimicGameDataHelperLib_gt_HeroLeoricShroudOfTheDeadKingFloatingText_Func");
TriggerEnable(MimicGameDataHelperLib_gt_HeroLeoricShroudOfTheDeadKingFloatingText, false);
TriggerAddEventUnitBehaviorChange(MimicGameDataHelperLib_gt_HeroLeoricShroudOfTheDeadKingFloatingText, null, "LeoricShroudoftheDeadKingProtectedBuff", c_unitBehaviorChangeRefresh);
TriggerAddEventUnitBehaviorChange(MimicGameDataHelperLib_gt_HeroLeoricShroudOfTheDeadKingFloatingText, null, "LeoricShroudoftheDeadKingProtectedBuff", c_unitBehaviorChangeDecrease);
}

//--------------------------------------------------------------------------------------------------
// Trigger: Hero - Lost Vikings - Viking Bribery NPC Proc Listener
//--------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -14900,7 +14937,7 @@ bool MimicGameDataHelperLib_gt_HeroLostVikingsCheckpointReachTimerExpires_Func (
UnitSelect(autoF6B97AA2_var, lv_itPlayer, true);
}

UnitCreateEffectUnit(autoF6B97AA2_var, "LostVikingsPlayAgainHeal", autoF6B97AA2_var);
UnitCreateEffectUnit(autoF6B97AA2_var, "LostVikingsCheckpointReachedCreateHealer", autoF6B97AA2_var);
}
TimerPause(MimicGameDataHelperLib_gv_lostVikingsPlayer[lv_itPlayer].lv_olafDeathTimer, true);
TimerPause(MimicGameDataHelperLib_gv_lostVikingsPlayer[lv_itPlayer].lv_erikDeathTimer, true);
Expand Down Expand Up @@ -18898,7 +18935,7 @@ bool MimicGameDataHelperLib_gt_HeroRaynorExecuteOrderHyperionActivate_Func (bool
return true;
}

UnitCreateEffectPointWithSource(lv_raynor, "HyperionInitialCreatePersistent", lv_targetPoint, c_gameCatalogAbil, "RaynorHyperionExecuteOrders");
UnitCreateEffectPointWithSource(lv_raynor, "ExecuteOrdersInitialCreatePersistent", lv_targetPoint, c_gameCatalogAbil, "RaynorHyperionExecuteOrders");
return true;
}

Expand Down Expand Up @@ -26651,6 +26688,7 @@ void MimicGameDataHelperLib_InitTriggers () {
MimicGameDataHelperLib_gt_LeoricFealtyUntoDeathEnemyNPCProcListener_Init();
MimicGameDataHelperLib_gt_LeoricFealtyUntoDeathAlliedNPCProcListener_Init();
MimicGameDataHelperLib_gt_HeroLeoricOsseinRenewalTalentGlobeProc_Init();
MimicGameDataHelperLib_gt_HeroLeoricShroudOfTheDeadKingFloatingText_Init();
MimicGameDataHelperLib_gt_HeroLostVikingsVikingBriberyNPCProcListener_Init();
MimicGameDataHelperLib_gt_HeroLostVikingsVikingBriberyUsed_Init();
MimicGameDataHelperLib_gt_HeroLostVikingsVikingBriberyScoreReset_Init();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ trigger MimicGameDataHelperLib_gt_LeoricUICleanUpUIForHeroSwap;
trigger MimicGameDataHelperLib_gt_LeoricFealtyUntoDeathEnemyNPCProcListener;
trigger MimicGameDataHelperLib_gt_LeoricFealtyUntoDeathAlliedNPCProcListener;
trigger MimicGameDataHelperLib_gt_HeroLeoricOsseinRenewalTalentGlobeProc;
trigger MimicGameDataHelperLib_gt_HeroLeoricShroudOfTheDeadKingFloatingText;
trigger MimicGameDataHelperLib_gt_HeroLostVikingsVikingBriberyNPCProcListener;
trigger MimicGameDataHelperLib_gt_HeroLostVikingsVikingBriberyUsed;
trigger MimicGameDataHelperLib_gt_HeroLostVikingsVikingBriberyScoreReset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1677,6 +1677,7 @@ void MimicGameLib_gf_DeathRecapAddEffectInstanceForPlayer (int lp_deadPlayer, st
int lv_itEffect;
int lv_itMaxDamagerIndex;
int lv_postEffectHealth;
int lv_overkillOverride;

// Automatic Variable Declarations
int auto11913262_ae;
Expand All @@ -1691,6 +1692,12 @@ void MimicGameLib_gf_DeathRecapAddEffectInstanceForPlayer (int lp_deadPlayer, st
return ;
}

if (((UnitGetType(MimicGameLib_gv_players[lp_deadPlayer].lv_heroUnit) == "HeroDVaPilot") || (UnitGetType(MimicGameLib_gv_players[lp_deadPlayer].lv_heroUnit) == "HeroUther") || (UnitGetType(MimicGameLib_gv_players[lp_deadPlayer].lv_heroUnit) == "HeroTyrael") || (UnitGetType(MimicGameLib_gv_players[lp_deadPlayer].lv_heroUnit) == "HeroLeoric"))) {
lv_overkillOverride = PlayerScoreValueGetAsInt(lp_deadPlayer, "DeadHeroDamagePreventedByAbsorb");
}
else {
lv_overkillOverride = 0;
}
lv_effectingPlayer = lp_effectingPlayer;
if ((lv_effectingPlayer >= 1) && (lv_effectingPlayer <= libCore_gv_bALMaxPlayers)) {
lv_effectHeroIndex = MimicGameLib_gv_players[lv_effectingPlayer].lv_heroIndex;
Expand Down Expand Up @@ -1719,7 +1726,7 @@ void MimicGameLib_gf_DeathRecapAddEffectInstanceForPlayer (int lp_deadPlayer, st
MimicGameLib_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lv_effectEventTimeIndex].lv_amount = lp_effectAmount;
MimicGameLib_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lv_effectEventTimeIndex].lv_amountAttempted = lp_effectAmountAttempted;
MimicGameLib_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lv_effectEventTimeIndex].lv_amountShielded = lp_effectAmountShielded;
MimicGameLib_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lv_effectEventTimeIndex].lv_amountOverkill = (lp_effectAmountAttempted - (lp_effectAmount + lp_effectAmountShielded));
MimicGameLib_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lv_effectEventTimeIndex].lv_amountOverkill = ((lp_effectAmountAttempted - (lp_effectAmount + lp_effectAmountShielded)) + lv_overkillOverride);
MimicGameLib_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lv_effectEventTimeIndex].lv_abilityLink = lp_effectingAbility;
MimicGameLib_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lv_effectEventTimeIndex].lv_button = lp_sourceButton;
MimicGameLib_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lv_effectEventTimeIndex].lv_unitType = (CatalogFieldValueGet(c_gameCatalogUnit, lp_effectingUnitType, "LeaderAlias", 0));
Expand Down Expand Up @@ -2021,6 +2028,7 @@ void MimicGameLib_gf_DeathRecapPopulateDeathRecapDataForPlayer (unit lp_playerHe
if ((MimicGameLib_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectEventCount >= 1)) {
libUIUI_gf_DeathRecapPopulateHighestDamagersForPlayer(lp_deadPlayer);
libUIUI_gf_DeathRecapPopulateEffectInstancesForAbilitiesPanel(lp_deadPlayer);
PlayerScoreValueSetFromInt(lp_deadPlayer, "DeadHeroDamagePreventedByAbsorb", 0);
}
else {
MimicTriggerDebugOutput(1, StringExternal("Param/Value/lib_Game_A143D762"), true);
Expand Down Expand Up @@ -17924,6 +17932,10 @@ bool MimicGameLib_gt_PlayerLeavesGameIsHumanPlayer_Func (bool testConds, bool ru
if (!((MimicGameLib_gv_gameOver == false))) {
return false;
}

if (!((MimicGameLib_gv_playerLeaveCheck[EventPlayer()] != 1))) {
return false;
}
}

// Actions
Expand All @@ -17932,6 +17944,7 @@ bool MimicGameLib_gt_PlayerLeavesGameIsHumanPlayer_Func (bool testConds, bool ru
}

if ((UnitGroupCount(MimicGameLib_gv_players[EventPlayer()].lv_heroUnitGroup, c_unitCountAll) == 0)) {
MimicGameLib_gv_playerLeaveCheck[EventPlayer()] = 1;
Wait(5.0, c_timeGame);
auto9C0B1166_g = MimicGameLib_gv_players[EventPlayer()].lv_heroUnitGroup;
auto9C0B1166_u = UnitGroupCount(auto9C0B1166_g, c_unitCountAll);
Expand All @@ -17940,6 +17953,7 @@ bool MimicGameLib_gt_PlayerLeavesGameIsHumanPlayer_Func (bool testConds, bool ru
if (lv_itUnit == null) { break; }
UnitBehaviorAdd(lv_itUnit, "IsHumanPlayer", lv_itUnit, 1);
}
MimicGameLib_gv_playerLeaveCheck[EventPlayer()] = 0;
}
else {
auto534FCED5_g = MimicGameLib_gv_players[EventPlayer()].lv_heroUnitGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1396,14 +1396,29 @@ text MimicUILib_gf_DeathRecapCreateTooltipTextNoSentence (int lp_deadPlayer, int
text lv_damageAmountText;
text lv_simpleTooltip;
text lv_finalText;
int lv_overkillOverride;

// Automatic Variable Declarations
// Variable Initialization

// Implementation
if (((UnitGetType(libGame_gv_players[lp_deadPlayer].lv_heroUnit) == "HeroDVaPilot") || (UnitGetType(libGame_gv_players[lp_deadPlayer].lv_heroUnit) == "HeroUther") || (UnitGetType(libGame_gv_players[lp_deadPlayer].lv_heroUnit) == "HeroTyrael") || (UnitGetType(libGame_gv_players[lp_deadPlayer].lv_heroUnit) == "HeroLeoric"))) {
lv_overkillOverride = PlayerScoreValueGetAsInt(lp_deadPlayer, "DeadHeroDamagePreventedByAbsorb");
}
else {
lv_overkillOverride = 0;
}
lv_effectAmount = libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lp_effectIndex].lv_amount;
lv_effectShielded = libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lp_effectIndex].lv_amountShielded;
lv_effectOverkill = libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lp_effectIndex].lv_amountOverkill;
if ((lp_effectIndex == 1)) {
lv_effectShielded -= lv_overkillOverride;
if ((lv_effectShielded < 0)) {
lv_effectShielded = 0;
}

}

TextExpressionSetToken("Param/Expression/lib_UIUI_140BB2E3", "A", StringExternal(CatalogFieldValueGet(c_gameCatalogButton, libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lp_effectIndex].lv_button, "SimpleDisplayText", c_playerAny)));
lv_simpleTooltip = TextExpressionAssemble("Param/Expression/lib_UIUI_140BB2E3");
if ((libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_effectBars[lp_effectIndex].lv_isHeal == true)) {
Expand Down

0 comments on commit 92d5bb6

Please sign in to comment.