summaryrefslogtreecommitdiff
path: root/src/00_Core/Player/LinkStateItem.cpp
diff options
context:
space:
mode:
authorYanis <35189056+Yanis002@users.noreply.github.com>2025-07-16 15:33:58 +0200
committerGitHub <noreply@github.com>2025-07-16 15:33:58 +0200
commit7a01af4783ca2904590ed0ba6e61261d98706f47 (patch)
tree5491fa87030e5c32a11e536607a14dca459bf8dc /src/00_Core/Player/LinkStateItem.cpp
parentce9f96d932c0028262821ff3fc39a4b05c977285 (diff)
update .clang-format rules (#120)
Diffstat (limited to 'src/00_Core/Player/LinkStateItem.cpp')
-rw-r--r--src/00_Core/Player/LinkStateItem.cpp44
1 files changed, 31 insertions, 13 deletions
diff --git a/src/00_Core/Player/LinkStateItem.cpp b/src/00_Core/Player/LinkStateItem.cpp
index 9e42961f..ab629db6 100644
--- a/src/00_Core/Player/LinkStateItem.cpp
+++ b/src/00_Core/Player/LinkStateItem.cpp
@@ -19,8 +19,10 @@ ARM LinkStateId LinkStateItem::GetId() {
ARM s32 LinkStateItem::IsHammerEquipped() {
switch (this->mEquipId) {
- case ItemFlag_Hammer: return 0;
- default: return -1;
+ case ItemFlag_Hammer:
+ return 0;
+ default:
+ return -1;
}
}
@@ -40,20 +42,32 @@ ARM void LinkStateItem::OnStateLeave(s32 param1) {
}
data_027e1098->func_ov014_0211fd04();
break;
- case ItemFlag_OshusSword: break;
- case ItemFlag_WoodenShield: break;
- case ItemFlag_Boomerang: break;
- case ItemFlag_BombBag: this->StopUsingBomb(param1); break;
- case ItemFlag_Bow: break;
- case ItemFlag_GrapplingHook: this->StopUsingRope(); break;
- case ItemFlag_Hammer: this->StopUsingHammer(); break;
+ case ItemFlag_OshusSword:
+ break;
+ case ItemFlag_WoodenShield:
+ break;
+ case ItemFlag_Boomerang:
+ break;
+ case ItemFlag_BombBag:
+ this->StopUsingBomb(param1);
+ break;
+ case ItemFlag_Bow:
+ break;
+ case ItemFlag_GrapplingHook:
+ this->StopUsingRope();
+ break;
+ case ItemFlag_Hammer:
+ this->StopUsingHammer();
+ break;
case ItemFlag_PotionA:
case ItemFlag_PotionB:
UnkStruct_027e103c *pData_027e103c = data_027e103c;
pData_027e103c->mUnk_2a = 0;
pData_027e103c->func_ov000_020cf9dc(0, 0);
break;
- case ItemFlag_Shovel: this->StopUsingScoop(); break;
+ case ItemFlag_Shovel:
+ this->StopUsingScoop();
+ break;
}
if (this->mEquipId != ItemFlag_None) {
@@ -63,10 +77,14 @@ ARM void LinkStateItem::OnStateLeave(s32 param1) {
switch (this->mEquipId) {
case ItemFlag_None:
- case ItemFlag_OshusSword: break;
- case ItemFlag_WoodenShield: break;
+ case ItemFlag_OshusSword:
+ break;
+ case ItemFlag_WoodenShield:
+ break;
case ItemFlag_PotionA:
- case ItemFlag_PotionB: this->EquipItem_vfunc_28(); break;
+ case ItemFlag_PotionB:
+ this->EquipItem_vfunc_28();
+ break;
default:
this->EquipItem_vfunc_28();
if (param1 != 4 && param1 != 2) {