예제 #1
0
 public static BuffStatNum Copy(BuffStatNum template)
 {
     return(new BuffStatNum()
     {
         value = template.value,
         max = template.max,
         buffAmmount = template.buffAmmount
     });
 }
예제 #2
0
 public static BattleStats Copy(BattleStats template)
 {
     return(new BattleStats()
     {
         AttacksPerTurn = BuffStatNum.Copy(template.AttacksPerTurn),
         BasicDamage = BuffStatNum.Copy(template.BasicDamage),
         BlockAmount = BuffStatNum.Copy(template.BlockAmount),
         MaxHealth = BuffStatNum.Copy(template.MaxHealth),
         Immunities = BuffStatEffects.Copy(template.Immunities),
         AppliedEffects = BuffStatEffects.Copy(template.AppliedEffects),
         ChanceToApply = BuffStatNum.Copy(template.ChanceToApply),
         ApplyDuration = BuffStatNum.Copy(template.ApplyDuration),
     });
 }