Skip to content

Add Pirate's Treasure quest - #1225

Merged
GregHib merged 3 commits into
mainfrom
pirates-treasure
Sep 2, 2026
Merged

Add Pirate's Treasure quest#1225
GregHib merged 3 commits into
mainfrom
pirates-treasure

Conversation

@Ebp90

@Ebp90 Ebp90 commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Karamjan rum is destroyed on every route off the island that this server implements and the routes that can't be covered yet are listed at the bottom of PirateTreasure.kt.

Also has a TODO in Redbeard Frank's dialogue for when Rum Deal is implemented.

@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Qodana for JVM

2 new problems were found

Inspection name Severity Problems
Unused symbol 🔶 Warning 2

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 42.95082% with 348 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.87%. Comparing base (9e07028) to head (7154c04).

Files with missing lines Patch % Lines
...ontent/quest/free/piratetreasure/PirateTreasure.kt 44.19% 164 Missing and 9 partials ⚠️
...n/kotlin/content/area/asgarnia/port_sarim/Wydin.kt 32.43% 40 Missing and 10 partials ⚠️
.../content/area/karamja/musa_point/CustomsOfficer.kt 30.15% 38 Missing and 6 partials ⚠️
.../content/area/asgarnia/port_sarim/RedbeardFrank.kt 69.51% 17 Missing and 8 partials ⚠️
...n/kotlin/content/area/karamja/musa_point/Luthas.kt 32.25% 15 Missing and 6 partials ⚠️
...main/kotlin/content/entity/obj/ship/CharterShip.kt 16.66% 11 Missing and 4 partials ⚠️
...rea/kandarin/tree_gnome_stronghold/CaptainErrdo.kt 0.00% 10 Missing ⚠️
.../kotlin/content/area/asgarnia/port_sarim/Seaman.kt 66.66% 4 Missing ⚠️
...otlin/content/area/karamja/shilo_village/Vigroy.kt 42.85% 3 Missing and 1 partial ⚠️
...n/content/area/kandarin/ardougne/CaptainBarnaby.kt 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
game/src/main/kotlin/content/quest/Quest.kt 59.09% <100.00%> (+2.16%) ⬆️
...n/content/area/kandarin/ardougne/CaptainBarnaby.kt 46.66% <0.00%> (-3.34%) ⬇️
.../kotlin/content/area/asgarnia/port_sarim/Seaman.kt 65.51% <66.66%> (+45.51%) ⬆️
...otlin/content/area/karamja/shilo_village/Vigroy.kt 38.09% <42.85%> (+0.95%) ⬆️
...rea/kandarin/tree_gnome_stronghold/CaptainErrdo.kt 5.05% <0.00%> (-0.57%) ⬇️
...main/kotlin/content/entity/obj/ship/CharterShip.kt 40.16% <16.66%> (-2.70%) ⬇️
...n/kotlin/content/area/karamja/musa_point/Luthas.kt 48.14% <32.25%> (-2.49%) ⬇️
.../content/area/asgarnia/port_sarim/RedbeardFrank.kt 69.51% <69.51%> (ø)
.../content/area/karamja/musa_point/CustomsOfficer.kt 40.96% <30.15%> (+3.03%) ⬆️
...n/kotlin/content/area/asgarnia/port_sarim/Wydin.kt 35.89% <32.43%> (+17.14%) ⬆️
... and 1 more

... and 5 files with indirect coverage changes

@@             Coverage Diff              @@
##               main    #1225      +/-   ##
============================================
+ Coverage     43.85%   43.87%   +0.02%     
- Complexity    10403    10444      +41     
============================================
  Files          2059     2061       +2     
  Lines         92590    93166     +576     
  Branches      15075    15155      +80     
============================================
+ Hits          40605    40878     +273     
- Misses        46164    46421     +257     
- Partials       5821     5867      +46     
Components Coverage Δ
Content 44.17% <42.95%> (+0.03%) ⬆️
Engine 45.75% <ø> (-0.02%) ⬇️
Network 71.36% <ø> (-0.04%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Ebp90 and others added 2 commits September 2, 2026 12:52
Covers the full quest: Redbeard Frank's rum bargain, taking a job on
Luthas' banana plantation to smuggle a bottle past the customs officer,
Wydin's back room, Hector's chest in the Blue Moon Inn, and digging up
the casket in Falador park.

The shipped script referenced items and npcs that don't exist here
(karamja_rum, piratemessage, pirate_casket, chest_key, redbeard_frank,
luthas, customs_officer), so every id is resolved against the real
definitions. Progress is stored as named varp stages like other quests
rather than raw ints, which transmit as -1 through a map format.

Wydin, Luthas and the customs officer already had scripts, so the quest
extends those instead of duplicating them, reusing the existing
banana_plantation_job and banana_crate_bananas variables for the crate.

Karamjan rum is destroyed on every route off the island that this server
implements - customs search, the charmed dance, magic teleports and the
Shilo cart - and the routes that can't be covered yet are listed at the
bottom of PirateTreasure.kt.

Also fixed along the way:
- The Pay-fare gate checked questCompleted("Pirate's Treasure"), a
  display name rather than the quest id, so with skipMissing enabled it
  always passed. Pay-Fare also called search(), which opens the fare
  dialogue and left the option hanging.
- The handwriting message scroll opened as a wide screen interface
  rather than a screen one.
- The Port Sarim seamen spawned as ids that transform through the
  unimplemented A Void Dance varbit, whose default maps to -1, leaving
  them with no Talk-to option.
- Six npc definitions in the dungeoneering file duplicated ids
  11700-11705, stealing them from the seamen and dispatching Lorris and
  Thresnor to the makeover mage.
- Npc 1217 was missing its farmer's fork attack and defend animations
  and its own combat definition.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@GregHib
GregHib merged commit ea93f69 into main Sep 2, 2026
5 checks passed
@GregHib
GregHib deleted the pirates-treasure branch September 2, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants