BattletechModders / MechEngineer

Mod for BattleTech that introduces many CBT mechanics to the MechLab
GNU Lesser General Public License v2.1
11 stars 21 forks source link

CASE not working if CustomUnits loads first #196

Closed CptMoore closed 3 years ago

CptMoore commented 3 years ago

Workaround: Make sure MechEngineer loads before CustomUnits (make CustomUnits depend on ME)

Issue: Both mods transpile Mech.DamageLocation and replace the GetPassthroughLocation method. Only the first will be able to succeed with standard harmony tools. Since Harmony doesn't provide post/pre for these inner changes to a method, we don't have a cheap way of coexisting.

Solutions:

https://discord.com/channels/565106671693856778/783304421194858556/784183665386717215

CptMoore commented 3 years ago

avoiding the transpiler using the global state idea