23 lines
603 B
C++
23 lines
603 B
C++
#include <string>
|
|
|
|
#include "cata_catch.h"
|
|
#include "coordinates.h"
|
|
#include "item.h"
|
|
#include "map.h"
|
|
#include "type_id.h"
|
|
|
|
static const field_type_str_id field_fd_acid( "fd_acid" );
|
|
|
|
static const itype_id itype_acidbomb_test( "acidbomb_test" );
|
|
|
|
TEST_CASE( "throw_activation", "[item]" )
|
|
{
|
|
item acid_bomb( itype_acidbomb_test );
|
|
|
|
SECTION( "acid_bomb_hits_ground" ) {
|
|
acid_bomb.activate_thrown( tripoint_bub_ms::zero );
|
|
get_map().get_field( tripoint_bub_ms::zero, field_fd_acid );
|
|
CHECK( get_map().get_field( tripoint_bub_ms::zero, field_fd_acid ) != nullptr );
|
|
}
|
|
}
|