mirror of
https://github.com/zeldaret/botw
synced 2026-05-30 00:46:35 -04:00
query: Implement CheckContainerItem
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "Game/AI/Query/queryCheckContainerItem.h"
|
||||
#include <evfl/query.h>
|
||||
#include "KingSystem/ActorSystem/actActorUtil.h"
|
||||
#include "KingSystem/ActorSystem/actTag.h"
|
||||
|
||||
namespace uking::query {
|
||||
|
||||
@@ -7,9 +9,14 @@ CheckContainerItem::CheckContainerItem(const InitArg& arg) : ksys::act::ai::Quer
|
||||
|
||||
CheckContainerItem::~CheckContainerItem() = default;
|
||||
|
||||
// FIXME: implement
|
||||
int CheckContainerItem::doQuery() {
|
||||
return -1;
|
||||
if (ksys::act::hasTag(mPorchItemName, ksys::act::tags::HeartContainer))
|
||||
return 1;
|
||||
|
||||
if (ksys::act::hasTag(mPorchItemName, ksys::act::tags::StaminaContainer))
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void CheckContainerItem::loadParams(const evfl::QueryArg& arg) {
|
||||
|
||||
Reference in New Issue
Block a user