Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Fix inquisition bless price (#764)
Browse files Browse the repository at this point in the history
• Function getInquisitionPrice counting only normal blessings
  • Loading branch information
murilo09 authored Aug 25, 2022
1 parent 25c71aa commit 6d43e5b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions data/modules/scripts/blessings/blessings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ dofile('data/modules/scripts/blessings/assets.lua')
--
-- Table structure `blessings_history`
--
CREATE TABLE IF NOT EXISTS `blessings_history` (
`id` int(11) NOT NULL,
`player_id` int(11) NOT NULL,
Expand All @@ -43,7 +42,6 @@ CREATE TABLE IF NOT EXISTS `blessings_history` (
`timestamp` int(11) NOT NULL,
CONSTRAINT `blessings_history_pk` PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--]=====]

Blessings.DebugPrint = function(content, pre, pos)
Expand Down Expand Up @@ -248,7 +246,7 @@ 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 missing = #player:getBlessings(inquifilter, donthavefilter)
local totalBlessPrice = Blessings.getBlessingsCost(player:getLevel()) * missing * Blessings.Config.InquisitonBlessPriceMultiplier
return missing, totalBlessPrice
end
Expand Down

0 comments on commit 6d43e5b

Please sign in to comment.