*x*max hp that has taken

*y*damage and apply carbon-weaver nanos to it you'll get a segment of damaged armor that has the new maximum hp value, the same amount of hp as it had before, but still has still only sustained

*y*points of damage.

Example:

Say I have a segment of mundane Light Plasteel (60 hp max) and it takes 4 hp of damage and now has 56 hp. Then I apply some carbon-weaver nanos and it boosts the max hp to 90. The armor segment still has 56 hp but "has sustained 4 points of damage". The 4 points of damage is used both when repairing armor yourself or calculations to pay to have it repaired.

Is this working as intended? I'd expect either:

A. After applying the nanos, the armor would have 88 hp (4 less than its new max) and would have 86 / 90 hp.

B. After applying the nanos, the armor would retain its current hp but would need (newMax - currentHP) points of damage repaired. The armor would have 56 / 90 hp.

C. After applying the nanos, the armor would have the same ratio of hp as before application. Thus since it was 56/60 before, and the new max is 90, it would have (56/60) * 90 = 84 hp.

(B) Doesn't seem fair as the armor could wind up too heavily damaged to be repaired (I think?) with the new max. (A) Seems a little too generous. (C) seems like it would be the fairest and most logical solution to me.