add support for PSO DC v1/v2

This commit is contained in:
Martin Michelsen
2022-08-27 01:34:49 -07:00
parent 4abd91cb8f
commit 5d3d1e1900
30 changed files with 4004 additions and 585 deletions
+3 -1
View File
@@ -172,7 +172,9 @@ void player_use_item(shared_ptr<Client> c, size_t item_index) {
}
}
bool should_delete_item = true;
// TODO: It appears that on DC, using an item should NOT delete it from the
// player's inventory - the client will send a followup 6x29 to do that.
bool should_delete_item = (c->version() != GameVersion::DC);
auto& item = c->game_data.player()->inventory.items[item_index];
if (item.data.data1w[0] == 0x0203) { // technique disk