public void RemoveBuff(ModuleBuff buff) { foreach (string effect in buff.AllEffects) { if (this.allSegments.ContainsKey(effect)) { this.allSegments[effect].RemoveBuff(buff); } } this.Update(buff.m_BuffType); }
public float AddAfter(ModuleBuff buff, int i) { return((!this.m_NeedsToBeAnchored[i] || buff.block.tank.IsAnchored) ? this.m_AddAfter[i] : 0.0f); }
public float Strength(ModuleBuff buff, int i) { return((!this.m_NeedsToBeAnchored[i] || buff.block.tank.IsAnchored) ? this.m_Strength[i] : 1.0f); }
public void RemoveBuff(ModuleBuff buff) { this.effectBuffBlocks.Remove(buff); }
public void AddBuff(ModuleBuff buff) { this.effectBuffBlocks.Add(buff, buff.GetEffect(this.effectType)); }