// REMOVE CONDITIONS private void RemoveOwnConditions(GenericShip ship) { HostShip.Tokens.RemoveCondition(AssignedCondition); AssignedCondition = null; }
protected virtual void Assign(Type conditionType) { AssignedCondition = Activator.CreateInstance(conditionType, HostShip) as ZamWesellSecretCondition; Messages.ShowInfo($"{HostShip.PilotInfo.PilotName}: Secret condition is assigned"); HostShip.Tokens.AssignToken(AssignedCondition, Triggers.FinishTrigger); }