Actually, I can think of a rather simple way conceptually to do the job, don't know how easy it would be to program.
Make armor blocks indestructible while the ship still has armor hp, and then have the armor "fail" (aka, become destructible) at different levels based on type.
Like say basic...