[CF-Devel] Re: Possible item price bug

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Fri Apr 16 11:34:04 CDT 2004


Mark Wedel wrote:
>
     
      Andreas Kirschbaum wrote:
     
     >
     
      >I think there is a bug in the function query_cost() for high priced
     
     >
     
      >items: the graph of the adjusted price is not a continuous function (see
     
     >
     
      >red function in attached image). I.e. you will get the "real" price for
     
     >
     
      >items up to 25000; for higher priced items you will get about 11000
     
     >
     
      >only.
     
     >
     
      >
     
     >
     
      >What is the "right" fix for this problem?
     
     >
     
      >
     
     >
     
      > 1. Decrease the limit from 25000 to 10000 (green function in image).
     
     >
     
      >    (Maybe this was the case some time ago because this makes the
     
     >
     
      >    existing adjustment function continuous and the comment for
     
     >
     
      >    query_cost() mentions "10000".)
     
     >
     
     
     >
     
      That is probably the right approach - there is already too much money in 
     
     >
     
      the game anyways, so cutting down a little bit more probably isn't a bad 
     
     >
     
      idea.
     
     
OK, applied to CVS. (After some more checking I realized that the
numbers 10000/25000 are "internal units" used in query_cost(). They
correspond to 800pp/2000pp. So this change has an effect to items in the
800..2000pp range only.)

_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list