ksys/act: Add InfoCommon Bow and Master Sword functions

This commit is contained in:
Léo Lam
2021-01-22 12:34:38 +01:00
parent 73329896f9
commit 24bb3a679a
3 changed files with 56 additions and 10 deletions
@@ -115,6 +115,42 @@ bool getWeaponCommonPoweredSharpAddSurfMaster(const al::ByamlIter& iter) {
return InfoData::getBoolByKey(iter, "weaponCommonPoweredSharpAddSurfMaster");
}
const char* getBowArrowName(InfoData* data, const char* actor) {
return data->getString(actor, "bowArrowName");
}
bool getBowIsLeadShot(const al::ByamlIter& iter) {
return InfoData::getBoolByKey(iter, "bowIsLeadShot");
}
int getBowLeadShotNum(const al::ByamlIter& iter) {
return InfoData::getIntByKey(iter, "bowLeadShotNum");
}
bool getBowIsRapidFire(const al::ByamlIter& iter) {
return InfoData::getBoolByKey(iter, "bowIsRapidFire");
}
int getBowRapidFireNum(const al::ByamlIter& iter) {
return InfoData::getIntByKey(iter, "bowRapidFireNum");
}
int getMasterSwordTrueFormAttackPower(InfoData* data, const char* actor) {
return data->getInt(actor, "masterSwordTrueFormAttackPower", -1);
}
float getMasterSwordSearchEvilDist(InfoData* data, const char* actor) {
return data->getFloat(actor, "masterSwordSearchEvilDist", -1.0);
}
const char* getMasterSwordSleepActorName(InfoData* data, const char* actor) {
return data->getString(actor, "masterSwordSleepActorName");
}
const char* getMasterSwordTrueFormActorName(InfoData* data, const char* actor) {
return data->getString(actor, "masterSwordTrueFormActorName");
}
const char* getArmorNextRankName(InfoData* data, const char* actor) {
return data->getString(actor, "armorNextRankName", sead::SafeString::cEmptyString);
}