MCPcopy Create free account
hub / github.com/CleverRaven/Cataclysm-DDA / check_bash_items

Function check_bash_items

src/mapdata.cpp:1424–1440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1422}
1423
1424static 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
1442static void check_decon_items( const map_deconstruct_info &mbi, const std::string &id,
1443 bool is_terrain )

Callers 1

checkMethod · 0.85

Calls 3

c_strMethod · 0.45
is_emptyMethod · 0.45
is_validMethod · 0.45

Tested by

no test coverage detected