public static NextUpgradeStats GetNextUpgradeStats(WNextStats nextStats)
    {
        if (nextStats == null)
        {
            return(null);
        }

        NextUpgradeStats stats = new NextUpgradeStats();

        stats.attack          = nextStats.attack;
        stats.card_cost       = nextStats.card_cost;
        stats.card_count      = nextStats.card_count;
        stats.critical_chance = nextStats.critical_chance;
        stats.critical_ratio  = nextStats.critical_ratio;
        stats.dodge_chance    = nextStats.dodge_chance;
        stats.health          = nextStats.health;
        stats.miss_chance     = nextStats.miss_chance;
        stats.shield          = nextStats.shield;

        return(stats);
    }
Пример #2
0
    //Base Methods
    public CharInfo(
        Divine.Moniker moniker, BattleObjStats initialStats, List <SpellInfo> spells,
        Dexterity priority, int xp, int level, long id,
        int coolDownRemainingTime, int cardCount, NextUpgradeStats nextUpgradeStats,
        Divine.Moniker owner = Divine.Moniker.Unknown, bool isActive = true)

    {
        this.xp    = xp;
        this.level = level;

        uniqueID     = id;
        this.spells  = spells;
        this.moniker = moniker;
        turnPriority = priority;
        baseStats    = initialStats;
        ownerHero    = owner;

        curCardCount          = cardCount;
        this.nextUpgradeStats = nextUpgradeStats;
        SetRemainingCooldownTime(coolDownRemainingTime);
        enableInStart = isActive;
    }