private bool EquipmentSlot_FireGateway(On.RoR2.EquipmentSlot.orig_FireGateway orig, EquipmentSlot self) { if (CanDeploy(self, deployableSlot_Gateway)) { return(orig(self)); } return(false); }
private static bool EquipmentSlot_FireGateway(On.RoR2.EquipmentSlot.orig_FireGateway orig, EquipmentSlot self) { var original = orig(self); if (original) { self.subcooldownTimer = cfgGatewayCooldown; } return(original); }