Skip to content

Commit

Permalink
Revert "NPC死亡时,掉落物附着尸体上"
Browse files Browse the repository at this point in the history
This reverts commit a099c9c.
  • Loading branch information
WhiteCloud0123 committed Jul 14, 2023
1 parent a099c9c commit a483c6b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9317,10 +9317,8 @@ void Character::place_corpse()
item body = item::make_corpse( mtype_id::NULL_ID(), calendar::turn, get_name() );
body.set_item_temperature( units::from_celsius( 37 ) );
map &here = get_map();

for( item *itm : tmp ) {
item& i = *itm;
body.force_insert_item(i,item_pocket::pocket_type::CONTAINER);
here.add_item_or_charges( pos(), *itm );
}
for( const bionic &bio : *my_bionics ) {
if( item::type_is_defined( bio.info().itype() ) ) {
Expand Down Expand Up @@ -9362,8 +9360,7 @@ void Character::place_corpse( const tripoint_abs_omt &om_target )
std::vector<item *> tmp = inv_dump();
item body = item::make_corpse( mtype_id::NULL_ID(), calendar::turn, get_name() );
for( item *itm : tmp ) {
item& i = *itm;
body.force_insert_item(i, item_pocket::pocket_type::CONTAINER);
bay.add_item_or_charges( fin, *itm );
}
for( const bionic &bio : *my_bionics ) {
if( item::type_is_defined( bio.info().itype() ) ) {
Expand Down

0 comments on commit a483c6b

Please sign in to comment.