mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
[PR #534] [MERGED] Implemented functionality where user can search for traps in some chests #5468
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/2006-Scape/2006Scape/pull/534
Author: @AugustasK
Created: 10/18/2022
Status: ✅ Merged
Merged: 1/20/2023
Merged by: @Dark98
Base:
master← Head:fix-search-for-traps📝 Commits (4)
a8a9692Initial commitf7de729Implemented cooldown timer and added ardougne castle chest8daacb3Refactoring0ce7c05Removing unused variable📊 Changes
7 files changed (+229 additions, -96 deletions)
View changed files
➕
2006Scape Server/src/main/java/com/rs2/game/content/skills/thieving/SearchForTraps.java(+143 -0)📝
2006Scape Server/src/main/java/com/rs2/game/content/skills/thieving/ThieveOther.java(+43 -44)📝
2006Scape Server/src/main/java/com/rs2/game/items/ItemAssistant.java(+3 -0)📝
2006Scape Server/src/main/java/com/rs2/game/npcs/NpcData.java(+2 -2)📝
2006Scape Server/src/main/java/com/rs2/game/objects/ObjectsActions.java(+15 -13)📝
2006Scape Server/src/main/java/com/rs2/game/objects/impl/Searching.java(+5 -1)📝
2006Scape Server/src/main/java/com/rs2/game/players/Player.java(+18 -36)📄 Description
This is my first PR on this project, so any feedback is welcome :)
I've tested it locally and it works fine, it lets player to search for traps in chests, has cooldown with specific timers and rewards.
I've refactored some code in ThieveOther class (com.rs2.game.content.skills.thieving) and also addOrDropItem method in ItemAssistant class (com.rs2.game.items) to be able to drop item if player does not have stackable item and doesn't have space.
Let me know what you think :)
I guess it could close this issue
Thank you
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.