Converted item database to YAML (#4335)
* Combines item_avail, item_buyingstore, item_delay, item_flag, item_nouse, item_stack, and item_trade databases into one. * General cleanups and optimizations. * Includes CSV2YAML conversion tool. * Includes YAML2SQL conversion tool. * Adjusts dummy_item from being created by malloc and now creates it by make_shared. * Item combos are now stored as a STL. Thanks to @Lemongrass3110, @Atemo, and @cydh! Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
@@ -451,7 +451,7 @@ bool vending_searchall(struct map_session_data* sd, const struct s_search_store_
|
||||
if( itemdb_isspecial(it->card[0]) ) { // something, that is not a carded
|
||||
continue;
|
||||
}
|
||||
slot = itemdb_slot(it->nameid);
|
||||
slot = itemdb_slots(it->nameid);
|
||||
|
||||
for( c = 0; c < slot && it->card[c]; c ++ ) {
|
||||
ARR_FIND( 0, s->card_count, cidx, s->cardlist[cidx].itemId == it->card[c] );
|
||||
|
||||
Reference in New Issue
Block a user