From 805b79bef7a5d688aa2a054b0e0e7387f07b0f6c Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 6 Jan 2017 01:32:45 +0100 Subject: [PATCH] balance updates and don't count teleporting bc as dead --- src/(attributes) | Bin 928 -> 928 bytes src/DocumentHeader | Bin 2208 -> 2208 bytes src/MapScript.galaxy | 216 ++++-------- src/Triggers | 812 +++++++++---------------------------------- src/Triggers.version | Bin 44 -> 44 bytes 5 files changed, 218 insertions(+), 810 deletions(-) diff --git a/src/(attributes) b/src/(attributes) index 800621596a50c3081703b771638b3bc876bc2b54..16dca1e49fea0e2b515b5b9bacd5a2b48e3b9a31 100644 GIT binary patch delta 127 zcmV-_0D%9X2cQR#d=RgxsXz4Nyvkc%pCvWN>+z9{C~UV)K}Cpq|W5SX17(*og*Dm5GczElX$ delta 45 tcmZ1=xIj?F!^k<9gMop;D42nPk(r5!cPRq{2!jCUY!hn`-l$T;0RXW`2oC@N diff --git a/src/MapScript.galaxy b/src/MapScript.galaxy index 4d2a909..a7ac331 100644 --- a/src/MapScript.galaxy +++ b/src/MapScript.galaxy @@ -464,56 +464,11 @@ bool auto_gf_Energy_TriggerFunc (bool testConds, bool runActions) { UnitSetPropertyFixed(UnitGroupLoopCurrent(), c_unitPropEnergyPercent, 100.0); } UnitGroupLoopEnd(); - UnitGroupLoopBegin(UnitGroup("Corruptor", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); - for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { - libNtve_gf_UnitAbilityRemoveCooldown(UnitGroupLoopCurrent(), "Corruption", "Abil/Corruption"); - } - UnitGroupLoopEnd(); - UnitGroupLoopBegin(UnitGroup("Stalker", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); - for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { - libNtve_gf_UnitAbilityRemoveCooldown(UnitGroupLoopCurrent(), "Blink", "Blink"); - } - UnitGroupLoopEnd(); - UnitGroupLoopBegin(UnitGroup("VoidRay", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); - for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { - libNtve_gf_UnitAbilityRemoveCooldown(UnitGroupLoopCurrent(), "VoidRaySwarmDamageBoost", "Abil/VoidRaySwarmDamageBoost"); - } - UnitGroupLoopEnd(); - UnitGroupLoopBegin(UnitGroup("Zealot", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); - for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { - UnitClearCooldowns(UnitGroupLoopCurrent(), true); - } - UnitGroupLoopEnd(); - UnitGroupLoopBegin(UnitGroup("SwarmHostBurrowedMP", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); - for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { - libNtve_gf_UnitAbilityRemoveCooldown(UnitGroupLoopCurrent(), "SpawnLocustsTargeted", "Abil/SpawnLocustsTargeted"); - } - UnitGroupLoopEnd(); - UnitGroupLoopBegin(UnitGroup("SwarmHostMP", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); - for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { - libNtve_gf_UnitAbilityRemoveCooldown(UnitGroupLoopCurrent(), "SpawnLocustsTargeted", "Abil/SpawnLocustsTargeted"); - } - UnitGroupLoopEnd(); - UnitGroupLoopBegin(UnitGroup("Medivac", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); - for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { - libNtve_gf_UnitAbilityRemoveCooldown(UnitGroupLoopCurrent(), "MedivacSpeedBoost", "Abil/MedivacSpeedBoost"); - } - UnitGroupLoopEnd(); - UnitGroupLoopBegin(UnitGroup("Oracle", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); + UnitGroupLoopBegin(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { UnitClearCooldowns(UnitGroupLoopCurrent(), true); } UnitGroupLoopEnd(); - UnitGroupLoopBegin(UnitGroup("HighTemplar", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); - for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { - libNtve_gf_UnitAbilityRemoveCooldown(UnitGroupLoopCurrent(), "PsiStorm", "Abil/PsiStorm"); - } - UnitGroupLoopEnd(); - UnitGroupLoopBegin(UnitGroup("Disruptor", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); - for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { - libNtve_gf_UnitAbilityRemoveCooldown(UnitGroupLoopCurrent(), "PurificationNovaTargetted", "Abil/PurificationNovaTargetted"); - } - UnitGroupLoopEnd(); UnitGroupLoopBegin(UnitGroup("Carrier", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { lv_interceptorcount = UnitMagazineCount(UnitGroupLoopCurrent(), "CarrierHangar"); @@ -535,8 +490,7 @@ void gf_ResetUnits () { if ((gv_pause == true)) { TriggerExecute(gt_Pause, false, false); } - else { - } + gf_LoadState(0); UnitControlGroupAddUnits(1, 1, UnitGroup(null, 9, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); UnitControlGroupAddUnits(gv_player2, 2, UnitGroup(null, 10, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); @@ -547,8 +501,7 @@ void gf_ResetUnits () { } UnitGroupLoopEnd(); } - else { - } + UnitGroupLoopBegin(UnitGroup("Carrier", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)); for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) { UnitMagazineArm(UnitGroupLoopCurrent(), AbilityCommand("CarrierHangar", 0), 4); @@ -559,8 +512,7 @@ void gf_ResetUnits () { if ((gv_energy == true)) { gf_Energy(); } - else { - } + gf_MoveCameras(); TimerRestart(gv_timer); } @@ -581,8 +533,7 @@ void gf_Revealers () { if ((gv_revealers == false)) { gf_RevealersOff(); } - else { - } + } void gf_RevealersOn () { @@ -756,8 +707,7 @@ void gf_DeleteAll () { } } } - else { - } + UnitRemove(UnitGroupLoopCurrent()); } UnitGroupLoopEnd(); @@ -817,8 +767,7 @@ void gf_ShowhideOptionsAlliances () { if ((DialogIsVisible(gv_dialogCreator, 1) == true)) { gf_ShowAllDialogs(); } - else { - } + } else { if ((DialogIsVisible(gv_dialogCreator, 1) == true)) { @@ -946,8 +895,7 @@ bool gf_UnitDialogActions () { gf_CreateUnit(); return true; } - else { - } + } } auto9F84AB12_ae = 1; @@ -962,8 +910,7 @@ bool gf_UnitDialogActions () { gf_Races(); return true; } - else { - } + } } auto66A32A41_ae = 1; @@ -978,8 +925,7 @@ bool gf_UnitDialogActions () { gf_CreateUpgrade(); return true; } - else { - } + } } return false; @@ -1003,8 +949,7 @@ bool gf_SubmenusActions () { gf_TerrainChanger(); return true; } - else { - } + } } else if ((DialogIsVisible(gv_dialogFilenameSubmenu, 1) == true)) { @@ -1020,8 +965,7 @@ bool gf_SubmenusActions () { gf_ButtonSave(gv_iSlot); return true; } - else { - } + } } else if ((DialogIsVisible(gv_dialogLoadSubmenu, 1) == true) && gf_PlayerhasPermission()) { @@ -1033,8 +977,7 @@ bool gf_SubmenusActions () { gf_ButtonLoad(); return true; } - else { - } + } } else if ((DialogIsVisible(gv_dialogOptions, 1) == true)) { @@ -1305,13 +1248,14 @@ void gf_DatabaseResearch () { gf_GetResearchDataManual("WarpGateResearch", "Assets\\Textures\\btn-building-protoss-warpgate.dds", "ResearchWarpGate", 0, "CyberneticsCoreResearch", "6"); gf_GetResearchDataManual("Charge", "Assets\\Textures\\btn-ability-protoss-charge-color.dds", "ResearchCharge", 0, "TwilightCouncilResearch", "0"); gf_GetResearchDataManual("BlinkTech", "Assets\\Textures\\btn-ability-protoss-blink-color.dds", "ResearchStalkerTeleport", 0, "TwilightCouncilResearch", "1"); - gf_GetResearchDataManual("AdeptPiercingAttack", "Assets\\Textures\\btn-ability-protoss-phasedisruptor.dds", "AdeptResearchPiercingUpgrade", 0, "TwilightCouncilResearch", "2"); + gf_GetResearchDataManual("AdeptPiercingAttack", "Assets\\Textures\\btn-upgrade-protoss-resonatingglaives.dds", "AdeptResearchPiercingUpgrade", 0, "TwilightCouncilResearch", "2"); gf_GetResearchDataManual("PsiStormTech", "Assets\\Textures\\btn-ability-protoss-psistorm-color.dds", "ResearchPsiStorm", 0, "TemplarArchivesResearch", "4"); gf_GetResearchDataManual("ObserverGraviticBooster", "Assets\\Textures\\btn-upgrade-protoss-graviticbooster.dds", "ResearchGraviticBooster", 0, "RoboticsBayResearch", "1"); gf_GetResearchDataManual("GraviticDrive", "Assets\\Textures\\btn-upgrade-protoss-graviticdrive.dds", "ResearchGraviticDrive", 0, "RoboticsBayResearch", "2"); gf_GetResearchDataManual("ExtendedThermalLance", "Assets\\Textures\\btn-upgrade-protoss-extendedthermallance.dds", "ResearchExtendedThermalLance", 0, "RoboticsBayResearch", "5"); gf_GetResearchDataManual("PhoenixRangeUpgrade", "Assets\\Textures\\btn-upgrade-protoss-phoenixrange.dds", "AnionPulseCrystals", 0, "FleetBeaconResearch", "2"); gf_GetResearchDataManual("CarrierLaunchSpeedUpgrade", "Assets\\Textures\\btn-upgrade-protoss-gravitoncatapult.dds", "ResearchInterceptorLaunchSpeedUpgrade", 0, "FleetBeaconResearch", "1"); + gf_GetResearchDataManual("DarkTemplarBlinkUpgrade", "Assets\\Textures\\btn-ability-protoss-stealth-blink.dds", "ResearchDarkTemplarBlink", 0, "DarkShrineResearch", "0"); gv_iUnit += 1; gf_GetResearchDataManual("TerranInfantryWeaponsLevel1", "Assets\\Textures\\btn-upgrade-terran-infantryweaponslevel1.dds", "TerranInfantryWeaponsLevel1", 1, "EngineeringBayResearch", "2"); gf_GetResearchDataManual("TerranInfantryWeaponsLevel2", "Assets\\Textures\\btn-upgrade-terran-infantryweaponslevel2.dds", "TerranInfantryWeaponsLevel2", 2, "EngineeringBayResearch", "3"); @@ -1337,15 +1281,13 @@ void gf_DatabaseResearch () { gf_GetResearchDataManual("TerranBuildingArmor", "Assets\\Textures\\btn-upgrade-terran-buildingarmor.dds", "UpgradeBuildingArmorLevel1", 0, "EngineeringBayResearch", "1"); gf_GetResearchDataManual("HighCapacityBarrels", "Assets\\Textures\\btn-upgrade-terran-infernalpreigniter.dds", "ResearchHighCapacityBarrels", 0, "FactoryTechLabResearch", "1"); gf_GetResearchDataManual("DrillClaws", "Assets\\Textures\\btn-upgrade-terran-researchdrillingclaws.dds", "ResearchDrillClaws", 0, "FactoryTechLabResearch", "4"); - gf_GetResearchDataManual("CycloneLockOnDamageUpgrade", "Assets\\Textures\\btn-upgrade-terran-magfieldaccelerator.dds", "CycloneResearchLockOnDamageUpgrade", 0, "FactoryTechLabResearch", "7"); - gf_GetResearchDataManual("MedivacIncreaseSpeedBoost", "Assets\\Textures\\btn-upgrade-terran-jotunboosters.dds", "ResearchHighCapacityFuelTanks", 0, "StarportTechLabResearch", "2"); - gf_GetResearchDataManual("RavenDamageUpgrade", "Assets\\Textures\\btn-techupgrade-terran-ripwavemissiles.dds", "ResearchExplosiveShrapnelShells", 0, "StarportTechLabResearch", "7"); + gf_GetResearchDataManual("MedivacIncreaseSpeedBoost", "Assets\\Textures\\btn-upgrade-terran-highcapacityfueltanks.dds", "ResearchHighCapacityFuelTanks", 0, "StarportTechLabResearch", "2"); + gf_GetResearchDataManual("RavenRecalibratedExplosives", "Assets\\Textures\\btn-upgrade-terran-recalibratedexplosives.dds", "ResearchRavenRecalibratedExplosives", 0, "StarportTechLabResearch", "15"); gf_GetResearchDataManual("RavenCorvidReactor", "Assets\\Textures\\btn-upgrade-terran-corvidreactor.dds", "ResearchRavenEnergyUpgrade", 0, "StarportTechLabResearch", "3"); gf_GetResearchDataManual("BansheeCloak", "Assets\\Textures\\btn-ability-terran-cloak-color.dds", "ResearchBansheeCloak", 0, "StarportTechLabResearch", "0"); - gf_GetResearchDataManual("BansheeSpeed", "Assets\\Textures\\btn-upgrade-terran-reapernitropacks.dds", "BansheeSpeed", 0, "StarportTechLabResearch", "9"); - gf_GetResearchDataManual("LiberatorAGRangeUpgrade", "Assets\\Textures\\btn-ability-terran-haleoflead.dds", "ResearchBallisticRange", 0, "StarportTechLabResearch", "10"); + gf_GetResearchDataManual("BansheeSpeed", "Assets\\Textures\\btn-upgrade-terran-hyperflightrotors.dds", "BansheeSpeed", 0, "StarportTechLabResearch", "9"); + gf_GetResearchDataManual("LiberatorAGRangeUpgrade", "Assets\\Textures\\btn-upgrade-terran-advanceballistics.dds", "ResearchBallisticRange", 0, "StarportTechLabResearch", "10"); gf_GetResearchDataManual("BattlecruiserEnableSpecializations", "Assets\\Textures\\btn-ability-terran-yamatogun-color.dds", "ResearchBattlecruiserSpecializations", 0, "FusionCoreResearch", "0"); - gf_GetResearchDataManual("BattlecruiserBehemothReactor", "Assets\\Textures\\btn-upgrade-terran-behemothreactor.dds", "ResearchBattlecruiserEnergyUpgrade", 0, "FusionCoreResearch", "1"); gv_iUnit += 1; gf_GetResearchDataManual("ZergMeleeWeaponsLevel1", "Assets\\Textures\\btn-upgrade-zerg-meleeattacks-level1.dds", "zergmeleeweapons1", 1, "evolutionchamberresearch", "0"); gf_GetResearchDataManual("ZergMeleeWeaponsLevel2", "Assets\\Textures\\btn-upgrade-zerg-meleeattacks-level2.dds", "zergmeleeweapons2", 2, "evolutionchamberresearch", "1"); @@ -1368,7 +1310,7 @@ void gf_DatabaseResearch () { gf_GetResearchDataManual("GlialReconstitution", "Assets\\Textures\\btn-upgrade-zerg-glialreconstitution.dds", "EvolveGlialRegeneration", 0, "RoachWarrenResearch", "1"); gf_GetResearchDataManual("TunnelingClaws", "Assets\\Textures\\btn-upgrade-zerg-tunnelingclaws.dds", "EvolveTunnelingClaws", 0, "RoachWarrenResearch", "2"); gf_GetResearchDataManual("CentrificalHooks", "Assets\\Textures\\btn-upgrade-zerg-centrifugalhooks.dds", "EvolveCentrificalHooks", 0, "BanelingNestResearch", "0"); - gf_GetResearchDataManual("hydraliskspeed", "Assets\\Textures\\btn-upgrade-zerg-groovedspines.dds", "hydraliskspeed", 0, "HydraliskDenResearch", "2"); + gf_GetResearchDataManual("EvolveMuscularAugments", "Assets\\Textures\\btn-upgrade-zerg-evolvemuscularaugments.dds", "EvolveMuscularAugments", 0, "HydraliskDenResearch", "1"); gf_GetResearchDataManual("overlordspeed", "Assets\\Textures\\btn-upgrade-zerg-pneumatizedcarapace.dds", "overlordspeed", 0, "LairResearch", "1"); gf_GetResearchDataManual("overlordtransport", "Assets\\Textures\\btn-upgrade-zerg-ventralsacs.dds", "EvolveVentralSacks", 0, "LairResearch", "2"); gf_GetResearchDataManual("InfestorEnergyUpgrade", "Assets\\Textures\\btn-upgrade-zerg-pathogenglands.dds", "EvolveInfestorEnergyUpgrade", 0, "InfestationPitResearch", "2"); @@ -1830,8 +1772,7 @@ void gf_Createbuttonsforunits () { gv_iUnit += 1; return ; } - else { - } + lv_x += gv_buttonWidth; } lv_y += gv_buttonHeight; @@ -1884,8 +1825,7 @@ void gf_Createbuttonsforresearch () { gv_iUnit += 1; return ; } - else { - } + lv_x += gv_buttonWidth; } lv_y += gv_buttonHeight; @@ -2262,8 +2202,7 @@ int gf_AddLeaderboardRow (string lp_inputUnitName) { gv_rowCount += 1; BoardSetRowCount(gv_leaderboard, gv_rowCount); } - else { - } + DataTableSetInt(true, lp_inputUnitName, gv_rowCount); return gv_rowCount; } @@ -2304,8 +2243,7 @@ bool auto_gf_AddLeaderboardIcon_TriggerFunc (bool testConds, bool runActions) { gv_iconFlag[lp_inputColumn][lp_inputRow] = true; return true; } - else { - } + } } else { @@ -2350,8 +2288,7 @@ void gf_SpecialUnitCost (string lp_inputUnitType, int lp_inputColumn, bool lp_de lv_mineralsmodifier *= -1; lv_vespenemodifer *= -1; } - else { - } + gv_totalMineral[lp_inputColumn] += lv_mineralsmodifier; gv_totalVespene[lp_inputColumn] += lv_vespenemodifer; } @@ -2388,32 +2325,28 @@ void gf_FadeButtons () { DialogControlFadeTransparency(gv_buttonOptionUpgrade[2], PlayerGroupActive(), 0.0, 75.0); DialogControlFadeTransparency(gv_buttonOptionUpgrade[3], PlayerGroupActive(), 0.0, 75.0); } - else { - } + if ((gv_allUpgrades == 1)) { DialogControlFadeTransparency(gv_buttonOptionUpgrade[0], PlayerGroupActive(), 0.0, 75.0); DialogControlFadeTransparency(gv_buttonOptionUpgrade[1], PlayerGroupActive(), 0.0, 0.0); DialogControlFadeTransparency(gv_buttonOptionUpgrade[2], PlayerGroupActive(), 0.0, 75.0); DialogControlFadeTransparency(gv_buttonOptionUpgrade[3], PlayerGroupActive(), 0.0, 75.0); } - else { - } + if ((gv_allUpgrades == 2)) { DialogControlFadeTransparency(gv_buttonOptionUpgrade[0], PlayerGroupActive(), 0.0, 75.0); DialogControlFadeTransparency(gv_buttonOptionUpgrade[1], PlayerGroupActive(), 0.0, 75.0); DialogControlFadeTransparency(gv_buttonOptionUpgrade[2], PlayerGroupActive(), 0.0, 0.0); DialogControlFadeTransparency(gv_buttonOptionUpgrade[3], PlayerGroupActive(), 0.0, 75.0); } - else { - } + if ((gv_allUpgrades == 3)) { DialogControlFadeTransparency(gv_buttonOptionUpgrade[0], PlayerGroupActive(), 0.0, 75.0); DialogControlFadeTransparency(gv_buttonOptionUpgrade[1], PlayerGroupActive(), 0.0, 75.0); DialogControlFadeTransparency(gv_buttonOptionUpgrade[2], PlayerGroupActive(), 0.0, 75.0); DialogControlFadeTransparency(gv_buttonOptionUpgrade[3], PlayerGroupActive(), 0.0, 0.0); } - else { - } + if ((gv_revealers == true)) { DialogControlFadeTransparency(gv_buttonOptionVision[0], PlayerGroupActive(), 0.0, 75.0); DialogControlFadeTransparency(gv_buttonOptionVision[1], PlayerGroupActive(), 0.0, 0.0); @@ -2690,8 +2623,7 @@ void gf_ButtonSave (int lp_inputslot) { UIClearMessages(PlayerGroupActive(), c_messageAreaSubtitle); return ; } - else { - } + if (gf_NoUnitsRed() && gf_NoUnitsBlue()) { UIDisplayMessage(PlayerGroupActive(), c_messageAreaSubtitle, (StringExternal("Param/Value/5A4862BF") + IntToText(lp_inputslot) + StringExternal("Param/Value/00A2CB4C"))); gf_HighlightButton(gv_buttonSave[lp_inputslot], false); @@ -2740,8 +2672,7 @@ void gf_SaveDescription () { if ((EventDialogControl() == gv_buttonOK)) { lv_string = libNtve_gf_DialogItemEditValue(gv_editBox, EventPlayer()); } - else { - } + libNtve_gf_SetDialogItemTooltip(gv_buttonSave[gv_iSlot], StringToText(lv_string), PlayerGroupActive()); libNtve_gf_SetDialogItemTooltip(gv_buttonLoad[gv_iSlot], StringToText(lv_string), PlayerGroupActive()); gf_HideSubmenus(); @@ -2899,8 +2830,7 @@ void gf_ButtonLoad () { } UnitGroupLoopEnd(); } - else { - } + Wait(1.0, c_timeGame); UIClearMessages(PlayerGroupActive(), c_messageAreaSubtitle); } @@ -2915,8 +2845,7 @@ void gf_LoadState (int lp_inputslot) { gf_UpgradeLvlResetAll(); gf_LoadUpgrades(gv_stateUpgrades[lp_inputslot]); } - else { - } + } void gf_LoadTerrain (int lp_inputterrain) { @@ -2925,8 +2854,7 @@ void gf_LoadTerrain (int lp_inputterrain) { if ((gv_iTerrain != gv_terrain) && (gv_iTerrain != 0)) { gf_TerrainChanger(); } - else { - } + } trigger auto_gf_LoadUnits_Trigger = null; @@ -3100,8 +3028,7 @@ void gf_InitializeBank () { gf_HighlightButton(gv_buttonLoad[lv_islot], true); gf_HighlightButton(gv_buttonSave[lv_islot], true); } - else { - } + } } @@ -3344,19 +3271,16 @@ void gf_UpgradeLvl () { gf_UpgradesOn(); gf_UpgradeLvlShowNext(); } - else { - } + if ((gv_allUpgrades >= 2) && (gv_upgradeLevel[gv_iUnit] == 2)) { gf_UpgradesOn(); gf_UpgradeLvlShowNext(); } - else { - } + if ((gv_allUpgrades >= 3) && (gv_upgradeLevel[gv_iUnit] == 3)) { gf_UpgradesOn(); } - else { - } + } } UIDisplayMessage(PlayerGroupActive(), c_messageAreaSubtitle, (StringExternal("Param/Value/F24EFF18") + IntToText(gv_allUpgrades) + StringExternal("Param/Value/10AE1931"))); @@ -3410,21 +3334,18 @@ void gf_UpgradeLvlResetAll () { gf_UpgradesOn(); gf_UpgradeLvlShowNext(); } - else { - } + if ((gv_upgradeLevel[gv_iUnit] == 2)) { gf_UpgradesOn(); gf_UpgradeLvlShowNext(); } - else { - } + if ((gv_upgradeLevel[gv_iUnit] == 3)) { gf_UpgradesOn(); gf_UpgradeLvlReset(); gf_UpgradeLvlShowNext(); } - else { - } + } } } @@ -3448,8 +3369,7 @@ void gf_AllAbilitiesOn () { if ((gv_upgradeLevel[gv_iUnit] == 0)) { gf_UpgradesOn(); } - else { - } + } } UIDisplayMessage(PlayerGroupActive(), c_messageAreaSubtitle, StringExternal("Param/Value/7A263E5C")); @@ -3474,8 +3394,7 @@ void gf_AllAbilitiesOff () { if ((gv_upgradeLevel[gv_iUnit] == 0)) { gf_UpgradesOff(); } - else { - } + } } UIDisplayMessage(PlayerGroupActive(), c_messageAreaSubtitle, StringExternal("Param/Value/FA7F6350")); @@ -3677,8 +3596,7 @@ bool gt_Start_Func (bool testConds, bool runActions) { if ((!(gf_NoUnitsRed() || gf_NoUnitsBlue()))) { TriggerEnable(gt_Update, true); } - else { - } + Wait(1.0, c_timeGame); DialogControlSetEnabled(gv_buttonRedo, PlayerGroupActive(), true); DialogControlSetEnabled(gv_buttonLoad[0], PlayerGroupActive(), true); @@ -3791,8 +3709,7 @@ bool gt_Respawn_Func (bool testConds, bool runActions) { if ((!(gf_NoUnitsRed() || gf_NoUnitsBlue()))) { TriggerEnable(gt_Update, true); } - else { - } + Wait(1.0, c_timeGame); DialogControlSetEnabled(gv_buttonRespawn, PlayerGroupActive(), true); UIClearMessages(PlayerGroupActive(), c_messageAreaSubtitle); @@ -4030,8 +3947,7 @@ bool gt_Delete_Func (bool testConds, bool runActions) { if ((libNtve_gf_UnitIsInvulnerable(UnitGroupLoopCurrent()) == false)) { UnitKill(UnitGroupLoopCurrent()); } - else { - } + } UnitGroupLoopEnd(); return true; @@ -4090,34 +4006,29 @@ bool gt_Click_Func (bool testConds, bool runActions) { if ((gf_AttackActions() == true)) { return true; } - else { - } + } else if (gf_CreatorMode() && gf_PlayerhasPermission()) { if ((gf_UnitDialogActions() == true)) { return true; } - else { - } + if ((gf_CreatorActions() == true)) { return true; } - else { - } + } else if (gf_CreatorMode()) { if ((EventDialogControl() == gv_buttonOptionsSubmenu)) { gf_ShowhideOptionsAlliances(); return true; } - else { - } + } if ((gf_SubmenusActions() == true)) { return true; } - else { - } + return true; } @@ -4168,8 +4079,7 @@ bool gt_UnitCreated_Func (bool testConds, bool runActions) { if (gf_SpecialUnitType(lv_unittype)) { gf_SpecialUnitCost(lv_unittype, lv_column, false); } - else { - } + BoardItemSetText(gv_leaderboard, lv_column, 1, IntToText(gv_totalMineral[lv_column])); BoardItemSetText(gv_leaderboard, lv_column, 2, IntToText(gv_totalVespene[lv_column])); BoardItemSetText(gv_leaderboard, lv_column, 3, IntToText(PlayerGetPropertyInt(gv_computer, c_playerPropSuppliesUsed))); @@ -4177,8 +4087,7 @@ bool gt_UnitCreated_Func (bool testConds, bool runActions) { if ((gv_iconFlag[lv_column][lv_row] == false)) { gf_AddLeaderboardIcon(lv_unittype, lv_column, lv_row); } - else { - } + return true; } @@ -4204,6 +4113,10 @@ bool gt_UnitDies_Func (bool testConds, bool runActions) { // Conditions if (testConds) { + if (!((EventUnitDamageDeathCheck(c_deathTypeRemove) == false))) { + return false; + } + if (!(gf_ValidUnitType(lv_unittype))) { return false; } @@ -4223,8 +4136,7 @@ bool gt_UnitDies_Func (bool testConds, bool runActions) { if (gf_SpecialUnitType(lv_unittype)) { gf_SpecialUnitCost(lv_unittype, lv_column, true); } - else { - } + BoardItemSetText(gv_leaderboard, lv_column, 1, IntToText(gv_totalMineral[lv_column])); BoardItemSetText(gv_leaderboard, lv_column, 2, IntToText(gv_totalVespene[lv_column])); BoardItemSetText(gv_leaderboard, lv_column, 3, IntToText(PlayerGetPropertyInt(gv_computer, c_playerPropSuppliesUsed))); @@ -4318,8 +4230,7 @@ bool gt_ShiftToggleOff_Func (bool testConds, bool runActions) { if (gf_CreatorMode() && gf_PlayerhasPermission()) { gv__15 = 1; } - else { - } + gv_shiftToggle = false; return true; } @@ -4343,8 +4254,7 @@ bool gt_ShiftToggleOn_Func (bool testConds, bool runActions) { if (gf_CreatorMode() && gf_PlayerhasPermission()) { gv__15 = 5; } - else { - } + return true; } @@ -4404,8 +4314,7 @@ bool gt_InstantConstruction_Func (bool testConds, bool runActions) { UnitSetProgressComplete(EventUnitProgressUnit(), 1, 99); UnitSetProgressStage(EventUnit(), 1, c_unitProgressStageResume); } - else { - } + if ((gv_zergPlayer != 0) && (UnitGetType(EventUnitProgressUnit()) != "CreepTumor") && (UnitGetType(EventUnitProgressUnit()) != "Lair") && (UnitGetType(EventUnitProgressUnit()) != "Hive") && (UnitGetType(EventUnitProgressUnit()) != "GreaterSpire")) { if ((UnitGetOwner(EventUnitProgressUnit()) == 9)) { while (!((UnitGetType(gv_zergBuilderRed) != "Drone2"))) { @@ -4426,8 +4335,7 @@ bool gt_InstantConstruction_Func (bool testConds, bool runActions) { UnitSelect(gv_zergBuilderBlue, gv_zergPlayer, true); } } - else { - } + return true; } diff --git a/src/Triggers b/src/Triggers index 6c30da2..4aeb073 100644 --- a/src/Triggers +++ b/src/Triggers @@ -3615,16 +3615,7 @@ - - - - - - - - - - + @@ -3701,670 +3692,64 @@ 100.0 - + - - + + - + - + - + - - - - - + + + + + - + - Corruptor - - - - - - - - - - - - - - - - - -;Missile,Dead,Hidden,Invulnerable - - - - - - - - - - - - - - - - Corruption - - - - - - Abil/Corruption - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Stalker - - - - - - - - - - - - - - - - - -;Missile,Dead,Hidden,Invulnerable - - - - - - - - - - - - - - - - Blink - - - - - - Blink - - - - - - - - - - - - - - - - - - - - - - - - - - - - - VoidRay - - - - - - - - - - - - - - - - - -;Missile,Dead,Hidden,Invulnerable - - - - - - - - - - - - - - - - VoidRaySwarmDamageBoost - - - - - - Abil/VoidRaySwarmDamageBoost - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Zealot - - - - - - - - - - - - - - - - - -;Missile,Dead,Hidden,Invulnerable - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SwarmHostBurrowedMP - - - - - - - - - - - - - - - - - -;Missile,Dead,Hidden,Invulnerable - - - - - - - - - - - - - - - - SpawnLocustsTargeted - - - - - - Abil/SpawnLocustsTargeted - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SwarmHostMP - - - - - - - - - - - - - - - - - -;Missile,Dead,Hidden,Invulnerable - - - - - - - - - - - - - - - - SpawnLocustsTargeted - - - - - - Abil/SpawnLocustsTargeted - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Medivac - - - - - - - - - - - - - - - - - -;Missile,Dead,Hidden,Invulnerable - - - - - - - - - - - - - - - - MedivacSpeedBoost - - - - - - Abil/MedivacSpeedBoost - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Oracle - - + - + - + - + - + - + -;Missile,Dead,Hidden,Invulnerable - + - + - - + + - + - + - + - + - - - - - - - - - - - - - - - - - - - - HighTemplar - - - - - - - - - - - - - - - - - -;Missile,Dead,Hidden,Invulnerable - - - - - - - - - - - - - - - - PsiStorm - - - - - - Abil/PsiStorm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Disruptor - - - - - - - - - - - - - - - - - -;Missile,Dead,Hidden,Invulnerable - - - - - - - - - - - - - - - - PurificationNovaTargetted - - - - - - Abil/PurificationNovaTargetted - - - - - - - - - @@ -14880,6 +14265,7 @@ + @@ -14920,6 +14306,7 @@ + @@ -15749,7 +15136,7 @@ - Assets\Textures\btn-ability-protoss-phasedisruptor.dds + Assets\Textures\btn-upgrade-protoss-resonatingglaives.dds @@ -15999,6 +15386,47 @@ + + + + + + + + + + + + DarkTemplarBlinkUpgrade + + + + + + ResearchDarkTemplarBlink + + + + + 0 + + + + + DarkShrineResearch + + + + + 0 + + + + + Assets\Textures\btn-ability-protoss-stealth-blink.dds + + + @@ -17427,6 +16855,7 @@ + @@ -17588,11 +17017,53 @@ - Assets\Textures\btn-upgrade-terran-jotunboosters.dds + Assets\Textures\btn-upgrade-terran-highcapacityfueltanks.dds + + + + + + + + + + + + + + + RavenRecalibratedExplosives + + + + + + ResearchRavenRecalibratedExplosives + + + + + 0 + + + + + StarportTechLabResearch + + + + + 15 + + + + + Assets\Textures\btn-upgrade-terran-recalibratedexplosives.dds + @@ -17752,7 +17223,7 @@ - Assets\Textures\btn-upgrade-terran-reapernitropacks.dds + Assets\Textures\btn-upgrade-terran-hyperflightrotors.dds @@ -17793,7 +17264,7 @@ - Assets\Textures\btn-ability-terran-haleoflead.dds + Assets\Textures\btn-upgrade-terran-advanceballistics.dds @@ -17839,6 +17310,7 @@ + @@ -18762,27 +18234,21 @@ - + - hydraliskspeed + EvolveMuscularAugments - - - Assets\Textures\btn-upgrade-zerg-groovedspines.dds - - - - hydraliskspeed + EvolveMuscularAugments @@ -18797,9 +18263,15 @@ - 2 + 1 + + + Assets\Textures\btn-upgrade-zerg-evolvemuscularaugments.dds + + + @@ -34527,6 +33999,7 @@ + @@ -34609,6 +34082,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + false + + diff --git a/src/Triggers.version b/src/Triggers.version index b0b76a0966c8fd517e568c0f7c4ffa39868ca010..2e8a96b44b917f370cc7c17a275e1c1d535bb39c 100644 GIT binary patch literal 44 ncmYdJNi9y#EGl7QU|?|A&%nS8q&b0@5z1Et(%Mh*B0ziq#0m#m literal 44 mcmYdJNi9y#EGl7QU|`@~%D})3q(N*LUlPbZFRdBQ2&4hB*ak-c