void check_furniture_and_terrain() { for(std::vector<furn_t>::const_iterator a = furnlist.begin(); a != furnlist.end(); ++a) { const furn_t &f = *a; check_bash_items(f.bash, f.id, false); check_decon_items(f.deconstruct, f.id, false); if( !f.open.empty() && furnmap.count( f.open ) == 0 ) { debugmsg( "invalid furniture %s for opening %s", f.open.c_str(), f.id.c_str() ); } if( !f.close.empty() && furnmap.count( f.close ) == 0 ) { debugmsg( "invalid furniture %s for closing %s", f.close.c_str(), f.id.c_str() ); } } for(std::vector<ter_t>::const_iterator a = terlist.begin(); a != terlist.end(); ++a) { const ter_t &t = *a; check_bash_items(t.bash, t.id, true); check_decon_items(t.deconstruct, t.id, true); if( !t.transforms_into.empty() && termap.count( t.transforms_into ) == 0 ) { debugmsg( "invalid transforms_into %s for %s", t.transforms_into.c_str(), t.id.c_str() ); } if( !t.open.empty() && termap.count( t.open ) == 0 ) { debugmsg( "invalid terrain %s for opening %s", t.open.c_str(), t.id.c_str() ); } if( !t.close.empty() && termap.count( t.close ) == 0 ) { debugmsg( "invalid terrain %s for closing %s", t.close.c_str(), t.id.c_str() ); } } }
void check_furniture_and_terrain() { for( const furn_t& f : furnlist ) { check_bash_items(f.bash, f.id, false); check_decon_items(f.deconstruct, f.id, false); if( !f.open.empty() && furnmap.count( f.open ) == 0 ) { debugmsg( "invalid furniture %s for opening %s", f.open.c_str(), f.id.c_str() ); } if( !f.close.empty() && furnmap.count( f.close ) == 0 ) { debugmsg( "invalid furniture %s for closing %s", f.close.c_str(), f.id.c_str() ); } } for( const ter_t& t : terlist ) { check_bash_items(t.bash, t.id, true); check_decon_items(t.deconstruct, t.id, true); if( !t.transforms_into.empty() && termap.count( t.transforms_into ) == 0 ) { debugmsg( "invalid transforms_into %s for %s", t.transforms_into.c_str(), t.id.c_str() ); } if( !t.open.empty() && termap.count( t.open ) == 0 ) { debugmsg( "invalid terrain %s for opening %s", t.open.c_str(), t.id.c_str() ); } if( !t.close.empty() && termap.count( t.close ) == 0 ) { debugmsg( "invalid terrain %s for closing %s", t.close.c_str(), t.id.c_str() ); } } }
void check_furniture_and_terrain() { for(std::vector<furn_t>::const_iterator a = furnlist.begin(); a != furnlist.end(); ++a) { const furn_t &f = *a; check_bash_items(f.bash, f.id, false); check_decon_items(f.deconstruct, f.id, false); } for(std::vector<ter_t>::const_iterator a = terlist.begin(); a != terlist.end(); ++a) { const ter_t &t = *a; check_bash_items(t.bash, t.id, true); check_decon_items(t.deconstruct, t.id, true); } }
void furn_t::check() const { check_bash_items( bash, id.str(), false ); check_decon_items( deconstruct, id.str(), false ); if( !open.is_valid() ) { debugmsg( "invalid furniture %s for opening %s", open.c_str(), id.c_str() ); } if( !close.is_valid() ) { debugmsg( "invalid furniture %s for closing %s", close.c_str(), id.c_str() ); } }
void check_furniture_and_terrain() { for( const furn_t& f : furnlist ) { check_bash_items(f.bash, f.id, false); check_decon_items(f.deconstruct, f.id, false); if( !f.open.empty() && furnmap.count( f.open ) == 0 ) { debugmsg( "invalid furniture %s for opening %s", f.open.c_str(), f.id.c_str() ); } if( !f.close.empty() && furnmap.count( f.close ) == 0 ) { debugmsg( "invalid furniture %s for closing %s", f.close.c_str(), f.id.c_str() ); } } terrain_data.check(); }
void ter_t::check() const { check_bash_items( bash, id.str(), true ); check_decon_items( deconstruct, id.str(), true ); if( !transforms_into.is_valid() ) { debugmsg( "invalid transforms_into %s for %s", transforms_into.c_str(), id.c_str() ); } if( !open.is_valid() ) { debugmsg( "invalid terrain %s for opening %s", open.c_str(), id.c_str() ); } if( !close.is_valid() ) { debugmsg( "invalid terrain %s for closing %s", close.c_str(), id.c_str() ); } }
void ter_t::check() const { map_data_common_t::check(); check_bash_items( bash, id.str(), true ); check_decon_items( deconstruct, id.str(), true ); if( !transforms_into.is_valid() ) { debugmsg( "invalid transforms_into %s for %s", transforms_into.c_str(), id.c_str() ); } if( !open.is_valid() ) { debugmsg( "invalid terrain %s for opening %s", open.c_str(), id.c_str() ); } if( !close.is_valid() ) { debugmsg( "invalid terrain %s for closing %s", close.c_str(), id.c_str() ); } if( transforms_into && transforms_into == id ) { debugmsg( "%s transforms_into itself", id.c_str() ); } }