chrishayesmu / XCOM-LW-CommunityEdition

14 stars 2 forks source link

Perfect Information shows wrong shooter #63

Closed moben closed 2 years ago

moben commented 2 years ago

Perfect information says

Alien Carbine uses Fire on Civilian

Instead of

Floater uses Fire on Civilian

chrishayesmu commented 2 years ago

I just noticed this today too. Zero idea what caused it but I was planning to take a look. Have you noticed that it's inconsistent? I think it said "Floater" when doing Suppression.

chrishayesmu commented 2 years ago

Fixed in https://github.com/chrishayesmu/XCOM-LW-CommunityEdition/commit/3b7215417d30df6607a47a686a3cfb7a20a456a1

This was caused by a localization tag getting updated in the middle of building the Perfect Information string. That didn't happen in vanilla, but my rewrite of the hit/crit calculations made it possible.