You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read the Act 4 and Act 5 event spots from a parser-filled table - #3899
Four services had map coordinates written into their code: the Act 4 ship, the Act 5 ship, the faction war and the Act 4 raid. They now read them from a new MapSpot table that the parser fills, with one row per MapSpotType:
Spot
Map
Cell
Was in
Act4ShipLandingAngel / Act4ShipLandingDemon
130 / 131
10, 36
Act4ShipService.Landing
Act4RaidGate
134
139, 99
FactionWarService.RaidGate*
Act4RaidReturn
134
139, 100
Act4RaidService.Return*
Act4GuardianAngel / Act4GuardianDemon
132 / 133
114, 92 / 20, 95
FactionWarService sides
Act5ShipLanding
170
127, 47
Act5ShipService.Landing
MapSpotParser writes the rows from MapSpots during the map-types import and skips any map missing from the data. It upserts on the spot type, so running the parser again rewrites the same rows. On a full import, two runs in a row each wrote the same 7 rows.
IMapSpotCatalog serves the rows to the services.
A missing row turns off that part of the event instead of throwing:
no landing row: the ship puts passengers back ashore where they boarded;
no gate row: no raid entrance and no gp;
no camp row: no guardian;
no return row: raiders go back to their saved map.
Migration AddMapSpots only adds one table. It was regenerated on top of the current master.
The values are the ones the services used before, so behaviour is unchanged.
Tests
MapSpotParserTests: every spot is written on its map, and spots on maps missing from the data are skipped.
TestWorld serves the same spots through the real catalog. The Act 4 ship, faction war and Act 4 raid tests pass; the only test change is that they now read the gate from the catalog.
The E2E world seeds the two citadel landing spots. Act4Tests.TheShipTakesAPassengerToGlacernonForTheFare passes and still lands on the angels' citadel.
Client check: in the comment below, master and this branch both land the angel in the Citadel beside Leika Passage.
Manual checks (documentation/manual-test-plan.md)
From "Lord Mukraju and the Glacernon raids":
The angels' 100th kill: Lord Mukraju (556) stands in the angel camp (map 132, 114/92)
Killing Mukraju: on map 134 an angel sees a raid gate at 139/99, a demon does not
Killing the boss: everyone inside is sent back to map 134 at 139/100
From "The ship to the Mortaz Desert":
Once the anchor is raised you land at the Mortaz Desert Port near (127, 47).
Act 4 ship (no section yet): board at Port Alveus, let it sail. You land on map 130 (angel) or 131 (demon) around 10, 36. This one was checked in the client.
The change adds map spot types and database records, imports configured locations into the catalog, and updates Act 4 and Act 5 ship services, raid handling, and faction-war services to use catalog locations.
Changes
Map Spot Data and Routing
Layer / File(s)
Summary
Map spot model and database mapping src/NosCore.Data/Enumerations/Map/MapSpotType.cs, src/NosCore.Database/Entities/MapSpot.cs, src/NosCore.Database/NosCoreContext.cs, src/NosCore.Database/Migrations/*
Adds the MapSpot entity and MapSpotType enum. The database mapping and migration add the table, map relationship, index, and PostgreSQL enum.
Defines the configured locations, imports spots for loaded maps, and logs the imported count. The catalog provides lookups by spot type. Parser tests cover imported locations and filtering by available maps.
The service uses the catalog landing spot after a successful sailing. If sailing fails or the spot is absent, passengers remain at their current map coordinates.
Faction-war gates and guardians src/NosCore.GameObject/Services/FactionWarService/FactionWarService.cs
The service uses catalog locations for raid gates and guardian camps. It does not generate a gate or summon a guardian when the required location is unavailable.
Issue 3532: The PR changes the location sources used by the listed event services, but retains the existing coordinates. The issue’s captured-data objective remains open.
Path filters excluded changed files. This rating applies only to the assessed changes.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: Act 4 and Act 5 event spots are read from a table filled by a parser. The changeset adds a MapSpot table, a MapSpotParser that fills it during import, and an IMapSpotC…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check
Explanation
The title names the main change: Act 4 and Act 5 event spots are read from a table filled by a parser. The changeset adds a MapSpot table, a MapSpotParser that fills it during import, and an IMapSpotCatalog that the Act 4 ship, Act 5 ship, and faction war services use in place of hard-coded coordinates. The title is specific and accurate, and it reflects the primary change.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Review: OK in substance. The AddMapSpots migration conflicts with master on NosCoreContextModelSnapshot.cs. Regenerate it with dotnet ef migrations add once the migrations queued ahead of it have landed.
erwan-joly
changed the title
Read the Act 4 event spots from a parser-filled table
Read the Act 4 and Act 5 event spots from a parser-filled table
Nov 29, 2026
Client check (cloud client, Tester taking the Act 4 ship from Port Alveus)
The behaviour must not change, and it doesn't: on master and on the branch the ship sails and lands the passenger on the angels' citadel next to Leika Passage.
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.
The Act 4 ship's landing cells, the Act 4 raid gate and return cell,
the cells Lord Mukraju appears on and the Act 5 ship's landing cell move
out of the services into a new MapSpot table, one row per MapSpotType,
written by the parser alongside the respawn map types. A spot whose row
is missing turns its part of the event off instead of failing: a ship
with no landing puts passengers ashore, no gate means no raid entrance,
and no camp means no guardian.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkU1QMrwn5KkbAzJtw9
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
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.
Requested by Erwan · project thread
Four services had map coordinates written into their code: the Act 4 ship, the Act 5 ship, the faction war and the Act 4 raid. They now read them from a new
MapSpottable that the parser fills, with one row perMapSpotType:Act4ShipLandingAngel/Act4ShipLandingDemonAct4ShipService.LandingAct4RaidGateFactionWarService.RaidGate*Act4RaidReturnAct4RaidService.Return*Act4GuardianAngel/Act4GuardianDemonFactionWarServicesidesAct5ShipLandingAct5ShipService.LandingMapSpotParserwrites the rows fromMapSpotsduring the map-types import and skips any map missing from the data. It upserts on the spot type, so running the parser again rewrites the same rows. On a full import, two runs in a row each wrote the same 7 rows.IMapSpotCatalogserves the rows to the services.gp;AddMapSpotsonly adds one table. It was regenerated on top of the current master.The values are the ones the services used before, so behaviour is unchanged.
Tests
MapSpotParserTests: every spot is written on its map, and spots on maps missing from the data are skipped.TestWorldserves the same spots through the real catalog. The Act 4 ship, faction war and Act 4 raid tests pass; the only test change is that they now read the gate from the catalog.Act4Tests.TheShipTakesAPassengerToGlacernonForTheFarepasses and still lands on the angels' citadel.Manual checks (
documentation/manual-test-plan.md)From "Lord Mukraju and the Glacernon raids":
From "The ship to the Mortaz Desert":
Act 4 ship (no section yet): board at Port Alveus, let it sail. You land on map 130 (angel) or 131 (demon) around 10, 36. This one was checked in the client.
🤖 Generated with Claude Code
https://claude.ai/code/session_014gSmkU1QMrwn5KkbAzJtw9