summaryrefslogtreecommitdiff
path: root/src/d/d_msg_object.cpp
diff options
context:
space:
mode:
authorCarco_21 <144170194+carter-ktb21@users.noreply.github.com>2025-08-08 14:39:26 -0400
committerGitHub <noreply@github.com>2025-08-08 21:39:26 +0300
commite0b1fe92b1e79b5b93e8a3df6ee56e5771e80915 (patch)
tree6a34a131100ef6c58171b7a1e9e4e1be0e65fb18 /src/d/d_msg_object.cpp
parent9fbbec4326a5fcc9443e219415386da36b8ec5e8 (diff)
ChkBit comments and enum work (#2571)
* Jagar cleanup * saru work * e_fm work * gob enum added * gob cleanup * gob anm enums * dComIfGs_isEventBit comments added * More bit work and besu enum work * Maybe fixed the issue?
Diffstat (limited to 'src/d/d_msg_object.cpp')
-rw-r--r--src/d/d_msg_object.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/d/d_msg_object.cpp b/src/d/d_msg_object.cpp
index 1c86837757..d09a28e72f 100644
--- a/src/d/d_msg_object.cpp
+++ b/src/d/d_msg_object.cpp
@@ -1166,10 +1166,13 @@ void dMsgObject_c::inputProc() {
if (isSend()) {
field_0x199 = 0;
if (mDoCPd_c::getTrigA(0)) {
+ /* dSv_event_tmp_flag_c::T_0080 - Kakariko Village - Put money in fundraiser box */
BOOL iVar2 = dComIfGs_isTmpBit(dSv_event_tmp_flag_c::tempBitLabels[80]);
+ /* dSv_event_flag_c::F_0802 - Faron Woods - Trill attacks when stealing */
if (getInputValue() > 0 && !dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[802])) {
onPaymentFlagLocal();
}
+
dComIfGp_setItemRupeeCount(-getInputValue());
if (iVar2) {
if (getInputValue() > 0) {
@@ -1177,17 +1180,21 @@ void dMsgObject_c::inputProc() {
getFundRaisingValue();
dMsgObject_getFundRaising();
if (dMsgObject_getFundRaising() >= getFundRaisingValue() &&
+ /* dSv_event_flag_c::M_091 - Kakariko Village - Buy out fundraiser amount (Malo becomes nice) */
!dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[124]))
{
+ /* dSv_event_flag_c::F_0376 - Kakariko Village - Gathered funds for bridge repair! (set by program after raising funds) */
if (!dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[376])) {
dComIfGs_onEventBit(dSv_event_flag_c::saveBitLabels[376]);
dMsgObject_setFundRaising(0);
} else {
+ /* dSv_event_flag_c::M_091 - Kakariko Village - Buy out fundraiser amount (Malo becomes nice) */
dComIfGs_onEventBit(dSv_event_flag_c::saveBitLabels[124]);
dMsgObject_setFundRaising(0);
}
}
} else {
+ /* dSv_event_tmp_flag_c::T_0080 - Kakariko Village - Put money in fundraiser box */
dComIfGs_offTmpBit(dSv_event_tmp_flag_c::tempBitLabels[80]);
}
} else {
@@ -1197,6 +1204,7 @@ void dMsgObject_c::inputProc() {
dMeter2Info_offShopTalkFlag();
setStatusLocal(14);
} else if (mDoCPd_c::getTrigB(0)) {
+ /* dSv_event_tmp_flag_c::T_0080 - Kakariko Village - Put money in fundraiser box */
dComIfGs_offTmpBit(dSv_event_tmp_flag_c::tempBitLabels[80]);
dMeter2Info_offShopTalkFlag();
setStatusLocal(14);