I recommend that you take the time to gen up on the 'rules' of your pension scheme. It isn't that difficult.
The general gist of your scheme is that your final annual pension per annum (at initial start of drawing it) is driven by a combination of the number of years you've been in it times the final salary in the last year of your employment. (OK, the last bit isn't that simple, its often the last year, or the average of the last 3 years, or some other calc).
To get the maximum (often 2/3rds of the final salary) you must have 40 yrs in the scheme - less yrs is ratioed down.
What you must avoid in those final years of working is anything that inadvertantly reduces the numerical value of the salary - because it drives the calculation.