aliens

Author Topic: Damage calculation for zero damage items  (Read 1839 times)

Offline jcrabbit

  • Sergeant
  • **
  • Posts: 19
    • View Profile
Damage calculation for zero damage items
« on: May 30, 2021, 06:21:09 am »
How is damage determined for items with a base damage of zero? For example, the rope from the XPiratez mod? https://www.ufopaedia.org/index.php/Melee_Weapons_(Piratez)

From the searches I've found, it seems like the rope simply causes choke damage which can knock out units.

https://openxcom.org/forum/index.php/topic,6109.msg93488.html#msg93488
https://openxcom.org/forum/index.php/topic,5345.msg92866.html#msg92866
https://openxcom.org/forum/index.php/topic,7877.msg123317.html#msg123317

Setting aside TUs, given that rope is described as having zero damage, how does it actually affect units? It has a damage bonus of:

Quote
Damage+0.15*Strength+0.15*Bravery

Given a solder with 100 strength and 100 bravery, does that translate to 30 choking damage? Or does the 30 here become a multiplier, i.e., 0*1.30? A scaling multiplier doesn't seem to make sense here.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11464
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Damage calculation for zero damage items
« Reply #1 on: May 30, 2021, 01:10:36 pm »
It's not a multiplier, it's additive... The "+" is a clue ;)

So yes, your calculation is correct, such a soldier would do 30 damage on average (assuming standard damage roll and no other complications, like armour value and resistances).

Offline jcrabbit

  • Sergeant
  • **
  • Posts: 19
    • View Profile
Re: Damage calculation for zero damage items
« Reply #2 on: May 30, 2021, 06:53:12 pm »
Thanks Solarius!