public virtual PlayerBuffBase Copy() { PlayerBuffBase copy = new PlayerBuffBase(Name, MaxTime.CDTime); copy.BuffManager = BuffManager; return(copy); }
public void AddBuff(PlayerBuffBase buff) { buff.BuffManager = this; if (m_buffes.ContainsKey(buff.Name)) { RemoveBuff(buff.Name); } buff.StartBefore(m_arrtibutes); m_buffes.Add(buff.Name, buff); m_arrtibutes.OutData(); }
public static void AddBuff(PlayerBuffBase buff) { buff.victim.GetModPlayer <EntropyPlayer>().Buffs.Add(buff); }