Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Server Server
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 267
    • Issues 267
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 53
    • Merge requests 53
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • 2009Scape2009Scape
  • ServerServer
  • Merge requests
  • !802

#713: Override item examine text when necessary

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Byte requested to merge ByteEngineer/2009scape:713-examine-text-overriding into master Sep 10, 2022
  • Overview 45
  • Commits 4
  • Pipelines 13
  • Changes 4

What have you done in this MR?

  • Overwrite noted items examine (cleaned up how this happens by overriding Definition getExamine() inside ItemDefinition) - maybe this could be added to json, but then Definition getExamine() would need to be updated to handle looking at a noted examine text instead of examine text. Probably not much better than just having this single override in the overridden getExamine() in ItemDefinition.
  • Update json for clue scrolls to not need to override in code
  • Added override in BankInterface.kt for Coins which require different examine text for large quantities (>= 100k)

This is the table of behavior I went off of - if this is incorrect, then adjustments can be made: Examine Coins 995

Situation Should Display
On ground < 100 "Lovely money!"
On ground >= 100k "Lovely money!"
In bank < 100k "Lovely money!"
In bank >= 100k "X x Coins."
In bank inv < 100k "Lovely money!"
In bank inv >= 100k "X x Coins."
In inventory < 100k "Lovely money!"
In inventory >= 100k "X x Coins."

It also should be noted that as far as I can tell with the debugger, large quantity stacks of items (>= 100k) in the player inventory are not handled by the server at all. Most likely this behavior is in client scripts.

Are there any tricky things testers should keep an eye out for?

  • No
  • Yes, as follows:
  • I have tested these changes thoroughly.
  • This requires extra testing due to changes to architecture or other similarly risky changes.
  • I used the Thanos Tool for any JSON edits, I did not edit any JSON files by hand (MR will be rejected if there are manual JSON edits).
  • I acknowledge that this contribution will be released under the AGPL license.

Closes #713 (closed)

Edited Sep 10, 2022 by Byte
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 713-examine-text-overriding