Yes I think I have something like this. The question is more what you want exactly, since what you are describing is more like a shield instead of armor. An armor would only remove a certain amount of damage in a certain location, but a shield will absorb all damage until the shield is gone, then the player is damaged.
I looked through my code and I seem to have locational damage modifiers, which give different damage amounts based on where the player is hit, then I have a shield system, which is probably what you want and I have a damage scale system, which removes a certain amount of damage depending on the damage type (explosion, fire, bullet etc) which would be more like armor system.
Shield system is at line 431 here
https://github.com/Duion/Uebergame/blob ... apeBase.cs
You can search the rest of my code for keywords "shield" and "damagescale". I don't know if or how it works, since I don't have it in use, it is one of those many unused/unfinished features I have in my code for some reason.