added all params to player database

This commit is contained in:
raphaeIl
2024-04-05 01:35:08 -04:00
parent d9602a58f3
commit bbe0d7ab11
9 changed files with 1437 additions and 22 deletions

View File

@@ -17,7 +17,7 @@ namespace BLHX.Server.Game.Commands {
base.Execute(args);
if (Unlock is null) {
Logger.c.Log($"Usage: /ship unlock=<all|clear|shipId> rarity=1-6");
connection.SendSystemMsg($"Usage: /ship unlock=<all|clear|shipId> rarity=1-6");
return;
}
@@ -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)).ToList();
List<PlayerShip> all_ships = all_ship_ids.Select(ship_id => CreateShipFromId((uint)ship_id, connection.player.Uid)).Take(amount).ToList();
all_ships.AddRange(GetDefaultShips(connection.player.Ships)); // add the defaults
connection.player.Ships = all_ships;