Rework No Heart Drops (#1448)

- Check the setting once in daItem_c::_daItem_create
This commit is contained in:
SuperDude88
2026-05-23 21:41:18 -04:00
committed by GitHub
parent ce0185adc4
commit beb4146f33
2 changed files with 5 additions and 60 deletions
+5
View File
@@ -268,6 +268,11 @@ int daItem_c::_daItem_create() {
}
m_itemNo = daItem_prm::getItemNo(this);
#if TARGET_PC
if (dusk::getSettings().game.noHeartDrops && isHeart(m_itemNo)) {
return cPhs_ERROR_e;
}
#endif
BOOL flag = dItem_data::chkFlag(m_itemNo, 2);
#if DEBUG