make $item more powerful

This commit is contained in:
Martin Michelsen
2023-01-19 19:12:12 -08:00
parent 7a5e759d9a
commit 9b136d9444
12 changed files with 68 additions and 66 deletions
+3 -8
View File
@@ -881,13 +881,8 @@ static bool drop_item(
PlayerInventoryItem item;
// If there's an override item set (via the $item command), use that item code
if (l->next_drop_item.data.data1d[0]) {
item = l->next_drop_item;
l->next_drop_item.clear();
// If the game is BB, run the rare + common drop logic
} else if (l->version == GameVersion::BB) {
if (l->version == GameVersion::BB) {
if (!l->common_item_creator.get()) {
throw runtime_error("received box drop subcommand without item creator present");
}
@@ -932,8 +927,8 @@ static bool drop_item(
}
}
// If the game is not BB and there's no override item, forward the request to
// the leader instead of generating the item drop command
// If the game is not BB, forward the request to the leader instead of
// generating the item drop command
} else {
return false;
}