Hello everyone. This is my first post here, so I'd like to begin by congratulating the devs & community on the splendid job you did with OpenXcom

I decided to start this thread after searching around - I didn't find any similar discussion.

The idea is to share/discuss information about the game mechanics and trying to understand the more complex calculations.

The goal is to help people get the right information, so modders can (hopefully) make better game-design decisions.

I will start with two questions of my own:

**1 - Base defense damage mechanics:**My base is attacked 2 times by alien Battleships:

The first time, 3 Plasma Defenses hit the UFO, and it is destroyed.

The second time, 4 Plasma Defenses hit the UFO, and it is destroyed.

Is the damage from base defenses subject to a random interval - like the battlescape damage that is randomly chosen from 0% to 200%?

If so, what is the random interval?

From what I've searched,

https://ufopaedia.org mentions nothing of the sort:

https://www.ufopaedia.org/index.php?title=Plasma_Defences**2 - Stun rod damage mechanics:**The stun rod damage type is Stun, but it is also a melee weapon.

Does melee resistance affect the stun rod damage?

If so - in what order do multiple resistances apply?

To simplify, imagine the stun rod deals 100 Stun Damage.

Now imagine that it hits an alien with 20% melee resist, and -20% stun resist.

Which scenario is correct?

100 -> -20% stun resist -> 120 -> 20% melee resist ->

**96 avg damage**OR

100 -> 20% melee resist -> 80 -> -20% stun resist ->

**96 avg damage** (same as above)

OR

100 -> 20%-20% melee+stun resist ->

**100 avg damage**OR

100-> -20% stun resist ->

**120 avg damage**https://ufopaedia.org also mentions nothing about the relationship between the stun rod and melee resistance (maybe that means there is no relationship...?):

https://www.ufopaedia.org/index.php?title=Stun_Rod