Plastic Surgery

Overview

Consumes a limited number of uses to reduce either the Notoriety bar (if it is below 100%) or the Capture bar (otherwise) by a fixed fraction, clamped to 0. Also updates on-screen uses text.

Serialized Fields

  • IntVariable usesLeft — charges remaining.
  • float reduction (default 0.15) — fraction to subtract (e.g., 0.15 = 15%).
  • FloatVariable notorietyProgress, FloatVariable captureProgress — normalized [0,1] bars.
  • TextMeshProUGUI usesText — refreshed after use.

Effect

  • If notorietyProgress < 1: notorietyProgress = max(0, notorietyProgress - reduction).
  • Else: captureProgress = max(0, captureProgress - reduction).
  • Decrement usesLeft and refresh usesText to reflect the remaining charges.

Validation

  • IsValid()usesLeft.Value > 0.

UI / Localization

  • Title key: ABILITY_PLASTIC_SURGERY_TITLE
  • Description key: ABILITY_PLASTIC_SURGERY_DESC
    Placeholders:
    • {reduction} — shown as percentage.
    • {usesLeft} — remaining uses.