mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-27 06:31:42 -04:00
Rework No Heart Drops (#1448)
- Check the setting once in daItem_c::_daItem_create
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user