Converted Reading Spellbook Database to YAML (#4440)

* Split database between pre-renewal and renewal.
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
Aleos
2019-12-20 12:37:16 -05:00
committed by GitHub
parent 77045ef287
commit 77d86c6da5
13 changed files with 341 additions and 129 deletions

View File

@@ -1634,19 +1634,6 @@ bool itemdb_isNoEquip(struct item_data *id, uint16 m) {
return false;
}
/**
* Check if item is available in spellbook_db or not
* @param nameid
* @return True if item is spellbook; False if not
*/
bool itemdb_is_spellbook2(unsigned short nameid) {
unsigned char i;
if (!nameid || !itemdb_exists(nameid) || !skill_spellbook_count)
return false;
ARR_FIND(0, MAX_SKILL_SPELLBOOK_DB, i, skill_spellbook_db[i].nameid == nameid);
return i == MAX_SKILL_SPELLBOOK_DB ? false : true;
}
/**
* Retrieves random option data
*/