Exemple #1
0
    public virtual PlayerBuffBase Copy()
    {
        PlayerBuffBase copy = new PlayerBuffBase(Name, MaxTime.CDTime);

        copy.BuffManager = BuffManager;
        return(copy);
    }
Exemple #2
0
    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();
    }
Exemple #3
0
 public static void AddBuff(PlayerBuffBase buff)
 {
     buff.victim.GetModPlayer <EntropyPlayer>().Buffs.Add(buff);
 }