PDA

View Full Version : Pirate Halberd


Lex
10-26-2011, 12:44 PM
Pirate Halberd
+3 to Attack
+5% gold after combat

It looks that I am getting much more gold than 105% after combat and +% is not so stable. Some examples:
160gp -> 170gp (+6.25%)
230gp -> 250gp (+8,7%)
2600gp -> 2800gp (+7,69%)

Does anyone know how this bonus is calculated?

ShuiMienLung
10-28-2011, 08:28 PM
There is also a skill in one of the trees--center column of Mind?--which increases the gold you get after a combat. You may have trained in that, as well.

Lex
10-28-2011, 09:21 PM
There is also a skill in one of the trees--center column of Mind?--which increases the gold you get after a combat. You may have trained in that, as well.
No, in mind skills I have only left column filled partially, till trade skill.
Still it is weird that this +gold bonus is not stable.

Lex
10-29-2011, 12:08 AM
Still it is weird that this +gold bonus is not stable.I think I've found the answer, in Russian manual. To calculate gold from battle there is some rounding function used. That's why amount of gold is not so accurate like in case of, for example, amount of experience.

RoundGold() - функция, округляющая полученное золото. Как именно RoundGold(X) округлит значение X, зависит от значения X:

Значение X - Округление
<1000 - Ceil(X,10)
1000–1999 - Ceil(X,50)
2000–9999 - Ceil(X,100)
>= 10000 - Ceil(X,500)

Здесь Ceil(X,Y) - округление числа X вверх до ближайшего целого, кратного Y. Например, RoundGold(655) = Ceil(655,10) = 660.
Usage of Ceil function means that +5% from Halberd is like minimum bonus but in every(?) case player gets more gold than +5%.