Modularize Hurt Container mode hook (#5874)
* Modularize Hurt Container mode hook * Hook condition was wrong - fixed it * Change type of hurtEnabled for clarity * Change type back to bool * Add VB hook * Don't duplicate health capacity modifier calculation * Add constants, replace magic numbers * Clang format * Publicize more health unit macros * Make mod file self-contained
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
#include "soh/Enhancements/randomizer/randomizer_entrance.h"
|
||||
#include "soh/Enhancements/boss-rush/BossRush.h"
|
||||
|
||||
#define FULL_HEART_HEALTH 0x10
|
||||
#define STARTING_HEALTH (3 * FULL_HEART_HEALTH)
|
||||
#define MAX_HEALTH (20 * FULL_HEART_HEALTH)
|
||||
|
||||
typedef enum {
|
||||
/* 0x0 */ MAGIC_STATE_IDLE, // Regular gameplay
|
||||
/* 0x1 */ MAGIC_STATE_CONSUME_SETUP, // Sets the speed at which magic border flashes
|
||||
|
||||
Reference in New Issue
Block a user