public static ModBuff GetBuff(int type) { return type >= BuffID.Count && type < BuffCount ? buffs[type - BuffID.Count] : null; }
/// <summary> /// Gets the ModBuff instance with the given type. If no ModBuff with the given type exists, returns null. /// </summary> public static ModBuff GetModBuff(int type) => BuffLoader.GetBuff(type);