Skip to content

Commit

Permalink
Revert change to aftershock, for insert items in corpse on mapgen
Browse files Browse the repository at this point in the history
  • Loading branch information
Fris0uman committed Oct 12, 2022
1 parent 479b814 commit 5e76d8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion data/mods/Aftershock/itemgroups/loot_corpse_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"id": "afs_dead_survivor",
"type": "item_group",
"subtype": "collection",
"on_overflow": "spill",
"container-item": "afs_corpse_old",
"//": "The corpse of someone who managed to survive the Discontinuity for a while. Can spawn common weapons and misc gear.",
"entries": [
Expand Down
3 changes: 3 additions & 0 deletions src/item_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ static void put_into_container(
if( ctr.can_contain( *it ).success() ) {
const item_pocket::pocket_type pk_type = guess_pocket_for( ctr, *it );
ctr.put_in( *it, pk_type );
} else if( ctr.is_corpse() ) {
const item_pocket::pocket_type pk_type = guess_pocket_for( ctr, *it );
ctr.force_insert_item( *it, pk_type );
} else {
switch( on_overflow ) {
case Item_spawn_data::overflow_behaviour::none:
Expand Down

0 comments on commit 5e76d8a

Please sign in to comment.