Ejemplo n.º 1
0
    public override void OnRemove(ActorData actor)
    {
        switch (switchPrimary)
        {
        case JobCategory.Primary:
        {
            actor.primaryJob = prevJobs;
            break;
        }

        case JobCategory.Secondary:
        {
            actor.secondaryJob = prevJobs;
            break;
        }

        case JobCategory.Race:
        {
            actor.ChangeSpecies(prevJobs);


            actor.ChangeSpecies(prevJobs);
            actor.race = prevJobs;
            break;
        }
        }
    }
Ejemplo n.º 2
0
    public override void OnApply(ActorData actor, ActorData source)
    {
        if (learnAllAbilities)
        {
            foreach (Talent skill in Globals.campaign.GetJobsData().JobDB.GetCopy(newJob).GetTotalTalentPool())
            {
                actor.LearnTalent(newJob, skill);
            }
        }


        switch (switchPrimary)
        {
        case JobCategory.Primary:
        {
            prevJobs = actor.primaryJob;

            actor.ChangeJobs(newJob, JobCategory.Primary);
            break;
        }

        case JobCategory.Secondary:
        {
            prevJobs = actor.secondaryJob;
            actor.ChangeJobs(newJob, JobCategory.Secondary);
            break;
        }

        case JobCategory.Race:
        {
            prevJobs = actor.race;
            actor.ChangeSpecies(newJob);

            break;
        }
        }
    }