Mail support
Deploy Promiscuity Auth API / deploy (push) Successful in 48s
Deploy Promiscuity Character API / deploy (push) Successful in 59s
Deploy Promiscuity Inventory API / deploy (push) Successful in 46s
Deploy Promiscuity Locations API / deploy (push) Successful in 1m0s
Deploy Promiscuity Mail API / deploy (push) Successful in 1m9s
k8s smoke test / test (push) Successful in 9s
Deploy Promiscuity Auth API / deploy (push) Successful in 48s
Deploy Promiscuity Character API / deploy (push) Successful in 59s
Deploy Promiscuity Inventory API / deploy (push) Successful in 46s
Deploy Promiscuity Locations API / deploy (push) Successful in 1m0s
Deploy Promiscuity Mail API / deploy (push) Successful in 1m9s
k8s smoke test / test (push) Successful in 9s
This commit is contained in:
@@ -190,6 +190,18 @@ public class LocationStore
|
||||
return new InteractResult(InteractStatus.ObjectNotFound);
|
||||
if (!string.Equals(locationObject.ObjectId, objectId, StringComparison.Ordinal))
|
||||
return new InteractResult(InteractStatus.ObjectNotFound);
|
||||
if (string.Equals(locationObject.ObjectType, "mailbox", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return new InteractResult(
|
||||
InteractStatus.Ok,
|
||||
locationObject.ObjectId,
|
||||
locationObject.ObjectType,
|
||||
"",
|
||||
0,
|
||||
0,
|
||||
false,
|
||||
CloneLocationObject(locationObject));
|
||||
}
|
||||
if (!string.Equals(locationObject.ObjectType, "gatherable", StringComparison.OrdinalIgnoreCase))
|
||||
return new InteractResult(InteractStatus.UnsupportedObjectType);
|
||||
if (locationObject.State.RemainingQuantity <= 0)
|
||||
@@ -462,7 +474,9 @@ public class LocationStore
|
||||
biomeKey = await DetermineBiomeKeyAsync(location.Coord.X, location.Coord.Y, biomeDefinitions);
|
||||
var elevation = hasElevation ? location.Elevation : await DetermineElevationAsync(location.Coord.X, location.Coord.Y, biomeKey);
|
||||
|
||||
var migratedObject = TryMigrateLegacyResources(location) ?? CreateLocationObjectForBiome(biomeDefinitions, biomeKey, location.Coord.X, location.Coord.Y);
|
||||
var migratedObject = TryMigrateLegacyResources(location);
|
||||
if (migratedObject is null)
|
||||
migratedObject = CreateLocationObjectForBiome(biomeDefinitions, biomeKey, location.Coord.X, location.Coord.Y);
|
||||
var filter = Builders<Location>.Filter.And(
|
||||
Builders<Location>.Filter.Eq(l => l.Id, location.Id)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user