Skip to content

Add Rum Deal quest - #1236

Open
Ebp90 wants to merge 5 commits into
mainfrom
rum-deal
Open

Add Rum Deal quest#1236
Ebp90 wants to merge 5 commits into
mainfrom
rum-deal

Conversation

@Ebp90

@Ebp90 Ebp90 commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

Quest implemented... required fixes to farming and a new follow mode added for Zombie protestors.

@github-actions

github-actions Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Qodana for JVM

10 new problems were found

Inspection name Severity Problems
Unused symbol 🔶 Warning 7
Unused import directive 🔶 Warning 1
Duplicated code fragment ◽️ Notice 1
'when' that can be simplified by introducing an argument ◽️ Notice 1

💡 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 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 33.03140% with 1109 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.74%. Comparing base (ea93f69) to head (15fd832).

Files with missing lines Patch % Lines
...in/kotlin/content/quest/member/rum_deal/RumDeal.kt 33.73% 304 Missing and 26 partials ⚠️
...a/morytania/braindeath_island/CaptainBraindeath.kt 23.00% 313 Missing and 5 partials ⚠️
.../content/area/morytania/braindeath_island/Davey.kt 2.88% 101 Missing ⚠️
...content/area/morytania/braindeath_island/Brewer.kt 8.65% 93 Missing and 2 partials ⚠️
.../area/morytania/braindeath_island/CaptainDonnie.kt 2.81% 69 Missing ⚠️
...ent/area/morytania/braindeath_island/ZombieSwab.kt 24.19% 43 Missing and 4 partials ⚠️
...gregs/voidps/engine/entity/character/mode/Leash.kt 0.00% 40 Missing ⚠️
...ontent/area/morytania/port_phasmatys/PiratePete.kt 75.64% 34 Missing and 4 partials ⚠️
...n/content/area/morytania/braindeath_island/Luke.kt 76.47% 15 Missing and 1 partial ⚠️
...rea/morytania/braindeath_island/ZombieProtester.kt 11.11% 14 Missing and 2 partials ⚠️
... and 10 more
Additional details and impacted files
Files with missing lines Coverage Δ
...n/kotlin/content/minigame/barrows/BarrowsCrypts.kt 62.58% <100.00%> (ø)
game/src/main/kotlin/content/quest/Quest.kt 59.70% <100.00%> (+0.61%) ⬆️
...lin/content/quest/member/ghosts_ahoy/GhostsAhoy.kt 28.68% <100.00%> (ø)
...ain/kotlin/content/skill/farming/FarmingPatches.kt 100.00% <100.00%> (ø)
...tlin/world/gregs/voidps/cache/definition/Params.kt 0.00% <0.00%> (ø)
...nt/area/morytania/braindeath_island/FeverSpider.kt 42.85% <0.00%> (ø)
.../kotlin/content/skill/dungeoneering/DungeonMark.kt 33.33% <0.00%> (+3.33%) ⬆️
...ame/src/main/kotlin/content/entity/npc/NPCHints.kt 88.23% <88.23%> (ø)
.../kotlin/content/skill/farming/FarmingPatchPlant.kt 61.53% <25.00%> (+3.72%) ⬆️
...e/src/main/kotlin/content/skill/farming/Farming.kt 70.25% <60.00%> (+1.58%) ⬆️
... and 14 more

... and 3 files with indirect coverage changes

@@             Coverage Diff              @@
##               main    #1236      +/-   ##
============================================
- Coverage     43.87%   43.74%   -0.13%     
- Complexity    10445    10521      +76     
============================================
  Files          2061     2069       +8     
  Lines         93166    94701    +1535     
  Branches      15155    15319     +164     
============================================
+ Hits          40880    41431     +551     
- Misses        46420    47355     +935     
- Partials       5866     5915      +49     
Components Coverage Δ
Content 44.00% <33.83%> (-0.17%) ⬇️
Engine 45.60% <0.00%> (-0.18%) ⬇️
Network 71.73% <60.00%> (+0.37%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Ebp90 and others added 5 commits September 2, 2026 13:27
Braindeath Island content and the full quest script: Captain Braindeath,
Captain Donnie, Luke, Davey, the brewers, zombie swabs and protesters,
fever spiders and the Evil Spirit, plus Pirate Pete starting the quest in
Port Phasmatys.

Supporting changes:
- Blindweed farming patch - varbit, produce entry, patch registration and
  its objs config. Patches with no Rake option can now be raked by using a
  rake on them, a crop planted into an already clear patch starts the
  growth timer, and fully overgrown weeds stop at stage 3 instead of
  wrapping back to clear.
- Leash movement mode - follows a target only while both stay within range
  of the npc's spawn tile and loses interest otherwise. Follow teleports an
  npc that falls behind or changes level, which let protesters trail a
  player across the world.
- zombie_swab hunt mode so swab aggression can be judged per player.
- questprep/questreset admin commands and the req_item_ids quest param they
  read.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K22iXYZjnQnTr3ZUtbuGBG
Clearing a hint arrow could take the client down. HINT_ARROW is a fixed
twelve byte packet, but the encoder wrote the payload only when a sprite was
given, so a clear sent two bytes and the client read the packets behind it as
the rest of that one. Every branch now fills the packet, matching what the
client expects for a type 0 hint.

Player.hint picked its slot with firstOrNull { it == 0 }, which returns the
matched element rather than its position - so every arrow went into slot zero,
the other seven were never used, and clearing by index cleared whatever
happened to be there. It now uses indexOfFirst, and reuses the first slot
rather than dropping the arrow when all eight are taken.

Slots are only handed back explicitly and most content never did, so an arrow
on an npc that died or timed out cost that player a slot for the rest of the
session. NPC.markHint records the slot on the npc and NPCHints releases it when
the npc despawns, which covers dying; barrows brothers, the Ghosts Ahoy
lobster, dungeoneering marks and the Rum Deal Evil Spirit all mark through it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K22iXYZjnQnTr3ZUtbuGBG
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