[0.18.22] Impact resistance not applied before energy shield in vehicle

Bugs that are actually features.
xlomkn
Burner Inserter
Burner Inserter
Posts: 18
Joined: Wed Dec 14, 2016 8:17 pm
Contact:

[0.18.22] Impact resistance not applied before energy shield in vehicle

Post by xlomkn »

Hi,

Thanks for your great job !

As stated in the wiki, resistances are applied before depleting the energy shield.
Seems to me it should be the same when using an energy shield in a vehicle. It does not works, at least with impact resistance.

To reproduce, modify the tank prototype to add an equipment grid, to make it not immune to rock impact and to change impact resistance to 100%. Add generator, batteries and energy shields in the grid and drive on rocks : energy shield get depleted and hit points don't. Energy shield should not be depleted by impacts.
I've made a small mod to make it easier (attachement) to reproduce.

I didn't found similar issue in the forum, so here is a new bug report.
I've also attached logs.

Thanks
Attachments
TestImpactRes_0.1.0.zip
(1.72 KiB) Downloaded 73 times
factorio-current.log
(4.56 KiB) Downloaded 69 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14264
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.18.22] Impact resistance not applied before energy shield in vehicle

Post by Rseding91 »

Thanks for the report. That damage reduction logic only applies to armor your character wears. If you put resistances on the character entity itself you'll find that it doesn't effect energy shield damage at all: the same as how the vehicle works when it uses shields.

That's not going to be changing any time soon because it would mean re-working the damage logic for entities and that's not something we're looking to change at this point in development.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”