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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user