blob: 0303af85e08945ec7e224829d91d702d082136c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#include "Player/LinkStateMove.hpp"
#include "Unknown/UnkStruct_020eec9c.hpp"
unk32 LinkStateMove::data_ov000_020e56f0 = 0x800;
THUMB void LinkStateMove::vfunc_00() {}
ARM LinkStateId LinkStateMove::GetId() {
return LinkStateId_Move;
}
THUMB void LinkStateMove::LoadBhio() {
// Breath volume decay rate
this->GetBhio0()->GetField2(true, 'LMOV', "息吹きボリューム低下率", &data_ov000_020e56f0, 8, 0, 0x1000);
}
ARM void LinkStateMove::OnStateEnter() {
this->mUnk_0c = 0;
this->mUnk_10 = 0;
this->mUnk_12 = 0;
if (this->mUnk_14 == 0) {
return;
}
EquipItem *sword = this->GetEquipItem(ItemFlag_OshusSword);
sword->UpdateInUse(1);
EquipItem *shield = this->GetEquipItem(ItemFlag_WoodenShield);
shield->UpdateInUse(1);
PlayerBase::GetEquipSword()->func_ov000_020c06b0(-1);
data_ov000_020eec9c.func_ov000_020d77e4(0xD);
}
ARM void LinkStateMove::OnStateLeave(s32 param1) {
LinkStateBase::OnStateLeave(param1);
this->mUnk_14 = 0;
this->mUnk_15 = 0;
this->mUnk_16 = 0;
}
ARM bool LinkStateMove::vfunc_24(s32 param1) {
if (this->GetHealth() > 0) {
return LinkStateBase::vfunc_24(param1);
}
switch (param1) {
case 2:
return true;
default:
return false;
}
}
ARM bool LinkStateMove::func_ov00_020a8f2c() {
static unk32 data_ov000_020e56f4 = 0x100;
return this->mUnk_0c > data_ov000_020e56f4;
}
ARM bool LinkStateMove::func_ov00_020a8f4c() {
if (this->mUnk_15) {
return false;
}
this->mUnk_15 = true;
this->mUnk_16 = false;
return true;
}
|