add item handling and some gacha stuff

This commit is contained in:
raphaeIl
2024-04-04 05:02:15 -04:00
parent 91042d06eb
commit d9602a58f3
7 changed files with 185 additions and 67 deletions

View File

@@ -31,7 +31,7 @@ namespace BLHX.Server.Game.Commands {
all_ship_ids = Data.ShipDataStatistics.Where(ship_data => all_ship_ids.Contains(ship_data.Key) && ship_data.Value.Rarity == rarity).ToDictionary().Keys.ToList();
}
List<PlayerShip> all_ships = all_ship_ids.Select(ship_id => CreateShipFromId((uint)ship_id, connection.player.Uid)).Take(amount).ToList();
List<PlayerShip> all_ships = all_ship_ids.Select(ship_id => CreateShipFromId((uint)ship_id, connection.player.Uid)).ToList();
all_ships.AddRange(GetDefaultShips(connection.player.Ships)); // add the defaults
connection.player.Ships = all_ships;