Damage and Armor

RTS Kit includes a tool named Damage Table. This table stores data about all damage and armor types in the game.

Number values in the table are damage scaling coefficients from every damage type to every armor type.

../../_images/damage-table-csv.png

This table file should be stored in Resources/Data folder with name DamageTable.csv.

How to work with Damage Table?

So, you can edit this file in any CSV editor, or even in your IDE/notepad - CSV is a very simple file format. You need to add/edit damage and armor parameters. Armors are columns, damages are rows.

Example:

  • A value of 1 means 100% of the base damage — so it does not change damage scale.

  • 0.5 means that only 50% of the base damage will be received.

  • 1.2 means that 120% of the base damage will be received.

When you’ve finished your balance edits, you need to re-import the Damage Table into the engine by clicking this button in the Game Settings window:

../../_images/damage-table-import.png

Why is this not set up directly in the engine?

Since this is a balance config only, it can be handy to have it in CSV format:

  1. You can edit it in Google Sheets or even in notepad

  2. You can easily add/remove any armor and damage types

  3. We do not need to support a special custom Editor in Unity, which can break with a new Unity release