diff --git a/src/GameLogic/Administration/GameMasterItemFactory.cs b/src/GameLogic/Administration/GameMasterItemFactory.cs index 32fa74754f..ec268046b5 100644 --- a/src/GameLogic/Administration/GameMasterItemFactory.cs +++ b/src/GameLogic/Administration/GameMasterItemFactory.cs @@ -51,6 +51,7 @@ public static TemporaryItem CreateItem(ItemDefinition itemDefinition, ItemSpecif { var item = new TemporaryItem(); item.Definition = itemDefinition; + // The mobility talisman's durability represents remaining uses rather than quantity. var identifier = new ItemIdentifier(itemDefinition.Number, itemDefinition.Group); item.Durability = item.IsStackable() && identifier != ItemConstants.TalismanOfMobility diff --git a/src/GameLogic/PlayerActions/Trade/TradeAcceptAction.cs b/src/GameLogic/PlayerActions/Trade/TradeAcceptAction.cs index 4a6aab694c..0cb40bf101 100644 --- a/src/GameLogic/PlayerActions/Trade/TradeAcceptAction.cs +++ b/src/GameLogic/PlayerActions/Trade/TradeAcceptAction.cs @@ -31,7 +31,7 @@ public async ValueTask HandleTradeAcceptAsync(ITrader tradeAccepter, bool accept if (!await tradeAccepter.PlayerState.TryAdvanceToAsync(PlayerState.TradeOpened).ConfigureAwait(false) || !await tradePartner.PlayerState.TryAdvanceToAsync(PlayerState.TradeOpened).ConfigureAwait(false)) { - ////Something bad happened here... + // Failed to open the trade because a player could not enter the TradeOpened state. await this.CancelTradeAsync(tradeAccepter).ConfigureAwait(false); await this.CancelTradeAsync(tradePartner).ConfigureAwait(false); await tradePartner.InvokeViewPlugInAsync(p => p.ShowTradeRequestAnswerAsync(false)).ConfigureAwait(false); diff --git a/src/Persistence/EntityFramework/CachedRepository{T}.cs b/src/Persistence/EntityFramework/CachedRepository{T}.cs index 46aeb478ea..2d10151a36 100644 --- a/src/Persistence/EntityFramework/CachedRepository{T}.cs +++ b/src/Persistence/EntityFramework/CachedRepository{T}.cs @@ -37,7 +37,7 @@ public CachedRepository(IRepository baseRepository) protected IRepository BaseRepository { get; } /// - async ValueTask IRepository.GetAllAsync(CancellationToken cancellationToken = default) + async ValueTask IRepository.GetAllAsync(CancellationToken cancellationToken) { return await this.GetAllAsync(cancellationToken).ConfigureAwait(false); } @@ -58,7 +58,7 @@ public async ValueTask> GetAllAsync(CancellationToken cancellatio } /// - async ValueTask IRepository.GetByIdAsync(Guid id, CancellationToken cancellationToken = default) + async ValueTask IRepository.GetByIdAsync(Guid id, CancellationToken cancellationToken) { return await this.GetByIdAsync(id, cancellationToken).ConfigureAwait(false); } diff --git a/src/Persistence/EntityFramework/ConfigurationTypeRepository.cs b/src/Persistence/EntityFramework/ConfigurationTypeRepository.cs index f2e40ff466..f8cba563e7 100644 --- a/src/Persistence/EntityFramework/ConfigurationTypeRepository.cs +++ b/src/Persistence/EntityFramework/ConfigurationTypeRepository.cs @@ -63,7 +63,7 @@ public ValueTask> GetAllAsync(CancellationToken cancellationToken } /// - async ValueTask IRepository.GetAllAsync(CancellationToken cancellationToken = default) + async ValueTask IRepository.GetAllAsync(CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); return await this.GetAllAsync(cancellationToken).ConfigureAwait(false); @@ -109,7 +109,7 @@ public async ValueTask DeleteAsync(Guid id) } /// - async ValueTask IRepository.GetByIdAsync(Guid id, CancellationToken cancellationToken = default) + async ValueTask IRepository.GetByIdAsync(Guid id, CancellationToken cancellationToken) { return await this.GetByIdAsync(id, cancellationToken).ConfigureAwait(false); } diff --git a/src/Persistence/EntityFramework/GenericRepositoryBase.cs b/src/Persistence/EntityFramework/GenericRepositoryBase.cs index cc97af90ab..3fae21ad70 100644 --- a/src/Persistence/EntityFramework/GenericRepositoryBase.cs +++ b/src/Persistence/EntityFramework/GenericRepositoryBase.cs @@ -62,7 +62,7 @@ public async ValueTask DeleteAsync(object obj) } /// - async ValueTask IRepository.GetAllAsync(CancellationToken cancellationToken = default) + async ValueTask IRepository.GetAllAsync(CancellationToken cancellationToken) { return await this.GetAllAsync(cancellationToken).ConfigureAwait(false); } @@ -99,7 +99,7 @@ public virtual async ValueTask> GetAllAsync(CancellationToken can } /// - async ValueTask IRepository.GetByIdAsync(Guid id, CancellationToken cancellationToken = default) + async ValueTask IRepository.GetByIdAsync(Guid id, CancellationToken cancellationToken) { return await this.GetByIdAsync(id, cancellationToken).ConfigureAwait(false); } diff --git a/src/Persistence/InMemory/MemoryRepository{TValue}.cs b/src/Persistence/InMemory/MemoryRepository{TValue}.cs index fc28fc2225..2735b856d7 100644 --- a/src/Persistence/InMemory/MemoryRepository{TValue}.cs +++ b/src/Persistence/InMemory/MemoryRepository{TValue}.cs @@ -77,7 +77,7 @@ public void OnSaveChanges() } /// - async ValueTask IRepository.GetByIdAsync(Guid id, CancellationToken cancellationToken = default) + async ValueTask IRepository.GetByIdAsync(Guid id, CancellationToken cancellationToken) { return await this.GetByIdAsync(id, cancellationToken).ConfigureAwait(false); } diff --git a/src/Persistence/Initialization/VersionSeasonSix/Items/Wings.cs b/src/Persistence/Initialization/VersionSeasonSix/Items/Wings.cs index 28de542a57..a005a47ba4 100644 --- a/src/Persistence/Initialization/VersionSeasonSix/Items/Wings.cs +++ b/src/Persistence/Initialization/VersionSeasonSix/Items/Wings.cs @@ -203,8 +203,6 @@ private void CreateFlameOfCondor() feather.MaximumItemLevel = 1; feather.Number = 52; feather.Group = 13; - // The drop group of the Barracks of Balgass is the only source of this item. A drop level above the level of the - // monsters (117 to 119) would make DefaultDropGenerator refuse it for every kill, so it has no drop level. feather.DropLevel = 0; feather.Width = 1; feather.Height = 2; diff --git a/src/Persistence/RepositoryAdapter.cs b/src/Persistence/RepositoryAdapter.cs index 6a9838964c..c9c3465ad7 100644 --- a/src/Persistence/RepositoryAdapter.cs +++ b/src/Persistence/RepositoryAdapter.cs @@ -38,7 +38,7 @@ public ValueTask DeleteAsync(Guid id) } /// - async ValueTask IRepository.GetAllAsync(CancellationToken cancellationToken = default) + async ValueTask IRepository.GetAllAsync(CancellationToken cancellationToken) { return await this.GetAllAsync(cancellationToken).ConfigureAwait(false); } @@ -56,7 +56,7 @@ public async ValueTask> GetAllAsync(CancellationToken cancellatio } /// - ValueTask IRepository.GetByIdAsync(Guid id, CancellationToken cancellationToken = default) + ValueTask IRepository.GetByIdAsync(Guid id, CancellationToken cancellationToken) { return this._repository.GetByIdAsync(id, cancellationToken); }