Exemple #1
0
    public static StatsContainer AddSC(StatsContainer sc1, StatsContainer sc2)
    {
        StatsContainer temp = (StatsContainer)sc1.Copy();

        temp.AddStats(sc2);

        return(temp);
    }
Exemple #2
0
    public void LevelUp()
    {
        Level++;

        /// So we'll add the stat growths for the primary job now
        /// We could also add the secondary job stats
        /// Or just add half the primary, half the second job?
        ///
        StatsContainer sc = Globals.campaign.GetJobsData().JobDB.GetCopy(primaryJob).statGrowth;

        maxStatCollection.AddStats(sc);
    }
Exemple #3
0
    public override void OnApply(ActorData actor, ActorData source)
    {
        if (containerType == StatContainerType.Current)
        {
            actor.currentStatCollection.AddStats(sc);
        }
        else if (containerType == StatContainerType.Max)
        {
            actor.maxStatCollection.AddStats(sc);
        }
        else if (containerType == StatContainerType.Both)
        {
            actor.maxStatCollection.AddStats(sc);
            actor.currentStatCollection.AddStats(sc);
        }

        sc_to_remove.AddStats(sc);
    }