mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Fixed an off-by-one error in quest point checking
This commit is contained in:
parent
047a2b818a
commit
c1007683a5
1 changed files with 1 additions and 1 deletions
|
|
@ -1714,7 +1714,7 @@ fun hasRequirement (player: Player, req: QuestReq, message: Boolean = true) : Bo
|
|||
|
||||
var neededQp = min(max(totalSoftQp, totalHardQp), player.questRepository.getAvailablePoints())
|
||||
|
||||
isMet = isMet && neededQp < player.questRepository.getPoints()
|
||||
isMet = isMet && neededQp <= player.questRepository.getPoints()
|
||||
|
||||
if (isMet) return true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue