public GoalKillTarget(TraitorMission.CharacterFilter filter, CauseOfDeathType requiredCauseOfDeath, string afflictionId, string targetHull, int targetCount, float targetPercentage) : base()
            {
                Filter = filter;
                this.requiredCauseOfDeath = requiredCauseOfDeath;
                this.afflictionId         = afflictionId;
                this.targetHull           = targetHull;
                this.targetCount          = targetCount;
                this.targetPercentage     = targetPercentage / 100f;

                if (this.targetPercentage < 1f)
                {
                    if (this.requiredCauseOfDeath == CauseOfDeathType.Unknown && targetHull == null)
                    {
                        InfoTextId = "traitorgoalkilltargetinfo";
                    }
                    else if (this.requiredCauseOfDeath != CauseOfDeathType.Unknown && targetHull == null)
                    {
                        InfoTextId = "traitorgoalkilltargetinfowithcause";
                    }
                    else if (this.requiredCauseOfDeath == CauseOfDeathType.Unknown && targetHull != null)
                    {
                        InfoTextId = "traitorgoalkilltargetinfowithhull";
                    }
                    else if (this.requiredCauseOfDeath != CauseOfDeathType.Unknown && targetHull != null)
                    {
                        InfoTextId = "traitorgoalkilltargetinfowithcauseandhull";
                    }
                }
                else
                {
                    InfoTextId = "traitorgoalkilleveryoneinfo";
                }
            }
Beispiel #2
0
 public GoalFindItem(TraitorMission.CharacterFilter filter, string identifier, bool preferNew, bool allowNew, bool allowExisting, float percentage, params string[] allowedContainerIdentifiers)
 {
     this.filter        = filter;
     this.identifier    = identifier;
     this.preferNew     = preferNew;
     this.allowNew      = allowNew;
     this.allowExisting = allowExisting;
     this.percentage    = percentage / 100f;
     this.allowedContainerIdentifiers.UnionWith(allowedContainerIdentifiers);
 }
Beispiel #3
0
            public GoalInjectTarget(TraitorMission.CharacterFilter filter, string poisonId, string afflictionId, int targetCount, float targetPercentage) : base()
            {
                Filter                = filter;
                this.poisonId         = poisonId;
                this.afflictionId     = afflictionId;
                this.targetCount      = targetCount;
                this.targetPercentage = targetPercentage / 100f;

                if (this.targetPercentage < 1.0f)
                {
                    InfoTextId = "traitorgoalpoisoninfo";
                }
                else
                {
                    InfoTextId = "traitorgoalpoisoneveryoneinfo";
                }
            }
Beispiel #4
0
 public GoalKillTarget(TraitorMission.CharacterFilter filter) : base()
 {
     InfoTextId = "TraitorGoalKillTargetInfo";
     Filter     = filter;
 }