mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-10-07 10:33:37 +00:00
Factor out CollectHeartVessel (#1216)
This commit is contained in:
parent
385ad23949
commit
4ba815e4ef
@ -3,7 +3,7 @@ void CollectHeartVessel(void) {
|
||||
g_api.PlaySfx(NA_SE_PL_COLLECT_HEART);
|
||||
g_Status.hearts += HEART_VESSEL_RICHTER;
|
||||
|
||||
if (g_Status.heartsMax < g_Status.hearts) {
|
||||
if (g_Status.hearts > g_Status.heartsMax) {
|
||||
g_Status.hearts = g_Status.heartsMax;
|
||||
}
|
||||
} else {
|
||||
|
@ -121,20 +121,7 @@ void CollectSubweapon(u16 subWeaponIdx) {
|
||||
DestroyEntity(g_CurrentEntity);
|
||||
}
|
||||
|
||||
void CollectHeartVessel(void) {
|
||||
if (g_PlayableCharacter != PLAYER_ALUCARD) {
|
||||
g_api.PlaySfx(NA_SE_PL_COLLECT_HEART);
|
||||
g_Status.hearts += HEART_VESSEL_RICHTER;
|
||||
|
||||
if (g_Status.hearts > g_Status.heartsMax) {
|
||||
g_Status.hearts = g_Status.heartsMax;
|
||||
}
|
||||
} else {
|
||||
g_api.PlaySfx(NA_SE_PL_COLLECT_HEART);
|
||||
g_api.func_800FE044(HEART_VESSEL_INCREASE, 0x4000);
|
||||
}
|
||||
DestroyEntity(g_CurrentEntity);
|
||||
}
|
||||
#include "../collect_heart_vessel.h"
|
||||
|
||||
void CollectLifeVessel(void) {
|
||||
g_api.PlaySfx(NA_SE_PL_COLLECT_HEART);
|
||||
|
Loading…
Reference in New Issue
Block a user