blob: 0d712b49b1a8595d1b5d7d101485de78a0a482a4 (
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
|
#include "Game/AI/Query/queryHasItemDyeSpecifiedColor.h"
#include <evfl/Query.h>
#include "KingSystem/GameData/gdtCommonFlagsUtils.h"
namespace uking::query {
HasItemDyeSpecifiedColor::HasItemDyeSpecifiedColor(const InitArg& arg)
: ksys::act::ai::Query(arg) {}
HasItemDyeSpecifiedColor::~HasItemDyeSpecifiedColor() = default;
int HasItemDyeSpecifiedColor::doQuery() {
s32 state = ksys::gdt::getFlag_Shop_ItemState();
switch (state) {
case 0:
case 9:
return 1;
case 8:
return 0;
default:
break;
}
return 0;
}
void HasItemDyeSpecifiedColor::loadParams(const evfl::QueryArg& arg) {}
void HasItemDyeSpecifiedColor::loadParams() {}
} // namespace uking::query
|