otservbr-global icon indicating copy to clipboard operation
otservbr-global copied to clipboard

BUG: Inquisition Quest Price

Open VictorArchela opened this issue 3 years ago • 4 comments

Describe the bug

Inquisition quest price is calculated wrong. It is calculating on top of 7 blesses instead of the correct 5 amount.

How to Reproduce?

Just have inquisition and ask for blessing of the inquisition. He will ask for 154k instead of 110K

Where to fix:

I pinpointed the error to the following file: otserver/data/modules/scripts/blessings/blessings.lua So in line 246 this snippet starts:

Blessings.getInquisitionPrice = function(player)
	-- Find how many missing bless we have and give out the price
	inquifilter = function(b) return b.inquisition end
	donthavefilter = function(p, b) return not p:hasBlessing(b) end
	local missing = #player:getBlessings(filter, donthavefilter)
	local totalBlessPrice = Blessings.getBlessingsCost(player:getLevel()) * missing * Blessings.Config.InquisitonBlessPriceMultiplier
	return missing, totalBlessPrice
end

The missing function is getting all missing blessings except for twist of fate. It's not ignoring the 2 new blessings that are special. So the number is coming out as 7 instead of 5.

VictorArchela avatar Mar 11 '21 03:03 VictorArchela

confirmed

Bipbop69 avatar Mar 29 '21 22:03 Bipbop69

This issue is stale because it has been open 120 days with no activity.

github-actions[bot] avatar Jun 28 '21 02:06 github-actions[bot]

Your issue will be transferred to the otservbr-global-datapack repository

dudantas avatar Oct 06 '21 19:10 dudantas

This issue is stale because it has been open 120 days with no activity.

github-actions[bot] avatar Jan 05 '22 02:01 github-actions[bot]