public Perk Clone() { Perk perk = new Perk(); perk.ID = ID; perk.name = name; perk.icon = icon; perk.iconUnavailable = iconUnavailable; perk.repeatable = repeatable; perk.purchased = purchased; perk.purchasedCount = purchasedCount; perk.type = type; //perk.cost=cost; perk.cost = new List <int>(cost); perk.minLevel = minLevel; perk.minWave = minWave; perk.minPerkPoint = minPerkPoint; //perk.prereq=prereq; perk.prereq = new List <int>(prereq); //perk.itemIDList=itemIDList; perk.itemIDList = new List <int>(itemIDList); perk.itemID = itemID; perk.value = value; perk.valueAlt = valueAlt; //perk.valueRscList=valueRscList; perk.valueRscList = new List <float>(valueRscList); perk.stats = stats.Clone(); perk.effects = effects.Clone(); perk.HP = HP; perk.HPRegen = HPRegen; perk.HPStagger = HPStagger; perk.shield = shield; perk.shieldRegen = shieldRegen; perk.shieldStagger = shieldStagger; perk.buildCost = buildCost; perk.upgradeCost = upgradeCost; perk.abCost = abCost; perk.abCooldown = abCooldown; perk.abAOERadius = abAOERadius; perk.desp = desp; return(perk); }
public PerkLevel Clone() { PerkLevel perk = new PerkLevel(); perk.cost = cost; perk.value = value; perk.valueAlt = valueAlt; perk.valueRsc = valueRsc; perk.stats = stats.Clone(); perk.effects = effects.Clone(); perk.HP = HP; perk.buildCost = buildCost; perk.upgradeCost = upgradeCost; perk.abCost = abCost; perk.abCooldown = abCooldown; perk.abAOERadius = abAOERadius; perk.desp = desp; return(perk); }