Skip to content

Commit

Permalink
Clang-format changes exist. Committing.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico authored and github-actions[bot] committed Feb 8, 2024
1 parent 44223c5 commit 47d06c3
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions code/source/rnd/item_upgrade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,18 @@ namespace rnd {
}

GetItemID ItemUpgrade_CheckShield(game::SaveData* saveCtx, GetItemID getItemId) {
switch(saveCtx->equipment.sword_shield.shield) {
case game::ShieldType::NoShield:
return getItemId;
case game::ShieldType::HeroShield:
return getItemId;
case game::ShieldType::MirrorShield:
if (getItemId == GetItemID::GI_SHIELD_HERO)
return GetItemID::GI_RUPEE_SILVER; // Give siler rupee, close enough to same cost.
else return getItemId;
default:
switch (saveCtx->equipment.sword_shield.shield) {
case game::ShieldType::NoShield:
return getItemId;
case game::ShieldType::HeroShield:
return getItemId;
case game::ShieldType::MirrorShield:
if (getItemId == GetItemID::GI_SHIELD_HERO)
return GetItemID::GI_RUPEE_SILVER; // Give siler rupee, close enough to same cost.
else
return getItemId;
default:
return getItemId;
}
}

Expand Down

0 comments on commit 47d06c3

Please sign in to comment.