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

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