# Minimum (Integer)

Grammar — Min(value1, value2)
FlagsNative | Function

Returns the lowest of the two integer values specified.

# Arguments

  • int — Value 1
  • int — Value 2

Returns — int

native int MinI(int x1, int x2);

Category: Math / Conditionals

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3785

    }

    gv_colonistsSaved = MinI((gv_colonistsSaved + 1), 50);
    ObjectiveSetName(gv_objective_SaveColonists, (StringExternal("Param/Value/01B02760") + IntToText(gv_colonistsSaved) + StringExternal("Param/Value/09C44398") + IntToText(gv_colonistsSaveQuota) + StringExternal("Param/Value/38C9869C")));
    SoundPlay(SoundLink("Terran_Veterancy", -1), PlayerGroupAll(), 100.0, 0.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:290

    lv_msg = (lv_msg + IntToText(PlayerGetPropertyInt(lv_owner, c_playerPropSuppliesUsed)) + StringToText(""));
    lv_msg = (lv_msg + StringExternal("Param/Value/36896677"));
    lv_msg = (lv_msg + IntToText(MinI(PlayerGetPropertyInt(lv_owner, c_playerPropSuppliesMade), PlayerGetPropertyInt(lv_owner, c_playerPropSuppliesLimit))) + StringExternal("Param/Value/BEC03128"));
    lv_msg = (lv_msg + StringExternal("Param/Value/9B853FD2"));
    lv_msg = (lv_msg + UnitTypeGetName(UnitGetType(lp_u)));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2298


    if ((gv_trainsDestroyed < (gv_trainsNeeded - 1))) {
        auto9BF3A280_n = gv_trainMinerals[libNtve_gf_DifficultyValueInt(1, 2, 3, 4)][MinI(gv_trainsDestroyed, 7)];
        for (auto9BF3A280_i = 1; auto9BF3A280_i <= auto9BF3A280_n; auto9BF3A280_i += 1) {
            UnitCreate(1, "PalletMinerals", 0, 0, RegionRandomPoint(RegionCircle(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[RandomInt(1, gv_trainList[lv_trainIndex].lv_lastCar)]), 2.0)), RandomFixed(0.0, 360.0));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3191

    gv_dAWUnitCount = 0;
    gv_dAWWaypoint = null;
    lv_lingerTime = MinI(lv_lingerTime, lv_arrivalTime);
    Wait(IntToFixed((lv_arrivalTime - lv_lingerTime)), c_timeAI);
    auto433B3895_ae = lv_unitCount;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1808

    lv_targetCount = UnitGroupCount(gf_EnemiesWithinRange(gv_hybridPhysical, 8.0, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)))), c_unitCountAlive);
    lv_desiredCasts = FixedToInt((IntToFixed(lv_targetCount) * libNtve_gf_DifficultyValueFixed(0.5, 0.5, 0.6, 0.75)));
    lv_desiredCasts = MinI(lv_desiredCasts, libNtve_gf_DifficultyValueInt(5, 5, 8, 9));
    auto793B532F_n = lv_desiredCasts;
    for (auto793B532F_i = 1; auto793B532F_i <= auto793B532F_n; auto793B532F_i += 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1881

    lv_targetCount = UnitGroupCount(gf_EnemiesWithinRange(gv_hybridPhysical, 8.0, UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)))), c_unitCountAlive);
    lv_desiredCasts = FixedToInt((IntToFixed(lv_targetCount) * 0.8));
    lv_desiredCasts = MinI(lv_desiredCasts, 4);
    auto8910C1F6_n = lv_desiredCasts;
    for (auto8910C1F6_i = 1; auto8910C1F6_i <= auto8910C1F6_n; auto8910C1F6_i += 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:3785

    }

    gv_colonistsSaved = MinI((gv_colonistsSaved + 1), 50);
    ObjectiveSetName(gv_objective_SaveColonists, (StringExternal("Param/Value/01B02760") + IntToText(gv_colonistsSaved) + StringExternal("Param/Value/09C44398") + IntToText(gv_colonistsSaveQuota) + StringExternal("Param/Value/38C9869C")));
    SoundPlay(SoundLink("Terran_Veterancy", -1), PlayerGroupAll(), 100.0, 0.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:290

    lv_msg = (lv_msg + IntToText(PlayerGetPropertyInt(lv_owner, c_playerPropSuppliesUsed)) + StringToText(""));
    lv_msg = (lv_msg + StringExternal("Param/Value/36896677"));
    lv_msg = (lv_msg + IntToText(MinI(PlayerGetPropertyInt(lv_owner, c_playerPropSuppliesMade), PlayerGetPropertyInt(lv_owner, c_playerPropSuppliesLimit))) + StringExternal("Param/Value/BEC03128"));
    lv_msg = (lv_msg + StringExternal("Param/Value/9B853FD2"));
    lv_msg = (lv_msg + UnitTypeGetName(UnitGetType(lp_u)));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:2298


    if ((gv_trainsDestroyed < (gv_trainsNeeded - 1))) {
        auto9BF3A280_n = gv_trainMinerals[libNtve_gf_DifficultyValueInt(1, 2, 3, 4)][MinI(gv_trainsDestroyed, 7)];
        for (auto9BF3A280_i = 1; auto9BF3A280_i <= auto9BF3A280_n; auto9BF3A280_i += 1) {
            UnitCreate(1, "PalletMinerals", 0, 0, RegionRandomPoint(RegionCircle(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[RandomInt(1, gv_trainList[lv_trainIndex].lv_lastCar)]), 2.0)), RandomFixed(0.0, 360.0));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:3191

    gv_dAWUnitCount = 0;
    gv_dAWWaypoint = null;
    lv_lingerTime = MinI(lv_lingerTime, lv_arrivalTime);
    Wait(IntToFixed((lv_arrivalTime - lv_lingerTime)), c_timeAI);
    auto433B3895_ae = lv_unitCount;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2mapMapScript.galaxy:1808

    lv_targetCount = UnitGroupCount(gf_EnemiesWithinRange(gv_hybridPhysical, 8.0, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)))), c_unitCountAlive);
    lv_desiredCasts = FixedToInt((IntToFixed(lv_targetCount) * libNtve_gf_DifficultyValueFixed(0.5, 0.5, 0.6, 0.75)));
    lv_desiredCasts = MinI(lv_desiredCasts, libNtve_gf_DifficultyValueInt(5, 5, 8, 9));
    auto793B532F_n = lv_desiredCasts;
    for (auto793B532F_i = 1; auto793B532F_i <= auto793B532F_n; auto793B532F_i += 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2mapMapScript.galaxy:1881

    lv_targetCount = UnitGroupCount(gf_EnemiesWithinRange(gv_hybridPhysical, 8.0, UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)))), c_unitCountAlive);
    lv_desiredCasts = FixedToInt((IntToFixed(lv_targetCount) * 0.8));
    lv_desiredCasts = MinI(lv_desiredCasts, 4);
    auto8910C1F6_n = lv_desiredCasts;
    for (auto8910C1F6_i = 1; auto8910C1F6_i <= auto8910C1F6_n; auto8910C1F6_i += 1) {

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:5586

    // Implementation
    libCamp_gf_TS_ResearchUICreate();
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)], MinI(libCamp_gf_StoryResearchPointCap(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss), libCamp_gf_StoryResearchPoints(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)));
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)], MinI(libCamp_gf_StoryResearchPointCap(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg), libCamp_gf_StoryResearchPoints(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)));
    autoCE1E6292_i = libCamp_gv_TSC_RESEARCH_FIRST;

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:5587

    libCamp_gf_TS_ResearchUICreate();
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)], MinI(libCamp_gf_StoryResearchPointCap(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss), libCamp_gf_StoryResearchPoints(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)));
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)], MinI(libCamp_gf_StoryResearchPointCap(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg), libCamp_gf_StoryResearchPoints(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)));
    autoCE1E6292_i = libCamp_gv_TSC_RESEARCH_FIRST;
    while (autoCE1E6292_i <= libCamp_gv_TSC_RESEARCH_LAST) {

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13649

    }
    else if (auto5BBED3FD_val == libCamp_gv_tS_DebugResearchButtonProtossPlus) {
        libCamp_gv_tSX_DebugResearchLevel[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)] = MinI((libCamp_gv_tSX_DebugResearchLevel[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)] + 1), 35);
    }
    else if (auto5BBED3FD_val == libCamp_gv_tS_DebugResearchButtonZergMinus) {

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13667

    }
    else if (auto5BBED3FD_val == libCamp_gv_tS_DebugResearchButtonZergPlus) {
        libCamp_gv_tSX_DebugResearchLevel[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)] = MinI((libCamp_gv_tSX_DebugResearchLevel[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)] + 1), 35);
    }
    else {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:3480


    TriggerExecute(gt_ObjectiveCollectLocalBanelingsCreate, true, false);
    libSwaC_gf_SetMissionObjectiveProgress2("ZEvolutionBanelingB01", MinI(gv_hunterBanelingCollected, gv_hunterBanelingCollectRequired), true, null, true);
    Wait(libSwaC_gv_campaignObjectiveDelay, c_timeReal);
    if ((gv_hunterBanelingCollected >= gv_hunterBanelingCollectRequired)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2map/MapScript.galaxy:2168

    lv_roachCount = UnitGroupCount(gv_vilePlayerUnits, c_unitCountAlive);
    if (((15 - lv_roachCount) > 0)) {
        libNtve_gf_CreateUnitsAtPoint2(MinI((15 - lv_roachCount), 5), "RoachVile", 0, gv_pLAYER_01_USER, gv_backupPoint);
        UnitGroupAddUnitGroup(gv_vilePlayerUnits, UnitLastCreatedGroup());
        libSwaC_gf_CreateDropPod(1, PointWithOffsetPolar(gv_backupPoint, 2.0, 120.0), UnitLastCreatedGroup(), false, gv_pLAYER_01_USER);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2map/MapScript.galaxy:2178

    lv_roachCount = UnitGroupCount(gv_vilePlayerUnits, c_unitCountAlive);
    if (((15 - lv_roachCount) > 0)) {
        libNtve_gf_CreateUnitsAtPoint2(MinI((15 - lv_roachCount), 5), "RoachVile", 0, gv_pLAYER_01_USER, gv_backupPoint);
        UnitGroupAddUnitGroup(gv_vilePlayerUnits, UnitLastCreatedGroup());
        libSwaC_gf_CreateDropPod(1, PointWithOffsetPolar(gv_backupPoint, 2.0, 240.0), UnitLastCreatedGroup(), false, gv_pLAYER_01_USER);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:9429

    TriggerExecute(gt_ObjectiveMorphZerglingsCreate, true, false);
    lv_zerglings = UnitGroupCount(UnitGroup("Zergling", gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
    lv_zerglings = MinI(lv_zerglings, 6);
    libSwaC_gf_SetMissionObjectiveProgress2("ZLab01Objective06", lv_zerglings, true, null, true);
    if ((lv_zerglings >= 6)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:7628

    }

    gv_structuresDestroyedS1Stat = MinI(gv_structuresDestroyedS1Stat, gv_structuresDestroyedS1Max);
    return true;
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2map/MapScript.galaxy:115

    TriggerExecute(gt_Init05Scenes, true, false);
    lib281DEC45_gf_BeginStoryMode();
    AchievementTermQuantitySet(1, "KerriganPower70", MinI(libSwaC_gf_StoryKerriganLevel(), 70));
    return true;
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstorykorhal.sc2map/MapScript.galaxy:146

    TriggerExecute(gt_Init06Scenes, true, false);
    lib281DEC45_gf_BeginStoryMode();
    AchievementTermQuantitySet(1, "KerriganPower70", MinI(libSwaC_gf_StoryKerriganLevel(), 70));
    auto8A275886_ae = CatalogEntryCount(c_gameCatalogMap);
    auto8A275886_ai = 1;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryspace.sc2map/MapScript.galaxy:122

    TriggerExecute(gt_SpaceInit06Scenes, true, false);
    lib281DEC45_gf_BeginStoryMode();
    AchievementTermQuantitySet(1, "KerriganPower70", MinI(libSwaC_gf_StoryKerriganLevel(), 70));
    return true;
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2mapMapScript.galaxy:3480


    TriggerExecute(gt_ObjectiveCollectLocalBanelingsCreate, true, false);
    libSwaC_gf_SetMissionObjectiveProgress2("ZEvolutionBanelingB01", MinI(gv_hunterBanelingCollected, gv_hunterBanelingCollectRequired), true, null, true);
    Wait(libSwaC_gv_campaignObjectiveDelay, c_timeReal);
    if ((gv_hunterBanelingCollected >= gv_hunterBanelingCollectRequired)) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2mapMapScript.galaxy:2168

    lv_roachCount = UnitGroupCount(gv_vilePlayerUnits, c_unitCountAlive);
    if (((15 - lv_roachCount) > 0)) {
        libNtve_gf_CreateUnitsAtPoint2(MinI((15 - lv_roachCount), 5), "RoachVile", 0, gv_pLAYER_01_USER, gv_backupPoint);
        UnitGroupAddUnitGroup(gv_vilePlayerUnits, UnitLastCreatedGroup());
        libSwaC_gf_CreateDropPod(1, PointWithOffsetPolar(gv_backupPoint, 2.0, 120.0), UnitLastCreatedGroup(), false, gv_pLAYER_01_USER);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2mapMapScript.galaxy:2178

    lv_roachCount = UnitGroupCount(gv_vilePlayerUnits, c_unitCountAlive);
    if (((15 - lv_roachCount) > 0)) {
        libNtve_gf_CreateUnitsAtPoint2(MinI((15 - lv_roachCount), 5), "RoachVile", 0, gv_pLAYER_01_USER, gv_backupPoint);
        UnitGroupAddUnitGroup(gv_vilePlayerUnits, UnitLastCreatedGroup());
        libSwaC_gf_CreateDropPod(1, PointWithOffsetPolar(gv_backupPoint, 2.0, 240.0), UnitLastCreatedGroup(), false, gv_pLAYER_01_USER);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:9429

    TriggerExecute(gt_ObjectiveMorphZerglingsCreate, true, false);
    lv_zerglings = UnitGroupCount(UnitGroup("Zergling", gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
    lv_zerglings = MinI(lv_zerglings, 6);
    libSwaC_gf_SetMissionObjectiveProgress2("ZLab01Objective06", lv_zerglings, true, null, true);
    if ((lv_zerglings >= 6)) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:7628

    }

    gv_structuresDestroyedS1Stat = MinI(gv_structuresDestroyedS1Stat, gv_structuresDestroyedS1Max);
    return true;
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2mapMapScript.galaxy:115

    TriggerExecute(gt_Init05Scenes, true, false);
    lib281DEC45_gf_BeginStoryMode();
    AchievementTermQuantitySet(1, "KerriganPower70", MinI(libSwaC_gf_StoryKerriganLevel(), 70));
    return true;
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstorykorhal.sc2mapMapScript.galaxy:146

    TriggerExecute(gt_Init06Scenes, true, false);
    lib281DEC45_gf_BeginStoryMode();
    AchievementTermQuantitySet(1, "KerriganPower70", MinI(libSwaC_gf_StoryKerriganLevel(), 70));
    auto8A275886_ae = CatalogEntryCount(c_gameCatalogMap);
    auto8A275886_ai = 1;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryspace.sc2mapMapScript.galaxy:122

    TriggerExecute(gt_SpaceInit06Scenes, true, false);
    lib281DEC45_gf_BeginStoryMode();
    AchievementTermQuantitySet(1, "KerriganPower70", MinI(libSwaC_gf_StoryKerriganLevel(), 70));
    return true;
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12287


    libSwaC_gf_ZS_PlayKerriganHeroPanelLevelUpEffect();
    AchievementTermQuantitySet(1, "KerriganPower10", MinI(libSwaC_gv_zS_KerriganActualLevel, 10));
    AchievementTermQuantitySet(1, "KerriganPower20", MinI(libSwaC_gv_zS_KerriganActualLevel, 20));
    AchievementTermQuantitySet(1, "KerriganPower30", MinI(libSwaC_gv_zS_KerriganActualLevel, 30));

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12288

    libSwaC_gf_ZS_PlayKerriganHeroPanelLevelUpEffect();
    AchievementTermQuantitySet(1, "KerriganPower10", MinI(libSwaC_gv_zS_KerriganActualLevel, 10));
    AchievementTermQuantitySet(1, "KerriganPower20", MinI(libSwaC_gv_zS_KerriganActualLevel, 20));
    AchievementTermQuantitySet(1, "KerriganPower30", MinI(libSwaC_gv_zS_KerriganActualLevel, 30));
    AchievementTermQuantitySet(1, "KerriganPower40", MinI(libSwaC_gv_zS_KerriganActualLevel, 40));

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12289

    AchievementTermQuantitySet(1, "KerriganPower10", MinI(libSwaC_gv_zS_KerriganActualLevel, 10));
    AchievementTermQuantitySet(1, "KerriganPower20", MinI(libSwaC_gv_zS_KerriganActualLevel, 20));
    AchievementTermQuantitySet(1, "KerriganPower30", MinI(libSwaC_gv_zS_KerriganActualLevel, 30));
    AchievementTermQuantitySet(1, "KerriganPower40", MinI(libSwaC_gv_zS_KerriganActualLevel, 40));
    AchievementTermQuantitySet(1, "KerriganPower50", MinI(libSwaC_gv_zS_KerriganActualLevel, 50));

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12290

    AchievementTermQuantitySet(1, "KerriganPower20", MinI(libSwaC_gv_zS_KerriganActualLevel, 20));
    AchievementTermQuantitySet(1, "KerriganPower30", MinI(libSwaC_gv_zS_KerriganActualLevel, 30));
    AchievementTermQuantitySet(1, "KerriganPower40", MinI(libSwaC_gv_zS_KerriganActualLevel, 40));
    AchievementTermQuantitySet(1, "KerriganPower50", MinI(libSwaC_gv_zS_KerriganActualLevel, 50));
    AchievementTermQuantitySet(1, "KerriganPower60", MinI(libSwaC_gv_zS_KerriganActualLevel, 60));

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12291

    AchievementTermQuantitySet(1, "KerriganPower30", MinI(libSwaC_gv_zS_KerriganActualLevel, 30));
    AchievementTermQuantitySet(1, "KerriganPower40", MinI(libSwaC_gv_zS_KerriganActualLevel, 40));
    AchievementTermQuantitySet(1, "KerriganPower50", MinI(libSwaC_gv_zS_KerriganActualLevel, 50));
    AchievementTermQuantitySet(1, "KerriganPower60", MinI(libSwaC_gv_zS_KerriganActualLevel, 60));
    AchievementTermQuantitySet(1, "KerriganPower70", MinI(libSwaC_gv_zS_KerriganActualLevel, 70));

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12292

    AchievementTermQuantitySet(1, "KerriganPower40", MinI(libSwaC_gv_zS_KerriganActualLevel, 40));
    AchievementTermQuantitySet(1, "KerriganPower50", MinI(libSwaC_gv_zS_KerriganActualLevel, 50));
    AchievementTermQuantitySet(1, "KerriganPower60", MinI(libSwaC_gv_zS_KerriganActualLevel, 60));
    AchievementTermQuantitySet(1, "KerriganPower70", MinI(libSwaC_gv_zS_KerriganActualLevel, 70));
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12293

    AchievementTermQuantitySet(1, "KerriganPower50", MinI(libSwaC_gv_zS_KerriganActualLevel, 50));
    AchievementTermQuantitySet(1, "KerriganPower60", MinI(libSwaC_gv_zS_KerriganActualLevel, 60));
    AchievementTermQuantitySet(1, "KerriganPower70", MinI(libSwaC_gv_zS_KerriganActualLevel, 70));
}

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:904

        if ((TimerGetRemaining(lv_spawnTimer) == 0.0) && (UnitIsAlive(lv_nydusWorm) == true)) {
            if ((UnitGroupCount(lv_zerglingGroup, c_unitCountAlive) < lv_zerglingCap)) {
                UnitCargoCreate(lv_nydusWorm, "Zergling", MinI((lv_zerglingCap - UnitGroupCount(lv_zerglingGroup, c_unitCountAlive)), 3));
                UnitGroupAddUnitGroup(lv_zerglingGroup, UnitCargoLastCreatedGroup());
                UnitGroupAddUnitGroup(lv_attackGroup, UnitCargoLastCreatedGroup());

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2mapMapScript.galaxy:904

        if ((TimerGetRemaining(lv_spawnTimer) == 0.0) && (UnitIsAlive(lv_nydusWorm) == true)) {
            if ((UnitGroupCount(lv_zerglingGroup, c_unitCountAlive) < lv_zerglingCap)) {
                UnitCargoCreate(lv_nydusWorm, "Zergling", MinI((lv_zerglingCap - UnitGroupCount(lv_zerglingGroup, c_unitCountAlive)), 3));
                UnitGroupAddUnitGroup(lv_zerglingGroup, UnitCargoLastCreatedGroup());
                UnitGroupAddUnitGroup(lv_attackGroup, UnitCargoLastCreatedGroup());

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:362

    }

    lv_xP = libCore_gf_GetTotalXPForLevel(MinI(gv_heroMaxLevel_C, gv_heroCurrentLevel));
    lv_itPlayer = 1;
    for ( ; ( (auto80F76B38_ai >= 0 && lv_itPlayer <= auto80F76B38_ae) || (auto80F76B38_ai < 0 && lv_itPlayer >= auto80F76B38_ae) ) ; lv_itPlayer += auto80F76B38_ai ) {

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:413

    }

    lv_xP = libCore_gf_GetTotalXPForLevel(MinI(gv_heroMaxLevel_C, gv_heroCurrentLevel));
    Wait(0.125, c_timeGame);
    if ((gv_allyHeroLoaded == false)) {

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:456

    }

    lv_xP = libCore_gf_GetTotalXPForLevel(MinI(gv_heroMaxLevel_C, gv_heroCurrentLevel));
    Wait(0.125, c_timeGame);
    if ((gv_enemyHeroLoaded == false)) {

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:673

    // Variable Initialization
    lv_currentLevel = UnitXPGetCurrentLevel(libGame_gv_players[gv_pLAYER_TryMe_C].lv_heroUnit, null);
    lv_realLevel = MaxI(1, MinI(30, lp_level));
    lv_defaultIndex = 1;

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:362

    }

    lv_xP = libCore_gf_GetTotalXPForLevel(MinI(gv_heroMaxLevel_C, gv_heroCurrentLevel));
    lv_itPlayer = 1;
    for ( ; ( (auto80F76B38_ai >= 0 && lv_itPlayer <= auto80F76B38_ae) || (auto80F76B38_ai < 0 && lv_itPlayer >= auto80F76B38_ae) ) ; lv_itPlayer += auto80F76B38_ai ) {

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:413

    }

    lv_xP = libCore_gf_GetTotalXPForLevel(MinI(gv_heroMaxLevel_C, gv_heroCurrentLevel));
    Wait(0.125, c_timeGame);
    if ((gv_allyHeroLoaded == false)) {

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:456

    }

    lv_xP = libCore_gf_GetTotalXPForLevel(MinI(gv_heroMaxLevel_C, gv_heroCurrentLevel));
    Wait(0.125, c_timeGame);
    if ((gv_enemyHeroLoaded == false)) {

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:673

    // Variable Initialization
    lv_currentLevel = UnitXPGetCurrentLevel(libGame_gv_players[gv_pLAYER_TryMe_C].lv_heroUnit, null);
    lv_realLevel = MaxI(1, MinI(30, lp_level));
    lv_defaultIndex = 1;

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:329

        PlayerGroupRemove(lv_indexPool, lv_mechanicIndexes[lv_itIndex]);
    }
    auto60B62817_ae = MinI(libAREN_gv_aRM_MechanicsCountToPick_C, libAREN_gv_aRM_MechanicsCount);
    lv_itIndex = 1;
    for ( ; ( (auto60B62817_ai >= 0 && lv_itIndex <= auto60B62817_ae) || (auto60B62817_ai < 0 && lv_itIndex >= auto60B62817_ae) ) ; lv_itIndex += auto60B62817_ai ) {

mods/heroesbrawlmods/arenamodemods/gardenarena.stormmodbase.stormdata/LibAMGT.galaxy:645

    if ((UnitIsAlive(lp_bossIndex) == true)) {
        lv_dropIndex = ((libAMGT_gv_aRMGardenSeedsMinionStartHPPercent_C+FixedToInt(libAMGT_gv_aRMGardenSeedsMinionPerHPPercent_C)-1-FixedToInt(lv_percent))/FixedToInt(libAMGT_gv_aRMGardenSeedsMinionPerHPPercent_C));
        lv_dropIndex = MinI(lv_dropIndex, lv_dropIndexMax);
    }
    else {

mods/heroesbrawlmods/arenamodemods/gardenarena.stormmodbase.stormdata/LibAMGT.galaxy:831

    if ((UnitIsAlive(lp_bossIndex) == true)) {
        lv_dropIndex = ((libAMGT_gv_aRMGardenSeedsTerrorStartHPPercent_C+FixedToInt(libAMGT_gv_aRMGardenSeedsTerrorPerHPPercent_C)-1-FixedToInt(lv_percent))/FixedToInt(libAMGT_gv_aRMGardenSeedsTerrorPerHPPercent_C));
        lv_dropIndex = MinI(lv_dropIndex, lv_dropIndexMax);
    }
    else {

mods/heroesbrawlmods/arenamodemods/punisherarena.stormmodbase.stormdata/LibAMPU.galaxy:250

    // Automatic Variable Declarations
    // Implementation
    libAMPU_gv_aRMPunisherTeamScore[lp_team] = MaxI(MinI(lp_score, libAMPU_gv_aRMPunisherSkullRequired_C), 0);
    libAMPU_gf_MapMechanicsGardenOfTerrorSetSeedCountForTeam(lp_team, libAMPU_gv_aRMPunisherTeamScore[lp_team]);
    if ((libAMPU_gv_aRMPunisherTeamScore[lp_team] >= libAMPU_gv_aRMPunisherSkullRequired_C)) {

mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmodbase.stormdata/LibMDoE.galaxy:1672

    // Automatic Variable Declarations
    // Implementation
    return MinI(FixedToInt((libAtDe_gv_attackDefend.lv_score[lp_itTeam] + 1)), 5);
}

mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmodbase.stormdata/LibMDoE.galaxy:2810

    }
    lv_handInTeamEnemy = libGame_gf_EnemyTeam(lv_handInTeam);
    lv_GoldHandedIn = MinI(libMDoE_gf_DoESGetCannonballCountOnHero(lv_handInPlayer, lv_handInHeroUnit), (libMDoE_gv_mDoE_CannonballTurnInCost[lv_handInTeam] - libMDoE_gv_mDoE_CannonballTurnedIn[lv_handInTeam]));
    if ((libGame_gv_players[lv_handInPlayer].lv_activeVehicle == lv_handInHeroUnit)) {
        UnitBehaviorRemove(libGame_gv_players[lv_handInPlayer].lv_heroUnit, "MapMechanicStack", lv_GoldHandedIn);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:1634

    }
    else {
        libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagersCount = MinI(libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagersCount, libGame_gv_deathRecap_MaxMaxDamagers_C);
    }
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:1663

            libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lp_maxDamagerIndex].lv_maxDamageAbils[lv_itMaxDamagerAbilndex].lv_amount += lp_effectAmount;
            libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lp_maxDamagerIndex].lv_maxDamageAbilCount += 1;
            libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lp_maxDamagerIndex].lv_maxDamageAbilCount = MinI(libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lp_maxDamagerIndex].lv_maxDamageAbilCount, libGame_gv_deathRecap_MaxMaxDamageAbils_C);
            break;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:8898

    }
    else {
        libGame_gv_spawnedMinionFirstWaypointIndex = MinI(lv_closestIndex, lv_secondaryIndex);
        if ((libCore_gv_mAPUsesCirclingAI == false)) {
            if ((libGame_gv_spawnedMinionFirstWaypointIndex <= 1)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:11106

    // Implementation
    lv_currentDefenderScalingTicks = libMapM_gv_jungleCreepCamps[lp_camp].lv_stateCurrentDefenderScalingTicks;
    lv_newDefenderScalingTicks = MinI(lp_scalingTicks, libMapM_gv_jungleCreepCamps[lp_camp].lv_defenderNumberOfRanks);
    lv_newMercScalingTicks = MinI(lp_scalingTicks, libMapM_gv_jungleCreepCamps[lp_camp].lv_mercNumberOfRanks);
    lv_campDefenderType = (libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampDefenderType);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:11107

    lv_currentDefenderScalingTicks = libMapM_gv_jungleCreepCamps[lp_camp].lv_stateCurrentDefenderScalingTicks;
    lv_newDefenderScalingTicks = MinI(lp_scalingTicks, libMapM_gv_jungleCreepCamps[lp_camp].lv_defenderNumberOfRanks);
    lv_newMercScalingTicks = MinI(lp_scalingTicks, libMapM_gv_jungleCreepCamps[lp_camp].lv_mercNumberOfRanks);
    lv_campDefenderType = (libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampDefenderType);
    autoC1B55DFB_ae = libAIAI_gf_DefenderUnitCount(libMapM_gv_jungleCreepCamps[lp_camp].lv_aIDefenderAIIndex);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:17947

        lv_dummyEffect = UserDataGetGameLink(libGame_gv_wheelCmdUserType, lv_instance, "WheelDiffEffect", 1);
        lv_maxPingIndex = MaxI(lv_maxPingIndex, lv_pingIndex);
        lv_minPingIndex = MinI(lv_minPingIndex, lv_pingIndex);
        lv_arrayIndex = (lv_pingIndex-libGame_gv_wheelPingOffsetIndex);
        libGame_gv_wheelPingMapping[lv_arrayIndex].lv_action = (lv_instance);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:201

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[2] = "MercSiegeTrooperLaner";
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "MercSiegeTrooperLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSiegeTrooperDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSiegeTrooperLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercSiegeTrooperDefender", false, StringExternal("Param/Value/lib_MapM_7D17941C"), StringExternal("Param/Value/lib_MapM_6D78AC8F"), StringExternal("Param/Value/lib_MapM_BE0737A7"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:202

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "MercSiegeTrooperLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSiegeTrooperDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSiegeTrooperLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercSiegeTrooperDefender", false, StringExternal("Param/Value/lib_MapM_7D17941C"), StringExternal("Param/Value/lib_MapM_6D78AC8F"), StringExternal("Param/Value/lib_MapM_BE0737A7"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));
    libUIUI_gf_PingSetHumanAISourceHeroVOForPingTarget(libUIUI_gf_PingLastCreatedPingTarget(), libCore_ge_HeroVOEvents_PingAttackMercCamp, libCore_ge_HeroVOEvents_AIMercCapture);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:233

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfMinionsSpawned = 1;
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[1] = "MercSummonerLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderMinionScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:234

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[1] = "MercSummonerLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderMinionScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercSummonerDefender", false, StringExternal("Param/Value/lib_MapM_AD640F18"), StringExternal("Param/Value/lib_MapM_B0611E4E"), StringExternal("Param/Value/lib_MapM_9C3B9F3A"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:235

    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerDefenderMinionScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercSummonerLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercSummonerDefender", false, StringExternal("Param/Value/lib_MapM_AD640F18"), StringExternal("Param/Value/lib_MapM_B0611E4E"), StringExternal("Param/Value/lib_MapM_9C3B9F3A"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));
    libUIUI_gf_PingSetHumanAISourceHeroVOForPingTarget(libUIUI_gf_PingLastCreatedPingTarget(), libCore_ge_HeroVOEvents_PingAttackMercCamp, libCore_ge_HeroVOEvents_AIMercCapture);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:270

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[1] = "TerranHellbat";
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[2] = "TerranHellbat";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("TerranHellbatDefender", false, StringExternal("Param/Value/lib_MapM_24DBA175"), StringExternal("Param/Value/lib_MapM_566B7407"), StringExternal("Param/Value/lib_MapM_FA057BB0"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:271

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[2] = "TerranHellbat";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("TerranHellbatDefender", false, StringExternal("Param/Value/lib_MapM_24DBA175"), StringExternal("Param/Value/lib_MapM_566B7407"), StringExternal("Param/Value/lib_MapM_FA057BB0"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));
    libUIUI_gf_PingSetHumanAISourceHeroVOForPingTarget(libUIUI_gf_PingLastCreatedPingTarget(), libCore_ge_HeroVOEvents_PingAttackMercCamp, libCore_ge_HeroVOEvents_AIMercCapture);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:301

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[2] = "MercGoblinSapperLaner";
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "MercGoblinSapperLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercGoblinSapperDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercGoblinSapperLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercGoblinSapperDefender", false, StringExternal("Param/Value/lib_MapM_8D86B383"), StringExternal("Param/Value/lib_MapM_5B78A3A7"), StringExternal("Param/Value/lib_MapM_D78D61EB"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:302

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "MercGoblinSapperLaner";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercGoblinSapperDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "MercGoblinSapperLanerScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("MercGoblinSapperDefender", false, StringExternal("Param/Value/lib_MapM_8D86B383"), StringExternal("Param/Value/lib_MapM_5B78A3A7"), StringExternal("Param/Value/lib_MapM_D78D61EB"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));
    libUIUI_gf_PingCreateNewPingTarget("MercGoblinSapperLaner", false, lp_mercName, StringExternal("Param/Value/lib_MapM_FA01C50C"), StringExternal("Param/Value/lib_MapM_E7D0A0CE"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:317

    // Implementation
    lv_defenderTypeIndex = (lp_defenderType);
    libMapM_gv_dataJungleCampDefenderData[lv_defenderTypeIndex].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, lp_scalingBehavior, "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:1752

                }
                else {
                    lv_newTokenCount = MinI((lv_tokensToAdd + lv_currentTokenCount), lv_tokenHardCap);
                    TextExpressionSetToken("Param/Expression/lib_Sprt_3D323D11", "B", IntToText(lv_tokensToAdd));
                    TextExpressionSetToken("Param/Expression/lib_Sprt_3D323D11", "A", StringToText((lv_tokenBehavior)));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:8103

    TextExpressionSetToken("Param/Expression/lib_Sprt_0B245A95", "A", TextTimeFormat(StringToText("<min2/>:<sec2/>"), FixedToInt((lv_newTime * 60.0))));
    UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, TextExpressionAssemble("Param/Expression/lib_Sprt_0B245A95"));
    lv_newLevel = MinI(30, StringToInt(StringWord(EventChatMessage(false), 3)));
    if ((lv_newLevel > 0)) {
        lv_itPlayer = 1;

mods/heroesmapmods/battlegroundmapmods/alteracpass.stormmodbase.stormdata/LibMMAP.galaxy:242

    // Automatic Variable Declarations
    // Variable Initialization
    lv_gameLengthSubtraction = MinI((((FixedToInt(TimerGetElapsed(libGame_gv_gameTimer))/60)*2)), 60);
    lv_eventRespawnDuration = RandomInt((libMMAP_gv_eventRespawnDurationMin_C - lv_gameLengthSubtraction), (libMMAP_gv_eventRespawnDurationMax_C - lv_gameLengthSubtraction));

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:1473

    lv_collectingPlayer = EventPlayerEffectUsedUnitOwner(c_effectPlayerTarget);
    lv_collectingTeam = libGame_gf_TeamNumberOfPlayer(lv_collectingPlayer);
    lv_newDoubloonCount = MinI((UnitBehaviorCount(lv_collectingUnit, "MapMechanicStack") + 1), 100);

    // Conditions

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:1548

    }

    lv_cannonballsHandedIn = MinI(libBBAY_gf_MMBBCannonballsHeroCannonballsCount(lv_handInPlayer, lv_handInHeroUnit), (libBBAY_gf_MMBBCannonballsPirateShipCost(lv_handInTeam) - libBBAY_gv_mMBBCannonballsBallsSubmitted[lv_handInTeam]));
    libGame_gf_SendMapSpecificAwardEvent(lv_handInPlayer, lv_cannonballsHandedIn, true);
    libBBAY_gv_mMBBDoubloonsTurnedIn[lv_handInPlayer] += lv_cannonballsHandedIn;

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:519

    if ((UnitIsAlive(libMHtM_gv_mMUnderworldBoss) == true)) {
        lv_dropIndex = ((libMHtM_gv_mMUnderworldDropSkullsBossStartHPPercent_C+FixedToInt(libMHtM_gv_mMUnderworldDropSkullsBossPerHPPercent_C)-1-FixedToInt(lv_percent))/FixedToInt(libMHtM_gv_mMUnderworldDropSkullsBossPerHPPercent_C));
        lv_dropIndex = MinI(lv_dropIndex, lv_dropIndexMax);
    }
    else {

mods/heroesmapmods/battlegroundmapmods/tombofthespiderqueen.stormmodbase.stormdata/LibMSOC.galaxy:1818

    else {
    }
    lv_count = MinI(lv_count, (100 - libMSOC_gf_MMTombSpiderQueenGetGemsHeldforUnit(lv_collectingUnit)));
    libGame_gf_SendEventMapTombSpiderQueenSoulCollected(lv_collectingPlayer, lv_count);
    TextExpressionSetToken("Param/Expression/lib_MSOC_E1422753", "A", IntToText(lv_count));

mods/heroesmapmods/battlegroundmapmods/tombofthespiderqueen.stormmodbase.stormdata/LibMSOC.galaxy:1975

    }

    lv_handinCount = MinI(lv_ownCount, (libMSOC_gv_mMTombSpiderQueenActivationAmountRequired[lv_channelingTeam] - libMSOC_gv_mMTombSpiderQueenSoulsTotal[lv_channelingTeam]));
    libMSOC_gv_mMTombSpiderQueenSoulsTotal[lv_channelingTeam] += lv_handinCount;
    UnitBehaviorRemove(lv_hero, "MapMechanicStack", lv_handinCount);

mods/heroesmapmods/battlegroundmapmods/tombofthespiderqueen.stormmodbase.stormdata/LibMSOC.galaxy:2031

    libMSOC_gv_mMTombSpiderQueenSoulsTotal[lv_channelingTeam] -= libMSOC_gv_mMTombSpiderQueenActivationAmountRequired[lv_channelingTeam];
    libMSOC_gv_mMTombSpiderQueenActivationAmountRequired[lv_channelingTeam] += libMSOC_gv_mMTombSpiderQueenActivationAmountIncrement_C;
    libMSOC_gv_mMTombSpiderQueenActivationAmountRequired[lv_channelingTeam] = MinI(libMSOC_gv_mMTombSpiderQueenActivationAmountRequired[lv_channelingTeam], libMSOC_gv_mMTombSpiderQueenActivationAmountCap_C);
    libMSOC_gf_MMTombSpiderQueenTransmissionSoulEatersSpawningQ(lv_channelingTeam);
    lv_itTeam = 1;

mods/heroesmapmods/battlegroundmapmods/warcraftdata.stormmodbase.stormdata/Lib7EB401DE.galaxy:78

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[2] = "TerranHellbat";
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "TerranHellbat";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("TerranHellbatDefender", false, StringExternal("Param/Value/lib_7EB401DE_BCB4AAF1"), StringExternal("Param/Value/lib_7EB401DE_98866DCA"), StringExternal("Param/Value/lib_7EB401DE_EA08FC76"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));

mods/heroesmapmods/battlegroundmapmods/warcraftdata.stormmodbase.stormdata/Lib7EB401DE.galaxy:79

    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_spawnedMinionUnitTypes[3] = "TerranHellbat";
    libMapM_gv_dataJungleCampDefenderData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatDefenderScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libMapM_gv_dataJungleCampMercData[lv_campTypeInt].lv_numberOfRanks = MinI((CatalogFieldValueCount(c_gameCatalogBehavior, "TerranHellbatScaling", "VeterancyLevelArray", c_playerAny) - 1), libCore_gv_dataScalingMaxScalingTicks);
    libUIUI_gf_PingCreateNewPingTarget("TerranHellbatDefender", false, StringExternal("Param/Value/lib_7EB401DE_BCB4AAF1"), StringExternal("Param/Value/lib_7EB401DE_98866DCA"), StringExternal("Param/Value/lib_7EB401DE_EA08FC76"), SoundLink("UI_Game_Ping_Attack", -1), SoundLink("UI_Game_Ping_Attack", -1));
    libUIUI_gf_PingSetHumanAISourceHeroVOForPingTarget(libUIUI_gf_PingLastCreatedPingTarget(), libCore_ge_HeroVOEvents_PingAttackMercCamp, libCore_ge_HeroVOEvents_AIMercCapture);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:4932

            lv_supply -= CatalogFieldValueGetAsInt(c_gameCatalogUnit, UnitGetType(autoF21BE722_var), "Food", lp_player);
        }
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, libCOMI_gv_cM_Fenix_ChampionNetworkUpgrades[lp_group], MinI((lv_supply * lv_stacksPerSupply), lv_maxCount));
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:6673


    // Implementation
    lv_artifactdifficultyindex = MinI(lp_artifactNumber, libCOMI_gv_cM_ZeratulProphecyArtifactFinalUniqueNumber);
    for ( ; ( (auto136FCBDF_ai >= 0 && lv_artifactdifficultyindex <= auto136FCBDF_ae) || (auto136FCBDF_ai < 0 && lv_artifactdifficultyindex >= auto136FCBDF_ae) ) ; lv_artifactdifficultyindex += auto136FCBDF_ai ) {
        if ((UserDataGetInt("CoopTechZeratulArtifactPlacement", lp_artifactData, "minDifficulty", lv_artifactdifficultyindex) <= lv_difficultylevel)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:22723


    if ((lv_troopercargosize != 0) && (lv_bunkerdepotcargocapacity != 0) && (lv_bunkerdepotcargomaxcount != 0)) {
        UnitCargoCreate(lv_bunkerdepot, "TrooperMengsk", MinI((lv_bunkerdepotcargocapacity / lv_troopercargosize), lv_bunkerdepotcargomaxcount));
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:814

    }
    lv_newSupply = (lv_victimSupply + lv_killerSupply);
    lv_tier = MinI(FixedToInt(lv_newSupply), 10);
    for ( ; ( (autoC1B89A6E_ai >= 0 && lv_tier <= autoC1B89A6E_ae) || (autoC1B89A6E_ai < 0 && lv_tier >= autoC1B89A6E_ae) ) ; lv_tier += autoC1B89A6E_ai ) {
        lv_tierEndpoint = 8;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1165

            libCOMI_gf_GivePlayerResources(PointWithOffset(UnitGetPosition(lp_orderedUnit), -0.4, 0.0), libCOMI_ge_CacheResourceType_Mineral, -10, null, null, lv_microPlayer);
            libCOMI_gf_GivePlayerResources(PointWithOffset(UnitGetPosition(lp_orderedUnit), 0.4, 0.0), libCOMI_ge_CacheResourceType_Vespene, -5, null, null, lv_microPlayer);
            libCOMU_gv_cT_StatOrderCostVespeneLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropVespene), 5);
            libCOMU_gv_cT_StatOrderCostMineralsLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropMinerals), 10);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1166

            libCOMI_gf_GivePlayerResources(PointWithOffset(UnitGetPosition(lp_orderedUnit), 0.4, 0.0), libCOMI_ge_CacheResourceType_Vespene, -5, null, null, lv_microPlayer);
            libCOMU_gv_cT_StatOrderCostVespeneLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropVespene), 5);
            libCOMU_gv_cT_StatOrderCostMineralsLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropMinerals), 10);
        }
        else {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1170

        else {
            libCOMI_gf_GivePlayerResources(UnitGetPosition(lp_orderedUnit), libCOMI_ge_CacheResourceType_Mineral, -10, null, null, lv_microPlayer);
            libCOMU_gv_cT_StatOrderCostMineralsLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropMinerals), 10);
        }
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1188


        if ((lv_useVespene == true)) {
            libCOMU_gv_cT_StatOrderCostMineralsLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropMinerals), MaxI(AbsI(FixedToInt(lv_orderCost)), 1));
            libCOMU_gv_cT_StatOrderCostVespeneLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropVespene), MaxI(AbsI(FixedToInt(lv_orderCost)), 1));
            libCOMI_gf_GivePlayerResources(PointWithOffset(UnitGetPosition(lp_orderedUnit), -0.36, 0.0), libCOMI_ge_CacheResourceType_Mineral, MinI(FixedToInt(lv_orderCost), -1), null, null, lv_microPlayer);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1189

        if ((lv_useVespene == true)) {
            libCOMU_gv_cT_StatOrderCostMineralsLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropMinerals), MaxI(AbsI(FixedToInt(lv_orderCost)), 1));
            libCOMU_gv_cT_StatOrderCostVespeneLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropVespene), MaxI(AbsI(FixedToInt(lv_orderCost)), 1));
            libCOMI_gf_GivePlayerResources(PointWithOffset(UnitGetPosition(lp_orderedUnit), -0.36, 0.0), libCOMI_ge_CacheResourceType_Mineral, MinI(FixedToInt(lv_orderCost), -1), null, null, lv_microPlayer);
            libCOMI_gf_GivePlayerResources(PointWithOffset(UnitGetPosition(lp_orderedUnit), 0.36, 0.0), libCOMI_ge_CacheResourceType_Vespene, MinI(FixedToInt(lv_orderCost), -1), null, null, lv_microPlayer);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1190

            libCOMU_gv_cT_StatOrderCostMineralsLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropMinerals), MaxI(AbsI(FixedToInt(lv_orderCost)), 1));
            libCOMU_gv_cT_StatOrderCostVespeneLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropVespene), MaxI(AbsI(FixedToInt(lv_orderCost)), 1));
            libCOMI_gf_GivePlayerResources(PointWithOffset(UnitGetPosition(lp_orderedUnit), -0.36, 0.0), libCOMI_ge_CacheResourceType_Mineral, MinI(FixedToInt(lv_orderCost), -1), null, null, lv_microPlayer);
            libCOMI_gf_GivePlayerResources(PointWithOffset(UnitGetPosition(lp_orderedUnit), 0.36, 0.0), libCOMI_ge_CacheResourceType_Vespene, MinI(FixedToInt(lv_orderCost), -1), null, null, lv_microPlayer);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1191

            libCOMU_gv_cT_StatOrderCostVespeneLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropVespene), MaxI(AbsI(FixedToInt(lv_orderCost)), 1));
            libCOMI_gf_GivePlayerResources(PointWithOffset(UnitGetPosition(lp_orderedUnit), -0.36, 0.0), libCOMI_ge_CacheResourceType_Mineral, MinI(FixedToInt(lv_orderCost), -1), null, null, lv_microPlayer);
            libCOMI_gf_GivePlayerResources(PointWithOffset(UnitGetPosition(lp_orderedUnit), 0.36, 0.0), libCOMI_ge_CacheResourceType_Vespene, MinI(FixedToInt(lv_orderCost), -1), null, null, lv_microPlayer);
        }
        else {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1195

        else {
            lv_orderCost *= 2.0;
            libCOMI_gf_GivePlayerResources(UnitGetPosition(lp_orderedUnit), libCOMI_ge_CacheResourceType_Mineral, MinI(FixedToInt(lv_orderCost), -1), null, null, lv_microPlayer);
            libCOMU_gv_cT_StatOrderCostMineralsLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropMinerals), MaxI(AbsI(FixedToInt(lv_orderCost)), 1));
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1196

            lv_orderCost *= 2.0;
            libCOMI_gf_GivePlayerResources(UnitGetPosition(lp_orderedUnit), libCOMI_ge_CacheResourceType_Mineral, MinI(FixedToInt(lv_orderCost), -1), null, null, lv_microPlayer);
            libCOMU_gv_cT_StatOrderCostMineralsLost[lv_microPlayer] += MinI(PlayerGetPropertyInt(lv_microPlayer, c_playerPropMinerals), MaxI(AbsI(FixedToInt(lv_orderCost)), 1));
        }
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:1320


    // Implementation
    lv_maxLevel = MinI(lp_level, libCOOC_gv_cCC_PLAYERLEVELMAX);
    auto20668AF4_ae = lv_maxLevel;
    lv_levelIndex = 1;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:1997

    // Automatic Variable Declarations
    // Implementation
    libCOOC_gv_cC_PlayerLevel[lp_player][libCOOC_gf_CC_CommanderInternalIndex(lp_commander)] = MinI(lp_level, libCOOC_gv_cCC_PLAYERLEVELMAX);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:7194

        if ((EventDialogControl() == libCOUI_gv_cU_MasteryPlusButtons[lv_itemIndex])) {
            if ((libCOUI_gv_cU_MasteryShiftPressed[EventPlayer()] == true)) {
                libCOUI_gv_cU_MasteryUpgradePointsSpent[lv_itemIndex][EventPlayer()] += MinI(libCOUI_gv_cU_MasteryCategoryPointsLeft[libCOOC_gf_CC_PlayerMasteryCategory(libCOUI_gv_cU_MasteryUpgrades[lv_itemIndex][EventPlayer()])][EventPlayer()], 10);
                if ((libCOUI_gv_cU_MasteryUpgradePointsSpent[lv_itemIndex][EventPlayer()] > libCOOC_gv_cCC_MASTERY_UPGRADE_MAX_LEVEL)) {
                    libCOUI_gv_cU_MasteryUpgradePointsSpent[lv_itemIndex][EventPlayer()] = libCOOC_gv_cCC_MASTERY_UPGRADE_MAX_LEVEL;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:8137

    DialogControlSetVisible(lv_damageBar, PlayerGroupAll(), false);
    DialogControlSetVisible(lv_damageBar, lv_heroGroup, true);
    DialogControlSetSize(lv_damageBar, PlayerGroupAll(), MaxI(MinI(lv_damageBarWidth, 244), 1), lv_damageBarHeight);
    Wait(1.0, c_timeReal);
    DialogControlFadeTransparency(lv_damageBar, lv_heroGroup, 1.0, 100.0);

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicTactical.galaxy:99

    // Automatic Variable Declarations
    // Variable Initialization
    lv_index = MinI((CatalogFieldValueCount(c_gameCatalogAbil, lp_abil, "Range", lp_owner)-1), lp_level);
    lv_range = libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogAbil, lp_abil, "Range[" + IntToString(lv_index) + "]", lp_owner);