Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added EmployersAlly to SimpleLanceSpawner Node #663

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Core/ContractTypeBuilders/NodeBuilders/SpawnBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ public override void Build() {
if (orders != null) spawnerGameLogic.aiOrderList.contentsBox = orders;
break;
}
case "EmployersAlly": {
teamId = TeamUtils.EMPLOYER_ALLY_TEAM_ID;
spawnerGameLogic = LanceSpawnerFactory.CreateLanceSpawner(parent, name, guid, teamId, true, spawnMethodType, spawnPointGuids, defaultBehaviourTree);
spawnerGameLogic.alertLanceOnSpawn = this.alertLanceOnSpawn;
if (orders != null) spawnerGameLogic.aiOrderList.contentsBox = orders;
break;
}
case "NeutralToAll": {
teamId = TeamUtils.NEUTRAL_TO_ALL_TEAM_ID;
spawnerGameLogic = LanceSpawnerFactory.CreateLanceSpawner(parent, name, guid, teamId, true, spawnMethodType, spawnPointGuids, defaultBehaviourTree);
Expand Down
2 changes: 2 additions & 0 deletions src/Util/TeamUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public static class TeamUtils {
public const string PLAYER_TEAM_ID = "bf40fd39-ccf9-47c4-94a6-061809681140";
public const string PLAYER_2_TEAM_ID = "757173dd-b4e1-4bb5-9bee-d78e623cc867";
public const string EMPLOYER_TEAM_ID = "ecc8d4f2-74b4-465d-adf6-84445e5dfc230";
public const string EMPLOYER_ALLY_TEAM_ID = "70af7e7f-39a8-4e81-87c2-bd01dcb01b5e";
public const string TARGET_TEAM_ID = "be77cadd-e245-4240-a93e-b99cc98902a5";
public const string TARGETS_ALLY_TEAM_ID = "31151ed6-cfc2-467e-98c4-9ae5bea784cf";
public const string NEUTRAL_TO_ALL_TEAM_ID = "61612bb3-abf9-4586-952a-0559fa9dcd75";
Expand All @@ -17,6 +18,7 @@ public static string GetTeamGuid(string teamName) {
case "Player1": return PLAYER_TEAM_ID;
case "Player2": return PLAYER_2_TEAM_ID;
case "Employer": return EMPLOYER_TEAM_ID;
case "EmployersAlly": return EMPLOYER_ALLY_TEAM_ID;
case "Target": return TARGET_TEAM_ID;
case "TargetAlly": return TARGETS_ALLY_TEAM_ID;
case "NeutralToAll": return NEUTRAL_TO_ALL_TEAM_ID;
Expand Down