Topic on Talk:Injury

Jump to navigation Jump to search

Punches don't cause eye injury?

5
Summary by GarbageDay

No blunt type damage effects eyes.

GarbageDay (talkcontribs)

Modder here: Just sunk some hours into fiddling with body coverage percents, wondering why my alien's eyes weren't being hit while i had them punched to death by humans.


I finally used a knife and instantly caused eye injuries.


I do believe Ludeon disallowed punch injuries to eyes. Need someone else to test to confirm and then update the wiki.

Harakoni (talkcontribs)

Damage types have specific behaviours in what they can and cant' target and how damage propagates. Iirc Blunt damage can't damage internal body parts directly, that sounds like a likely cause.

Are you using an existing body definition for your alien or did you make your own?

GarbageDay (talkcontribs)

It's a custom body def but only the coverages are changed, bodyparts are all defaults.

Internal/External was a thing i considered but discarded (thats usually on stuff like flames/AOE damage) but you did get me to check the eye organ def and it turns out the hitChance for *all* blunt is just completely turned off on eyes. Newer change i guess?

I suppose they had too many mental breaks poking out eyes and had to fix it. Not a great way to have done it though.

 <BodyPartDef>
   <defName>Eye</defName>
   <label>eye</label>
    [...]
 
   <hitChanceFactors>
     <...>
       <key>Blunt</key>
       <value>0</value>
     <...>
   </hitChanceFactors>
 </BodyPartDef>

Edit: thanks for the same day response

Harakoni (talkcontribs)

Oh interesting, I'll see what other exceptions there are and add them to Damage types and the body part tables.

And no worries, I hope I was at least somewhat helpful.

Harakoni (talkcontribs)

Oh weird. Eyes are apparently the only thing with a specific damage type immunity. Added to Damage Types#Blunt and to Template: Animal Health Table.

IF thats the end of this topic, you can mark it resolved with the "..." in the top right hand corner.