| 1422 | } |
| 1423 | |
| 1424 | static void check_bash_items( const map_bash_info &mbi, const std::string &id, bool is_terrain ) |
| 1425 | { |
| 1426 | if( !item_group::group_is_defined( mbi.drop_group ) ) { |
| 1427 | debugmsg( "%s: bash result item group %s does not exist", id.c_str(), mbi.drop_group.c_str() ); |
| 1428 | } |
| 1429 | if( mbi.str_max != -1 ) { |
| 1430 | if( is_terrain && mbi.ter_set.is_empty() ) { // Some tiles specify t_null explicitly |
| 1431 | debugmsg( "bash result terrain of %s is undefined/empty", id.c_str() ); |
| 1432 | } |
| 1433 | if( !mbi.ter_set.is_valid() ) { |
| 1434 | debugmsg( "bash result terrain %s of %s does not exist", mbi.ter_set.c_str(), id.c_str() ); |
| 1435 | } |
| 1436 | if( !mbi.furn_set.is_valid() ) { |
| 1437 | debugmsg( "bash result furniture %s of %s does not exist", mbi.furn_set.c_str(), id.c_str() ); |
| 1438 | } |
| 1439 | } |
| 1440 | } |
| 1441 | |
| 1442 | static void check_decon_items( const map_deconstruct_info &mbi, const std::string &id, |
| 1443 | bool is_terrain ) |