mirror of
https://github.com/zeldaret/botw
synced 2026-05-23 15:01:35 -04:00
29 lines
721 B
C++
29 lines
721 B
C++
#include "Game/AI/Query/queryCheckSellResult.h"
|
|
#include <evfl/Query.h>
|
|
#include "KingSystem/GameData/gdtCommonFlagsUtils.h"
|
|
|
|
namespace uking::query {
|
|
|
|
CheckSellResult::CheckSellResult(const InitArg& arg) : ksys::act::ai::Query(arg) {}
|
|
|
|
CheckSellResult::~CheckSellResult() = default;
|
|
|
|
int CheckSellResult::doQuery() {
|
|
if (ksys::gdt::getFlag_Shop_IsDecide()) {
|
|
s32 flag = ksys::gdt::getFlag_Shop_CurrentItemState();
|
|
if (flag == 0)
|
|
return 0;
|
|
if (flag == 0xD)
|
|
return 1;
|
|
if (flag == 0xE)
|
|
return 2;
|
|
}
|
|
return 3;
|
|
}
|
|
|
|
void CheckSellResult::loadParams(const evfl::QueryArg& arg) {}
|
|
|
|
void CheckSellResult::loadParams() {}
|
|
|
|
} // namespace uking::query
|