Author Topic: Armor with decaying health?  (Read 1303 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Armor with decaying health?
« on: August 31, 2021, 05:47:53 am »
I'm trying to create an armor for a unit that loses health every turn.

So far I've tried both:

Code: [Select]
armors:
  - type: DECAYING_HEALTH_ARMOR
    recovery:
      health:
        flatHundred: -0.5


and

Code: [Select]
armors:
  - type: DECAYING_HEALTH_ARMOR
    recovery.health: -50


But the unit just wanders around and never loses any health.

What am I doing wrong?

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Armor with decaying health?
« Reply #1 on: September 01, 2021, 10:19:26 pm »
I just tried it again... and for some reason this time it worked and the units health decreased by 50 per turn.

Code: [Select]
  - type: AQUATOID_ARMOR
    spriteSheet: AQUATOID.PCK
    allowInv: false
    corpseBattle:
      - STR_AQUATOID_CORPSE
    frontArmor: 5
    sideArmor: 5
    rearArmor: 5
    underArmor: 5
    drawingRoutine: 4
    constantAnimation: true
    damageModifier:
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
    loftempsSet: [ 5 ]
    overKill: 10.0
    recovery:
      health:
        flatHundred: -0.5


I must have made a typo or messed up the syntax with my previous attempt.