CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
9.95k stars 4.08k forks source link

Electrical Conductivity of Equipped Items Poorly Calculated #10392

Closed thebombsauce closed 7 years ago

thebombsauce commented 9 years ago

When striking a shocker zombie the check for whether your weapon conducts electricity and shocks you is only calculated based on whether or not it contains a conductive material, not whether or not that conductive material offers a clear pathway to the user OR if they are wielding it with rubber gloves or another insulators. I would suggest adding a check for certain types of gloves as well as switching the conduction check to a flag that would be decided on an item by item basis.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

narc0tiq commented 9 years ago

That does sound like a good idea, thank you.

On Mon, Dec 8, 2014 at 11:26 PM, thebombsauce notifications@github.com wrote:

When striking a shocker zombie the check for whether your weapon conducts electricity and shocks you is only calculated based on whether or not it contains a conductive material, not whether or not that conductive material offers a clear pathway to the user OR if they are wielding it with rubber gloves or another insulators. I would suggest adding a check for certain types of gloves as well as switching the conduction check to a flag that would be decided on an item by item basis.

— Reply to this email directly or view it on GitHub https://github.com/CleverRaven/Cataclysm-DDA/issues/10392.

kevingranade commented 9 years ago

I think we can agree on two extremes, no metal weapons do not conduct, and all metal weapons do. For the in between ones, we can decide on a default, and only items that don't match the default need to have a flag.

Gloves that block conductivity would probably just need a flag.