mirror of
https://github.com/rafi1212122/BLHX.Server.git
synced 2025-12-15 07:54:36 +01:00
added all params to player database
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user