emipa606 / YayosCombat3

Repository for the Rimworld mod named Yayo's Combat 3 (Continued)
https://steamcommunity.com/sharedfiles/filedetails/?id=2854006492
MIT License
1 stars 2 forks source link

Fixed "Attack" hostility response mode errors when animations are enabled #2

Closed ChrisF-127 closed 2 years ago

ChrisF-127 commented 2 years ago

Removed the Pawn_MeleeVerbs_ChooseMeleeVerb_Patch, I could only make out one difference compared to the original: Patch uses "else if (Rand.Chance(0.04f))" while the original checks the same flag that was set previously. As the patch has another chance for a "false", "SetCurMeleeVerb" will be executed using null parameters sometimes, which caused an error to be thrown.

Therefore I remove the patch completely.

emipa606 commented 2 years ago

Thanks! Should be added in 0f0d21d