Skip to content

Commit

Permalink
sc2: Added unlock triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMarinets committed Jul 1, 2024
1 parent 324d936 commit 4b12ebd
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 4 deletions.
17 changes: 15 additions & 2 deletions Mods/ArchipelagoTriggers.SC2Mod/Base.SC2Data/LibABFE498B.galaxy
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ void libABFE498B_gf_AP_Triggers_unlockTerranLaboratory (int lp_player, int lp_bi
libABFE498B_gf_AP_Triggers_Terran_unlockRogueForces, // 12
libABFE498B_gf_AP_Triggers_Terran_unlockMechanicalKnowHow, // 13
libABFE498B_gf_AP_Triggers_Terran_unlockMercenaryMunitions, // 14
ap_triggers_PlayerConsumer_sig, // 15
libABFE498B_gf_AP_Triggers_Terran_unlockDevastatorTurretSlow, // 15
ap_triggers_PlayerConsumer_sig, // 16
ap_triggers_PlayerConsumer_sig, // 17
ap_triggers_PlayerConsumer_sig, // 18
Expand Down Expand Up @@ -583,7 +583,7 @@ void libABFE498B_gf_AP_Triggers_unlockTerranBuildings (int lp_player, int lp_bit
libABFE498B_gf_AP_Triggers_Terran_unlockPerditionTurret, // 4
libABFE498B_gf_AP_Triggers_Terran_unlockHiveMindEmulator, // 5
libABFE498B_gf_AP_Triggers_Terran_unlockPsiDisrupter, // 6
ap_triggers_PlayerConsumer_sig, // 7
libABFE498B_gf_AP_Triggers_Terran_unlockDevastatorTurret, // 7
ap_triggers_PlayerConsumer_sig, // 8
ap_triggers_PlayerConsumer_sig, // 9
ap_triggers_PlayerConsumer_sig, // 10
Expand Down Expand Up @@ -1910,6 +1910,12 @@ void libABFE498B_gf_AP_Triggers_Terran_unlockHiveMindEmulator (int lp_player) {
TechTreeUnitAllow(lp_player, "AP_HiveMindEmulator", true);
}

void libABFE498B_gf_AP_Triggers_Terran_unlockDevastatorTurret (int lp_player) {
// Automatic Variable Declarations
// Implementation
TechTreeUnitAllow(lp_player, "AP_DevastatorTurret", true);
}

void libABFE498B_gf_AP_Triggers_Terran_unlockSCVAdvancedConstruction (int lp_player) {
// Automatic Variable Declarations
// Implementation
Expand Down Expand Up @@ -3482,6 +3488,12 @@ void libABFE498B_gf_AP_Triggers_Terran_unlockPlanetaryFortressOrbitalModule (int

}

void libABFE498B_gf_AP_Triggers_Terran_unlockDevastatorTurretSlow (int lp_player) {
// Automatic Variable Declarations
// Implementation
libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "AP_DevastatorTurretSlow", 1);
}

void libABFE498B_gf_AP_Triggers_Terran_unlockInfantryArmor (int lp_player, int lp_level) {
// Automatic Variable Declarations
// Implementation
Expand Down Expand Up @@ -4353,6 +4365,7 @@ void libABFE498B_gf_AP_Triggers_clearTerranTech (int lp_player) {
TechTreeUnitAllow(lp_player, "AP_PsiDisruptor", false);
TechTreeUnitAllow(lp_player, "AP_Bunker", false);
TechTreeUnitAllow(lp_player, "AP_MissileTurret", false);
TechTreeUnitAllow(lp_player, "AP_DevastatorTurret", false);
TechTreeUnitAllow(lp_player, "AP_SensorTower", false);
TechTreeUnitAllow(lp_player, "AP_HiveMindEmulator", false);
TechTreeUnitAllow(lp_player, "AP_GhostAcademy", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ void libABFE498B_gf_AP_Triggers_Terran_unlockSensorTower (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockPerditionTurret (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockPsiDisrupter (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockHiveMindEmulator (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockDevastatorTurret (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockSCVAdvancedConstruction (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockSCVDualFusionWelders (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockSCVHostileEnvironmentAdaptation (int lp_player);
Expand Down Expand Up @@ -412,6 +413,7 @@ void libABFE498B_gf_AP_Triggers_Terran_unlockAdvancedOptics (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockRogueForces (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockMechanicalKnowHow (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockMercenaryMunitions (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockDevastatorTurretSlow (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockNovaGhostVisor (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockNovaRangefinderOculus (int lp_player);
void libABFE498B_gf_AP_Triggers_Terran_unlockNovaDomination (int lp_player);
Expand Down
100 changes: 98 additions & 2 deletions Mods/ArchipelagoTriggers.SC2Mod/Triggers
Original file line number Diff line number Diff line change
Expand Up @@ -2758,7 +2758,7 @@
libABFE498B_gf_AP_Triggers_Terran_unlockRogueForces, // 12
libABFE498B_gf_AP_Triggers_Terran_unlockMechanicalKnowHow, // 13
libABFE498B_gf_AP_Triggers_Terran_unlockMercenaryMunitions, // 14
ap_triggers_PlayerConsumer_sig, // 15
libABFE498B_gf_AP_Triggers_Terran_unlockDevastatorTurretSlow, // 15
ap_triggers_PlayerConsumer_sig, // 16
ap_triggers_PlayerConsumer_sig, // 17
ap_triggers_PlayerConsumer_sig, // 18
Expand Down Expand Up @@ -2882,7 +2882,7 @@
libABFE498B_gf_AP_Triggers_Terran_unlockPerditionTurret, // 4
libABFE498B_gf_AP_Triggers_Terran_unlockHiveMindEmulator, // 5
libABFE498B_gf_AP_Triggers_Terran_unlockPsiDisrupter, // 6
ap_triggers_PlayerConsumer_sig, // 7
libABFE498B_gf_AP_Triggers_Terran_unlockDevastatorTurret, // 7
ap_triggers_PlayerConsumer_sig, // 8
ap_triggers_PlayerConsumer_sig, // 9
ap_triggers_PlayerConsumer_sig, // 10
Expand Down Expand Up @@ -12867,6 +12867,7 @@
<Item Type="FunctionDef" Library="ABFE498B" Id="19467E56"/>
<Item Type="FunctionDef" Library="ABFE498B" Id="EB0B3D1F"/>
<Item Type="FunctionDef" Library="ABFE498B" Id="F0AE94EE"/>
<Item Type="FunctionDef" Library="ABFE498B" Id="C9EDD088"/>
</Element>
<Element Type="FunctionDef" Id="A510A47F">
<FlagAction/>
Expand Down Expand Up @@ -13204,6 +13205,42 @@
<ValueType Type="gamelink"/>
<ValueGameType Type="Unit"/>
</Element>
<Element Type="FunctionDef" Id="C9EDD088">
<Identifier>AP_Triggers_Terran_unlockDevastatorTurret</Identifier>
<FlagAction/>
<Parameter Type="ParamDef" Library="ABFE498B" Id="54F7DF50"/>
<FunctionCall Type="FunctionCall" Library="ABFE498B" Id="D675818F"/>
</Element>
<Element Type="ParamDef" Id="54F7DF50">
<ParameterType>
<Type Value="int"/>
</ParameterType>
<Default Type="Param" Library="ABFE498B" Id="BFF1A49A"/>
</Element>
<Element Type="Param" Id="BFF1A49A">
<Value>0</Value>
<ValueType Type="int"/>
</Element>
<Element Type="FunctionCall" Id="D675818F">
<FunctionDef Type="FunctionDef" Library="Ntve" Id="51A273F5"/>
<Parameter Type="Param" Library="ABFE498B" Id="DC4E1867"/>
<Parameter Type="Param" Library="ABFE498B" Id="9FA2F1E4"/>
<Parameter Type="Param" Library="ABFE498B" Id="AF0523C1"/>
</Element>
<Element Type="Param" Id="DC4E1867">
<ParameterDef Type="ParamDef" Library="Ntve" Id="B15D29C1"/>
<Parameter Type="ParamDef" Library="ABFE498B" Id="54F7DF50"/>
</Element>
<Element Type="Param" Id="9FA2F1E4">
<ParameterDef Type="ParamDef" Library="Ntve" Id="BC66D9AD"/>
<Value>AP_DevastatorTurret</Value>
<ValueType Type="gamelink"/>
<ValueGameType Type="Unit"/>
</Element>
<Element Type="Param" Id="AF0523C1">
<ParameterDef Type="ParamDef" Library="Ntve" Id="C26556EA"/>
<Preset Type="PresetValue" Library="Ntve" Id="00000106"/>
</Element>
<Element Type="Category" Id="279E947C">
<Item Type="Category" Library="ABFE498B" Id="5EF49186"/>
<Item Type="Category" Library="ABFE498B" Id="65B8E6B3"/>
Expand Down Expand Up @@ -23733,6 +23770,7 @@
<Item Type="FunctionDef" Library="ABFE498B" Id="128BEA72"/>
<Item Type="FunctionDef" Library="ABFE498B" Id="09B67FC0"/>
<Item Type="FunctionDef" Library="ABFE498B" Id="45AD82C7"/>
<Item Type="FunctionDef" Library="ABFE498B" Id="D462CB24"/>
</Element>
<Element Type="FunctionDef" Id="0E95856F">
<FlagAction/>
Expand Down Expand Up @@ -24876,6 +24914,43 @@
<Value>0</Value>
<ValueType Type="int"/>
</Element>
<Element Type="FunctionDef" Id="D462CB24">
<Identifier>AP_Triggers_Terran_unlockDevastatorTurretSlow</Identifier>
<FlagAction/>
<Parameter Type="ParamDef" Library="ABFE498B" Id="7C94192B"/>
<FunctionCall Type="FunctionCall" Library="ABFE498B" Id="830A037E"/>
</Element>
<Element Type="ParamDef" Id="7C94192B">
<ParameterType>
<Type Value="int"/>
</ParameterType>
<Default Type="Param" Library="ABFE498B" Id="C84F252A"/>
</Element>
<Element Type="Param" Id="C84F252A">
<Value>0</Value>
<ValueType Type="int"/>
</Element>
<Element Type="FunctionCall" Id="830A037E">
<FunctionDef Type="FunctionDef" Library="Ntve" Id="9F8EF8FB"/>
<Parameter Type="Param" Library="ABFE498B" Id="D19FA6BD"/>
<Parameter Type="Param" Library="ABFE498B" Id="1946F1F8"/>
<Parameter Type="Param" Library="ABFE498B" Id="28B5EDCE"/>
</Element>
<Element Type="Param" Id="D19FA6BD">
<ParameterDef Type="ParamDef" Library="Ntve" Id="C7188352"/>
<Parameter Type="ParamDef" Library="ABFE498B" Id="7C94192B"/>
</Element>
<Element Type="Param" Id="1946F1F8">
<ParameterDef Type="ParamDef" Library="Ntve" Id="7E5035EE"/>
<Value>AP_DevastatorTurretSlow</Value>
<ValueType Type="gamelink"/>
<ValueGameType Type="Upgrade"/>
</Element>
<Element Type="Param" Id="28B5EDCE">
<ParameterDef Type="ParamDef" Library="Ntve" Id="3BFEECBB"/>
<Value>1</Value>
<ValueType Type="int"/>
</Element>
<Element Type="Category" Id="50A7FFA8">
<Item Type="FunctionDef" Library="ABFE498B" Id="C9ED962C"/>
<Item Type="FunctionDef" Library="ABFE498B" Id="3F5DBF15"/>
Expand Down Expand Up @@ -33998,6 +34073,7 @@
<FunctionCall Type="FunctionCall" Library="ABFE498B" Id="7B4B072B"/>
<FunctionCall Type="FunctionCall" Library="ABFE498B" Id="F79D4A89"/>
<FunctionCall Type="FunctionCall" Library="ABFE498B" Id="41A3952A"/>
<FunctionCall Type="FunctionCall" Library="ABFE498B" Id="F3CDEA83"/>
<FunctionCall Type="FunctionCall" Library="ABFE498B" Id="8A5B1074"/>
<FunctionCall Type="FunctionCall" Library="ABFE498B" Id="515E5F2B"/>
<FunctionCall Type="FunctionCall" Library="ABFE498B" Id="232784D5"/>
Expand Down Expand Up @@ -35143,6 +35219,26 @@
<ValueType Type="gamelink"/>
<ValueGameType Type="Unit"/>
</Element>
<Element Type="FunctionCall" Id="F3CDEA83">
<FunctionDef Type="FunctionDef" Library="Ntve" Id="51A273F5"/>
<Parameter Type="Param" Library="ABFE498B" Id="20EBBE3B"/>
<Parameter Type="Param" Library="ABFE498B" Id="8D6FC7FF"/>
<Parameter Type="Param" Library="ABFE498B" Id="4C4A3966"/>
</Element>
<Element Type="Param" Id="20EBBE3B">
<ParameterDef Type="ParamDef" Library="Ntve" Id="B15D29C1"/>
<Parameter Type="ParamDef" Library="ABFE498B" Id="FFC5A20B"/>
</Element>
<Element Type="Param" Id="8D6FC7FF">
<ParameterDef Type="ParamDef" Library="Ntve" Id="BC66D9AD"/>
<Value>AP_DevastatorTurret</Value>
<ValueType Type="gamelink"/>
<ValueGameType Type="Unit"/>
</Element>
<Element Type="Param" Id="4C4A3966">
<ParameterDef Type="ParamDef" Library="Ntve" Id="C26556EA"/>
<Preset Type="PresetValue" Library="Ntve" Id="00000107"/>
</Element>
<Element Type="FunctionCall" Id="8A5B1074">
<FunctionDef Type="FunctionDef" Library="Ntve" Id="51A273F5"/>
<Parameter Type="Param" Library="ABFE498B" Id="3A33C2BC"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ FunctionDef/Name/lib_ABFE498B_C8E1A3BC=AP_Triggers_unlockProtossSpearOfAdun
FunctionDef/Name/lib_ABFE498B_C8F67358=AP_Triggers_MapConfig_setSoAControllingPlayers
FunctionDef/Name/lib_ABFE498B_C9720F38=AP_Triggers_Protoss_unlockCenturion
FunctionDef/Name/lib_ABFE498B_C9ED962C=AP_Triggers_Terran_unlockInfantryArmor
FunctionDef/Name/lib_ABFE498B_C9EDD088=AP_Triggers_Terran_unlockDevastatorTurret
FunctionDef/Name/lib_ABFE498B_CA0C43C5=AP_Triggers_Zerg_RoachVile
FunctionDef/Name/lib_ABFE498B_CA1333E8=AP_Triggers_Zerg_BroodQueenFungalGrowth
FunctionDef/Name/lib_ABFE498B_CB89C797=AP_Triggers_Zerg_RoachGlialReconstitution
Expand Down Expand Up @@ -645,6 +646,7 @@ FunctionDef/Name/lib_ABFE498B_D3F0F221=AP_Triggers_Zerg_RavagerBloatedBileDucts
FunctionDef/Name/lib_ABFE498B_D4040AD0=AP_Triggers_Zerg_BroodLordResourceEfficiency
FunctionDef/Name/lib_ABFE498B_D4116829=AP_Triggers_Protoss_unlockDarkArchonFeedback
FunctionDef/Name/lib_ABFE498B_D421BE14=AP_Triggers_Zerg_TwinDrones
FunctionDef/Name/lib_ABFE498B_D462CB24=AP_Triggers_Terran_unlockDevastatorTurretSlow
FunctionDef/Name/lib_ABFE498B_D4789795=AP_Triggers_Protoss_unlockHavoc
FunctionDef/Name/lib_ABFE498B_D4C59830=AP_Triggers_Terran_unlockSiegeTankShapedHull
FunctionDef/Name/lib_ABFE498B_D4C5B753=AP_Triggers_Terran_unlockMarauder
Expand Down Expand Up @@ -1012,6 +1014,7 @@ ParamDef/Name/lib_ABFE498B_544336B5=player
ParamDef/Name/lib_ABFE498B_54E0F5AF=player
ParamDef/Name/lib_ABFE498B_54F33D3B=bitArrayValue
ParamDef/Name/lib_ABFE498B_54F3F99A=player
ParamDef/Name/lib_ABFE498B_54F7DF50=player
ParamDef/Name/lib_ABFE498B_5524294C=player
ParamDef/Name/lib_ABFE498B_552EC6A9=player
ParamDef/Name/lib_ABFE498B_55A7134E=bitArrayValue
Expand Down Expand Up @@ -1135,6 +1138,7 @@ ParamDef/Name/lib_ABFE498B_7BFE65D1=player
ParamDef/Name/lib_ABFE498B_7C09DAB0=player
ParamDef/Name/lib_ABFE498B_7C5D358F=player
ParamDef/Name/lib_ABFE498B_7C6A2BF2=player
ParamDef/Name/lib_ABFE498B_7C94192B=player
ParamDef/Name/lib_ABFE498B_7CB892BB=player
ParamDef/Name/lib_ABFE498B_7D087641=player
ParamDef/Name/lib_ABFE498B_7D48AA8A=player
Expand Down

0 comments on commit 4b12ebd

Please sign in to comment.