mirror of
https://github.com/zeldaret/botw
synced 2026-08-19 13:33:23 -04:00
query: Implement CheckFame
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "Game/AI/Query/queryCheckFame.h"
|
||||
#include <evfl/query.h>
|
||||
#include "KingSystem/GameData/gdtManager.h"
|
||||
|
||||
namespace uking::query {
|
||||
|
||||
@@ -7,9 +8,16 @@ CheckFame::CheckFame(const InitArg& arg) : ksys::act::ai::Query(arg) {}
|
||||
|
||||
CheckFame::~CheckFame() = default;
|
||||
|
||||
// FIXME: implement
|
||||
int CheckFame::doQuery() {
|
||||
return -1;
|
||||
auto* gdm = ksys::gdt::Manager::instance();
|
||||
if (!gdm)
|
||||
return 0;
|
||||
|
||||
int fame = 0;
|
||||
if (!gdm->getParamBypassPerm().get().getS32(&fame, "FamouseValue")) // sic
|
||||
return 0;
|
||||
|
||||
return fame >= *mValue;
|
||||
}
|
||||
|
||||
void CheckFame::loadParams(const evfl::QueryArg& arg) {
|
||||
|
||||
Reference in New Issue
Block a user