Repository navigation
fix(illusion-temple): review fixes of the ticket crafting and update (follow-up to #1473) - #1536
Merged
sven-n merged 2 commits intoNov 19, 2026
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 333 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Mosch0512
force-pushed
the
fix/illusion-temple-ticket-review-fixes
branch
from
November 17, 2026 22:39
e2bffe1 to
d541792
Compare
…and update Follow-up to MUnique#1473. Ticket crafting (shared with the Blood Castle and Devil Square mixes): - refuse the ticket as an ingredient and ignore the ticket of a temple which isn't available - take the first pair of ingredients of the same level which gives a ticket, and refuse a level which the event doesn't have - refuse other items in the chaos machine only when the ticket finds no place after the ingredients are removed (IStorage.FitsAfterRemoval) - refuse the items instead of throwing when the ticket item doesn't exist - keep event ticket craftings of plug-ins working (virtual EventType, default of FitsAfterRemoval) Update of the ticket items: - restore the items also when the owner gave them their original names already, but only when remains of the swap are left - set the original sizes instead of swapping them, and move only Lumen's store items and the covenant drop item groups - take the update's name and description from the plug-in resources, in English, German and Chinese
Mosch0512
force-pushed
the
fix/illusion-temple-ticket-review-fixes
branch
from
November 18, 2026 19:12
8383411 to
313db3b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Follow-up to #1473. Its review fixes were committed after the head which got merged, so they're not on master yet. They fix the ticket crafting and the update of #1473.
What
IllusionTempleTicketCrafting,BaseEventTicketCrafting, shared with the Blood Castle and Devil Square mixes):Equals, like the ticket check of the temple entry). Otherwise, a ticket which has the name of an ingredient, like in a partly swapped configuration, would be taken and given back, or lost when the mix fails.InvalidItemLevel. Before, they gave a ticket which no event accepts, at the default price. Such a pair, or one with the ticket itself, is skipped when a valid pair is in the chaos machine, too; only without a valid pair, its reason is the answer.EventTypeofBaseEventTicketCrafting, which the Blood Castle, Devil Square and Illusion Temple craftings override. It'snullby default, which skips the level check, so craftings of plug-in assemblies which derive from the class keep working.BaseEventTicketCraftingis shared, so this applies to the Blood Castle mix too (2x2 Invisibility Cloak from 1x2 ingredients): with a full chaos machine it's now refused, where it ran before. With room left, other items are accepted as before. As the ingredients are right, the answer isTooManyItems, like the other craftings which get too many items. The place is checked by the newIStorage.FitsAfterRemoval, which uses the placement ofStorage. It has a default implementation, so other implementations ofIStoragekeep compiling: it checks whether the item fits now, without the cells of the removed items, so it may refuse an item which would fit, but never accepts one which finds no place. The Devil Square mix is unchanged: its 1x1 Devil's Invitation always finds a place where an ingredient was.IllusionTempleDataUpdatePlugIn), now version 4, so databases which have version 3 get the new restoration:PlugInResources, in English, German and Chinese, in the admin panel and on the updates page.Testing
dotnet buildoftests/MUnique.OpenMU.Persistence.Initialization.Testsandtests/MUnique.OpenMU.Testswith-p:ci=true.dotnet test --no-build -p:ci=true:MUnique.OpenMU.Persistence.Initialization.Tests: 931 passed, 0 failed, 12 skipped (the database/manual ones)MUnique.OpenMU.Tests: 3222 passed, 0 failed, 2 skippedIllusionTempleTicketCraftingTest: the ingredients of the same level are found besides one of another level, behind a +0 pair, and behind a pair with the ticket named like the covenant; when no pair gives a ticket, the reason of the first pair is the answer; a crafting without event type (like one of a plug-in) combines every level; ingredients of a level without temple (+0, +7) are refused, and so are +0 ingredients of the Blood Castle and Devil Square mixes; the crafting gives the ticket of an inactive temple which is the only one of its level, prefers the ticket of an available temple, and gives the Scroll of Blood without a ticket of the temple; a ticket with the name of the covenant is refused; an event ticket crafting without its result item refuses instead of throwing; other items in the chaos machine (an unrelated one or a second ingredient) are accepted while the result finds a place, and refused withTooManyItemsby the Illusion Temple and Blood Castle craftings when they leave it none; the Devil Square crafting accepts them; the real combination (with a crafting bonus which raises its success rate to 100 %) places the Scroll of Blood where the ingredients were.IllusionTempleTicketItemsTest: a configuration with swapped names, whose sizes the owner fixed already, gets the original sizes (also when applied twice); a configuration with the original names but swapped data is restored and keeps the names (all three swapped states of fix(illusion-temple): make the Scroll of Blood (13/51) the ticket again and give 13/50 back to the Illusion Sorcerer Covenant #1473, from installed version 2 and 3, which the data update service applies again); with the original names and sizes, Lumen's store items, the covenant groups and the temple tickets are repaired, also when only Lumen's store or only the covenant groups are left as a remain; a Scroll of Blood which the owner added to another store stays, and so do a drop item group of the owner with 13/51 and a covenant group which the owner already pointed at 13/50; on a configuration with the original data, the owner's sizes and a temple ticket set to 13/50 stay, also with a Scroll of Blood which the owner added next to the covenant at Lumen and in a covenant group.StorageTest:FitsAfterRemovalin a storage with a box offset (removed items in a square free a place, two don't), with removed items of another storage, with an extension, and the default implementation ofIStorage.IllusionTempleDataTest: a configuration with the original data stays unchanged also from installed version 3.LocalizedUpdatePlugInNameTest: the name and description of the update are localized.