static bool Prefix(ref ModuleBooster __instance) { BuffController buff = BuffController.MakeNewIfNone(__instance.block.tank); buff.AddBooster(__instance); return(true); }
public void RemoveBooster(ModuleBooster booster) { this.allSegments["BoosterBurnRate"].ManipulateObj(new List <object> { booster }, "CLEAN"); this.boosterListGeneric.Remove(booster); }
public void AddBooster(ModuleBooster booster) { this.boosterListGeneric.Add(booster); this.allSegments["BoosterBurnRate"].ManipulateObj(new List <object> { booster }, "SAVE"); }