Exemplo n.º 1
0
    public virtual PlayerBuffBase Copy()
    {
        PlayerBuffBase copy = new PlayerBuffBase(Name, MaxTime.CDTime);

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