Add MEGA Ocean Liner, split decks, and detailed ship materials
This commit is contained in:
@@ -13,13 +13,13 @@ namespace BigShipTycoon
|
||||
public readonly int DailyWage;
|
||||
private readonly int[] complement;
|
||||
|
||||
internal CrewRoleSpec(CrewRole role, string name, string description, int dailyWage, int coastal, int regional, int ocean)
|
||||
internal CrewRoleSpec(CrewRole role, string name, string description, int dailyWage, int coastal, int regional, int ocean, int mega)
|
||||
{
|
||||
Role = role;
|
||||
Name = name;
|
||||
Description = description;
|
||||
DailyWage = dailyWage;
|
||||
complement = new[] { coastal, regional, ocean };
|
||||
complement = new[] { coastal, regional, ocean, mega };
|
||||
}
|
||||
|
||||
internal int StarterCount(int hull) => complement[hull];
|
||||
@@ -31,20 +31,20 @@ namespace BigShipTycoon
|
||||
|
||||
public static readonly IReadOnlyList<CrewRoleSpec> Roles = new[]
|
||||
{
|
||||
new CrewRoleSpec(CrewRole.Bridge, "Bridge officers", "Stand navigation watches and keep crossings on schedule.", 350, 4, 6, 10),
|
||||
new CrewRoleSpec(CrewRole.Engineering, "Engineering", "Keep propulsion, water and treatment systems running.", 220, 8, 14, 24),
|
||||
new CrewRoleSpec(CrewRole.Galley, "Galley crew", "Cook meals and staff the galley during busy seatings.", 155, 12, 21, 36),
|
||||
new CrewRoleSpec(CrewRole.Housekeeping, "Hotel services", "Turn over cabins and serve guests at bars, shops and amenities.", 130, 14, 24, 44),
|
||||
new CrewRoleSpec(CrewRole.Laundry, "Laundry crew", "Wash cabin linen and towels using the ship’s freshwater supply.", 115, 5, 9, 18),
|
||||
new CrewRoleSpec(CrewRole.Entertainment, "Entertainment", "Run the ship’s shows and guest programming.", 140, 4, 7, 16)
|
||||
new CrewRoleSpec(CrewRole.Bridge, "Bridge officers", "Stand navigation watches and keep crossings on schedule.", 350, 4, 6, 10, 13),
|
||||
new CrewRoleSpec(CrewRole.Engineering, "Engineering", "Keep propulsion, water and treatment systems running.", 220, 8, 14, 24, 36),
|
||||
new CrewRoleSpec(CrewRole.Galley, "Galley crew", "Cook meals and staff the galley during busy seatings.", 155, 12, 21, 36, 65),
|
||||
new CrewRoleSpec(CrewRole.Housekeeping, "Hotel services", "Turn over cabins and serve guests at bars, shops and amenities.", 130, 14, 24, 44, 84),
|
||||
new CrewRoleSpec(CrewRole.Laundry, "Laundry crew", "Wash cabin linen and towels using the ship’s freshwater supply.", 115, 5, 9, 18, 36),
|
||||
new CrewRoleSpec(CrewRole.Entertainment, "Entertainment", "Run the ship’s shows and guest programming.", 140, 4, 7, 16, 33)
|
||||
};
|
||||
|
||||
internal static bool IsRole(CrewRole role) => (uint)role < (uint)Roles.Count;
|
||||
|
||||
public static int Minimum(Ship ship, CrewRole role) => role switch
|
||||
{
|
||||
CrewRole.Bridge => 2 + ship.HullIndex,
|
||||
CrewRole.Engineering => 4 + 2 * ship.HullIndex,
|
||||
CrewRole.Bridge => ship.HullIndex == Market.Mega ? 9 : 2 + ship.HullIndex,
|
||||
CrewRole.Engineering => ship.HullIndex == Market.Mega ? 15 : 4 + 2 * ship.HullIndex,
|
||||
_ => 0
|
||||
};
|
||||
|
||||
@@ -56,10 +56,10 @@ namespace BigShipTycoon
|
||||
int additional = role switch
|
||||
{
|
||||
CrewRole.Bridge => (extraDecks + 1) / 2,
|
||||
CrewRole.Engineering => extraDecks * 2 + ship.Count(Facility.Workshop),
|
||||
CrewRole.Galley => extraDecks + ship.Count(Facility.Galley) * 2,
|
||||
CrewRole.Engineering => extraDecks * 2 + ship.Count(Facility.Workshop) + ship.Count(Facility.EngineeringCenter) * 3,
|
||||
CrewRole.Galley => extraDecks + ship.Count(Facility.Galley) * 2 + ship.Count(Facility.ProductionGalley) * 5,
|
||||
CrewRole.Housekeeping => extraDecks * 2 + ship.SuiteBerths / 60,
|
||||
CrewRole.Laundry => extraDecks + ship.Beds / (100 + 75 * ship.HullIndex),
|
||||
CrewRole.Laundry => extraDecks + ship.Beds / (100 + 75 * ship.HullIndex) + ship.Count(Facility.LaundryPlant) * 4,
|
||||
CrewRole.Entertainment => ship.Entertainment / 190,
|
||||
_ => 0
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user