static bool Prefix(ref ModuleItemProducer __instance) { BuffController buff = BuffController.MakeNewIfNone(__instance.block.tank); buff.RemoveItemPro(__instance); return(true); }
public void RemoveItemPro(ModuleItemProducer item) { this.allSegments["ItemProSpeed"].ManipulateObj(new List <object> { item }, "CLEAN"); this.itemProListGeneric.Remove(item); }
public void AddItemPro(ModuleItemProducer item) { this.itemProListGeneric.Add(item); this.allSegments["ItemProSpeed"].ManipulateObj(new List <object> { item }, "SAVE"); }