BattletechModders / PanicSystem

Simulates mechwarrior panic and automatic ejections
The Unlicense
4 stars 7 forks source link

PR with multiple changes #10

Closed fmnatic closed 4 years ago

fmnatic commented 4 years ago

Change Log:

  1. Fix a minor bug in panic saving throw calc for mechs, where incorrect location was used.
  2. Refactored harmony patches so that they are not patched in the middle of the attack sequence.
  3. Fix a Major issue in the mission report, where reported vehicle/mech ejections for a pilot with no vehicle/mech ejection, would reuse the value of the last pilot on the UI who had such an ejections. (sometimes even from previous mission reports.).
  4. Added Loki's improved panic calculation improvements for mechs, onto vehicles too. Panic saving throw for vehicles now looks at damage to each location rather than the total damage across locations.
  5. Panic saves can now be triggered by damage from any source. - walking through flames, minefields,friendly fire,incidental fire. Adds the possibility of ejections at times when the mech isn't actively being shot at.
  6. Heat damage panic checks are now aware of mechs without a Heat stack. (RT battle armor.)
  7. Added builds with NO CAC dependency, for mods not using CAC
  8. Fix gnivler#54 (unexpected confident state.) Panic state improvements now check if Alone and if mech is critically damage v/s existing mod.json MechHealthForCrit.
  9. Fixed "OneChangePerTurn" : false to require a 10% cumulative damage before next panic test. "OneChangePerTurn" : false is now the recommended setting since it works well with damage from any source.
  10. Fix bug with pilots otherkills not updating for vehicle ejections.
  11. Alone penalty is now based on percentage of allies alive
  12. Added a setting to disable the mods combat save abilities for mods that don't support in mission saves.
    //save mod state to file during combat; Set to false in mods like Rt that don't support in mission saves
    "CombatSaves": false,

13 Added an RT tested and balanced mod.json https://raw.githubusercontent.com/BattletechModders/PanicSystem/bbf337c5dbc94d163736d33e60d0c647dd380010/assets/mod.json