mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
[PR #474] [MERGED] Fix gem check being rolled twice. #14109
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/474
Author: @nickgal
Created: 2/4/2021
Status: ✅ Merged
Merged: 2/5/2021
Merged by: @dginovker
Base:
master← Head:gem-chance📝 Commits (1)
ff53b9fFix gem check being rolled twice.📊 Changes
1 file changed (+7 additions, -8 deletions)
View changed files
📝
2006Redone Server/src/main/java/com/rebotted/game/content/skills/core/Mining.java(+7 -8)📄 Description
giveGemroll is not needed inobtainGembecause it is already checked in order to callobtainGem.https://github.com/2006rebotted/2006rebotted/blob/15ab6253499e5f5a38372a296d35aa30492dd6d6/2006Redone%20Server/src/main/java/com/rebotted/game/content/skills/core/Mining.java#L232-L238
Calling random inside the Glory loop results in multiple rolls, potentially hiding the double
giveGemcheck.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.