Skip to content

Add more fallbacks in Battle code & Super Cutins

NerduMiner requested to merge nerdyminer18/srb2p-public:battle-fallbacks into next

This is a bigger merge request than the others, though I tried my best to keep the commits concise to battle-related things. Heres a summarized list of whats been added:

Fallbacks

  • Fallbacks in BTL_getSkillCard and BTL_getPersona to prevent invalid or partially invalid subs and skill cards from being added to shuffle time.
  • Fallback in P_generateSubpersona to allow subs with no skilltable to be handled
  • Fallbacks in drawSubpersonaSelection and subpersona inventory menu in Pause_MP.LUA for invalid sprite, frame, and stat definitions on subs
  • Fallback to CUTIN_D in drawPlayerCutin for invalid cutin patches

Additions

  • Warn user when BTL_getSkillCard, BTL_getPersona, and SAVE_fixups attempt to handle invalid subpersonas
  • Support for Super Cutins with the hudscutin charStats variable for parity with hudbusts and hudaoas
  • Invalid subpersonas in saves(usually due to missing mods) becoming malformed Jack Frost's with the stats and skills of original subpersona.

Bug Fixes

  • COND_SUPER status effect will no longer try to access colors outside of the valid range of SKINCOLOR's
Edited by NerduMiner

Merge request reports