Author Topic: the ability to change damageRange of all randomtype  (Read 845 times)

Offline Felis7

  • Squaddie
  • *
  • Posts: 3
    • View Profile
the ability to change damageRange of all randomtype
« on: August 22, 2024, 03:06:32 pm »
you can set the damagerange and explosiveDamageRange conatants, but is there an easy way to change damage of rest randomtypes? DRT_UFO_WITH_TWO_DICE, DRT_EASY, from RuleDamageType? Or is this too complex?

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9076
    • View Profile
Re: the ability to change damageRange of all randomtype
« Reply #1 on: August 22, 2024, 05:58:53 pm »
That's a wrong question.

If you want to change the spread then use the randomtypes that support the spread, e.g. DRT_STANDARD or DRT_EXPLOSION or DRT_FIRE.

The other randomtypes were intentionally made to NOT support spread.
Changing it is easy, but against the intention, specification and documentation.

Offline Felis7

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: the ability to change damageRange of all randomtype
« Reply #2 on: August 22, 2024, 09:42:37 pm »
Maybe I'm explaining it wrong, sorry.
I'm playing mod Xpirates, аll types of damage(randomtypes) are used there on weapons, such as 0-200, 50-150, 0-200*(two_dice), 50-200. If I change damagerange, the others remain as they are (drt_ufo_with_two_dice, drt_easy), if I want to reduce the spread, e.g. set damagerange 25,  there are still others with a large spread(0-200*,50-200). So I wanted to ask if it is possible to change them.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9076
    • View Profile
Re: the ability to change damageRange of all randomtype
« Reply #3 on: August 22, 2024, 11:38:26 pm »
No, it is not possible to change them like that.
Intentionally.