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:
@@ -1841,7 +1841,7 @@ int map_addflooritem(struct item *item, int amount, int16 m, int16 x, int16 y, i
|
||||
|
||||
nullpo_ret(item);
|
||||
|
||||
if (!(flags&4) && battle_config.item_onfloor && (itemdb_traderight(item->nameid)&1))
|
||||
if (!(flags&4) && battle_config.item_onfloor && (itemdb_traderight(item->nameid).trade))
|
||||
return 0; //can't be dropped
|
||||
|
||||
if (!map_searchrandfreecell(m,&x,&y,flags&2?1:0))
|
||||
|
||||
Reference in New Issue
Block a user