Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > King's Bounty > King's Bounty: The Legend > Battle mode

Battle mode Strategy, hints, questions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 10-28-2011, 11:08 PM
Lex Lex is offline
Approved Member
 
Join Date: Oct 2011
Posts: 54
Lightbulb

Quote:
Originally Posted by Lex View Post
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.

Quote:
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%.

Last edited by Lex; 10-28-2011 at 11:12 PM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.