public static InstantEffect Clone(InstantEffect origin) { return(new InstantEffect { hpChange = HpChange.Clone(origin.hpChange), isCleanse = origin.isCleanse }); }
public HpChange Copy(HpChange origin) { isHeal = origin.isHeal; isTrueDamage = origin.isTrueDamage; fixedAmount = origin.fixedAmount; enhancePercentRate = origin.enhancePercentRate; ratioType = origin.ratioType; ratioPercent = origin.ratioPercent; return(this); }
public static HpChange Clone(HpChange origin) { return(new HpChange { isHeal = origin.isHeal, isTrueDamage = origin.isTrueDamage, fixedAmount = origin.fixedAmount, enhancePercentRate = origin.enhancePercentRate, ratioType = origin.ratioType, ratioPercent = origin.ratioPercent }); }
public static PersistEffect Clone(PersistEffect origin) { return(new PersistEffect { time = origin.time, id = origin.id, TickHpChange = HpChange.Clone(origin.TickHpChange), TickPeriod = origin.TickPeriod, // 주의 - 능력치 버프는 강화되는 일 없으리라 생각되므로 얕은 복사 사용 changeAbilities = origin.changeAbilities, increaseStack = origin.increaseStack, maxStack = origin.maxStack, stackAccumulateEffect = StackAccumulateEffect.Clone(origin.stackAccumulateEffect), }); }